From dc6262b587c71c14e30d93e57ed812e36a79a33e Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 24 Sep 2012 13:09:44 +0200 Subject: Imported WebKit commit 6339232fec7f5d9984a33388aecfd2cbc7832053 (http://svn.webkit.org/repository/webkit/trunk@129343) New snapshot with build fixes for latest qtbase --- Source/WebCore/html/HTMLViewSourceDocument.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/html/HTMLViewSourceDocument.cpp') diff --git a/Source/WebCore/html/HTMLViewSourceDocument.cpp b/Source/WebCore/html/HTMLViewSourceDocument.cpp index 80cdd69cd..3de813770 100644 --- a/Source/WebCore/html/HTMLViewSourceDocument.cpp +++ b/Source/WebCore/html/HTMLViewSourceDocument.cpp @@ -70,24 +70,24 @@ PassRefPtr HTMLViewSourceDocument::createParser() void HTMLViewSourceDocument::createContainingTable() { RefPtr html = HTMLHtmlElement::create(this); - parserAddChild(html); + parserAppendChild(html); html->attach(); RefPtr body = HTMLBodyElement::create(this); - html->parserAddChild(body); + html->parserAppendChild(body); body->attach(); // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole // document. RefPtr div = HTMLDivElement::create(this); div->setAttribute(classAttr, "webkit-line-gutter-backdrop"); - body->parserAddChild(div); + body->parserAppendChild(div); div->attach(); RefPtr table = HTMLTableElement::create(this); - body->parserAddChild(table); + body->parserAppendChild(table); table->attach(); m_tbody = HTMLTableSectionElement::create(tbodyTag, this); - table->parserAddChild(m_tbody); + table->parserAppendChild(m_tbody); m_tbody->attach(); m_current = m_tbody; } @@ -186,7 +186,7 @@ PassRefPtr HTMLViewSourceDocument::addSpanWithClassName(const AtomicStr RefPtr span = HTMLElement::create(spanTag, this); span->setAttribute(classAttr, className); - m_current->parserAddChild(span); + m_current->parserAppendChild(span); span->attach(); return span.release(); } @@ -195,19 +195,19 @@ void HTMLViewSourceDocument::addLine(const AtomicString& className) { // Create a table row. RefPtr trow = HTMLTableRowElement::create(this); - m_tbody->parserAddChild(trow); + m_tbody->parserAppendChild(trow); trow->attach(); // Create a cell that will hold the line number (it is generated in the stylesheet using counters). RefPtr td = HTMLTableCellElement::create(tdTag, this); td->setAttribute(classAttr, "webkit-line-number"); - trow->parserAddChild(td); + trow->parserAppendChild(td); td->attach(); // Create a second cell for the line contents td = HTMLTableCellElement::create(tdTag, this); td->setAttribute(classAttr, "webkit-line-content"); - trow->parserAddChild(td); + trow->parserAppendChild(td); td->attach(); m_current = m_td = td; @@ -229,7 +229,7 @@ void HTMLViewSourceDocument::finishLine() { if (!m_current->hasChildNodes()) { RefPtr br = HTMLBRElement::create(this); - m_current->parserAddChild(br); + m_current->parserAppendChild(br); br->attach(); } m_current = m_tbody; @@ -255,7 +255,7 @@ void HTMLViewSourceDocument::addText(const String& text, const AtomicString& cla continue; } RefPtr t = Text::create(this, substring); - m_current->parserAddChild(t); + m_current->parserAppendChild(t); t->attach(); if (i < size - 1) finishLine(); @@ -285,7 +285,7 @@ PassRefPtr HTMLViewSourceDocument::addBase(const AtomicString& href) { RefPtr base = HTMLBaseElement::create(baseTag, this); base->setAttribute(hrefAttr, href); - m_current->parserAddChild(base); + m_current->parserAppendChild(base); base->attach(); return base.release(); } @@ -305,7 +305,7 @@ PassRefPtr HTMLViewSourceDocument::addLink(const AtomicString& url, boo anchor->setAttribute(classAttr, classValue); anchor->setAttribute(targetAttr, "_blank"); anchor->setAttribute(hrefAttr, url); - m_current->parserAddChild(anchor); + m_current->parserAppendChild(anchor); anchor->attach(); return anchor.release(); } -- cgit v1.2.1