[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

eric at webkit.org eric at webkit.org
Wed Dec 22 11:50:51 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit af0cd1ecbcb107bb5f805a3d1872a05ca661f116
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Aug 9 21:32:03 2010 +0000

    2010-08-09  Adam Barth  <abarth at webkit.org>
    
            Reviewed by Eric Seidel.
    
            Move HTMLViewSourceDocument from legacyParserAddChild to parserAddChild
            https://bugs.webkit.org/show_bug.cgi?id=43740
    
            This removes the DTD checks, which aren't needed for view source
            documents.
    
            * html/HTMLViewSourceDocument.cpp:
            (WebCore::HTMLViewSourceDocument::createContainingTable):
            (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
            (WebCore::HTMLViewSourceDocument::addLine):
            (WebCore::HTMLViewSourceDocument::addText):
            (WebCore::HTMLViewSourceDocument::addLink):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65004 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 51048f7..133b97b 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,20 @@
+2010-08-09  Adam Barth  <abarth at webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        Move HTMLViewSourceDocument from legacyParserAddChild to parserAddChild
+        https://bugs.webkit.org/show_bug.cgi?id=43740
+
+        This removes the DTD checks, which aren't needed for view source
+        documents.
+
+        * html/HTMLViewSourceDocument.cpp:
+        (WebCore::HTMLViewSourceDocument::createContainingTable):
+        (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
+        (WebCore::HTMLViewSourceDocument::addLine):
+        (WebCore::HTMLViewSourceDocument::addText):
+        (WebCore::HTMLViewSourceDocument::addLink):
+
 2010-08-09  Dan Bernstein  <mitz at apple.com>
 
         Reviewed by Simon Fraser.
diff --git a/WebCore/html/HTMLViewSourceDocument.cpp b/WebCore/html/HTMLViewSourceDocument.cpp
index 6cee27c..ca959a2 100644
--- a/WebCore/html/HTMLViewSourceDocument.cpp
+++ b/WebCore/html/HTMLViewSourceDocument.cpp
@@ -69,10 +69,10 @@ DocumentParser* HTMLViewSourceDocument::createParser()
 void HTMLViewSourceDocument::createContainingTable()
 {
     RefPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(this);
-    legacyParserAddChild(html);
+    parserAddChild(html);
     html->attach();
     RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(this);
-    html->legacyParserAddChild(body);
+    html->parserAddChild(body);
     body->attach();
     
     // Create a line gutter div that can be used to make sure the gutter extends down the height of the whole
@@ -81,14 +81,14 @@ void HTMLViewSourceDocument::createContainingTable()
     RefPtr<NamedNodeMap> attrs = NamedNodeMap::create();
     attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-gutter-backdrop"));
     div->setAttributeMap(attrs.release());
-    body->legacyParserAddChild(div);
+    body->parserAddChild(div);
     div->attach();
 
     RefPtr<HTMLTableElement> table = HTMLTableElement::create(this);
-    body->legacyParserAddChild(table);
+    body->parserAddChild(table);
     table->attach();
     m_tbody = HTMLTableSectionElement::create(tbodyTag, this);
-    table->legacyParserAddChild(m_tbody);
+    table->parserAddChild(m_tbody);
     m_tbody->attach();
     m_current = m_tbody;
 }
@@ -214,7 +214,7 @@ PassRefPtr<Element> HTMLViewSourceDocument::addSpanWithClassName(const String& c
     RefPtr<NamedNodeMap> attrs = NamedNodeMap::create();
     attrs->addAttribute(Attribute::createMapped(classAttr, className));
     span->setAttributeMap(attrs.release());
-    m_current->legacyParserAddChild(span);
+    m_current->parserAddChild(span);
     span->attach();
     return span.release();
 }
@@ -223,7 +223,7 @@ void HTMLViewSourceDocument::addLine(const String& className)
 {
     // Create a table row.
     RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(this);
-    m_tbody->legacyParserAddChild(trow);
+    m_tbody->parserAddChild(trow);
     trow->attach();
     
     // Create a cell that will hold the line number (it is generated in the stylesheet using counters).
@@ -231,7 +231,7 @@ void HTMLViewSourceDocument::addLine(const String& className)
     RefPtr<NamedNodeMap> attrs = NamedNodeMap::create();
     attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-number"));
     td->setAttributeMap(attrs.release());
-    trow->legacyParserAddChild(td);
+    trow->parserAddChild(td);
     td->attach();
 
     // Create a second cell for the line contents
@@ -239,7 +239,7 @@ void HTMLViewSourceDocument::addLine(const String& className)
     attrs = NamedNodeMap::create();
     attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-content"));
     td->setAttributeMap(attrs.release());
-    trow->legacyParserAddChild(td);
+    trow->parserAddChild(td);
     td->attach();
     m_current = m_td = td;
 
@@ -276,7 +276,7 @@ void HTMLViewSourceDocument::addText(const String& text, const String& className
         if (m_current == m_tbody)
             addLine(className);
         RefPtr<Text> t = Text::create(this, substring);
-        m_current->legacyParserAddChild(t);
+        m_current->parserAddChild(t);
         t->attach();
         if (i < size - 1)
             m_current = m_tbody;
@@ -304,7 +304,7 @@ PassRefPtr<Element> HTMLViewSourceDocument::addLink(const String& url, bool isAn
     attrs->addAttribute(Attribute::createMapped(targetAttr, "_blank"));
     attrs->addAttribute(Attribute::createMapped(hrefAttr, url));
     anchor->setAttributeMap(attrs.release());
-    m_current->legacyParserAddChild(anchor);
+    m_current->parserAddChild(anchor);
     anchor->attach();
     return anchor.release();
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list