diff options
Diffstat (limited to 'WebCore/html/HTMLViewSourceDocument.cpp')
-rw-r--r-- | WebCore/html/HTMLViewSourceDocument.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/html/HTMLViewSourceDocument.cpp b/WebCore/html/HTMLViewSourceDocument.cpp index 163ee72..596f16e 100644 --- a/WebCore/html/HTMLViewSourceDocument.cpp +++ b/WebCore/html/HTMLViewSourceDocument.cpp @@ -73,7 +73,7 @@ void HTMLViewSourceDocument::createContainingTable() // document. RefPtr<Element> div = new HTMLDivElement(divTag, this); RefPtr<NamedMappedAttrMap> attrs = NamedMappedAttrMap::create(); - attrs->insertAttribute(MappedAttribute::create(classAttr, "webkit-line-gutter-backdrop"), true); + attrs->addAttribute(MappedAttribute::create(classAttr, "webkit-line-gutter-backdrop")); div->setAttributeMap(attrs.release()); body->addChild(div); div->attach(); @@ -195,7 +195,7 @@ Element* HTMLViewSourceDocument::addSpanWithClassName(const String& className) Element* span = new HTMLElement(spanTag, this); RefPtr<NamedMappedAttrMap> attrs = NamedMappedAttrMap::create(); - attrs->insertAttribute(MappedAttribute::create(classAttr, className), true); + attrs->addAttribute(MappedAttribute::create(classAttr, className)); span->setAttributeMap(attrs.release()); m_current->addChild(span); span->attach(); @@ -212,7 +212,7 @@ void HTMLViewSourceDocument::addLine(const String& className) // Create a cell that will hold the line number (it is generated in the stylesheet using counters). Element* td = new HTMLTableCellElement(tdTag, this); RefPtr<NamedMappedAttrMap> attrs = NamedMappedAttrMap::create(); - attrs->insertAttribute(MappedAttribute::create(classAttr, "webkit-line-number"), true); + attrs->addAttribute(MappedAttribute::create(classAttr, "webkit-line-number")); td->setAttributeMap(attrs.release()); trow->addChild(td); td->attach(); @@ -220,7 +220,7 @@ void HTMLViewSourceDocument::addLine(const String& className) // Create a second cell for the line contents td = new HTMLTableCellElement(tdTag, this); attrs = NamedMappedAttrMap::create(); - attrs->insertAttribute(MappedAttribute::create(classAttr, "webkit-line-content"), true); + attrs->addAttribute(MappedAttribute::create(classAttr, "webkit-line-content")); td->setAttributeMap(attrs.release()); trow->addChild(td); td->attach(); @@ -283,9 +283,9 @@ Element* HTMLViewSourceDocument::addLink(const String& url, bool isAnchor) classValue = "webkit-html-attribute-value webkit-html-external-link"; else classValue = "webkit-html-attribute-value webkit-html-resource-link"; - attrs->insertAttribute(MappedAttribute::create(classAttr, classValue), true); - attrs->insertAttribute(MappedAttribute::create(targetAttr, "_blank"), true); - attrs->insertAttribute(MappedAttribute::create(hrefAttr, url), true); + attrs->addAttribute(MappedAttribute::create(classAttr, classValue)); + attrs->addAttribute(MappedAttribute::create(targetAttr, "_blank")); + attrs->addAttribute(MappedAttribute::create(hrefAttr, url)); anchor->setAttributeMap(attrs.release()); m_current->addChild(anchor); anchor->attach(); |