Changeset 65004 in webkit


Ignore:
Timestamp:
Aug 9, 2010 2:32:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-08-09 Adam Barth <abarth@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):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65003 r65004  
     12010-08-09  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Move HTMLViewSourceDocument from legacyParserAddChild to parserAddChild
     6        https://bugs.webkit.org/show_bug.cgi?id=43740
     7
     8        This removes the DTD checks, which aren't needed for view source
     9        documents.
     10
     11        * html/HTMLViewSourceDocument.cpp:
     12        (WebCore::HTMLViewSourceDocument::createContainingTable):
     13        (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
     14        (WebCore::HTMLViewSourceDocument::addLine):
     15        (WebCore::HTMLViewSourceDocument::addText):
     16        (WebCore::HTMLViewSourceDocument::addLink):
     17
    1182010-08-09  Dan Bernstein  <mitz@apple.com>
    219
  • trunk/WebCore/html/HTMLViewSourceDocument.cpp

    r62079 r65004  
    7070{
    7171    RefPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(this);
    72     legacyParserAddChild(html);
     72    parserAddChild(html);
    7373    html->attach();
    7474    RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(this);
    75     html->legacyParserAddChild(body);
     75    html->parserAddChild(body);
    7676    body->attach();
    7777   
     
    8282    attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-gutter-backdrop"));
    8383    div->setAttributeMap(attrs.release());
    84     body->legacyParserAddChild(div);
     84    body->parserAddChild(div);
    8585    div->attach();
    8686
    8787    RefPtr<HTMLTableElement> table = HTMLTableElement::create(this);
    88     body->legacyParserAddChild(table);
     88    body->parserAddChild(table);
    8989    table->attach();
    9090    m_tbody = HTMLTableSectionElement::create(tbodyTag, this);
    91     table->legacyParserAddChild(m_tbody);
     91    table->parserAddChild(m_tbody);
    9292    m_tbody->attach();
    9393    m_current = m_tbody;
     
    215215    attrs->addAttribute(Attribute::createMapped(classAttr, className));
    216216    span->setAttributeMap(attrs.release());
    217     m_current->legacyParserAddChild(span);
     217    m_current->parserAddChild(span);
    218218    span->attach();
    219219    return span.release();
     
    224224    // Create a table row.
    225225    RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(this);
    226     m_tbody->legacyParserAddChild(trow);
     226    m_tbody->parserAddChild(trow);
    227227    trow->attach();
    228228   
     
    232232    attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-number"));
    233233    td->setAttributeMap(attrs.release());
    234     trow->legacyParserAddChild(td);
     234    trow->parserAddChild(td);
    235235    td->attach();
    236236
     
    240240    attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-content"));
    241241    td->setAttributeMap(attrs.release());
    242     trow->legacyParserAddChild(td);
     242    trow->parserAddChild(td);
    243243    td->attach();
    244244    m_current = m_td = td;
     
    277277            addLine(className);
    278278        RefPtr<Text> t = Text::create(this, substring);
    279         m_current->legacyParserAddChild(t);
     279        m_current->parserAddChild(t);
    280280        t->attach();
    281281        if (i < size - 1)
     
    305305    attrs->addAttribute(Attribute::createMapped(hrefAttr, url));
    306306    anchor->setAttributeMap(attrs.release());
    307     m_current->legacyParserAddChild(anchor);
     307    m_current->parserAddChild(anchor);
    308308    anchor->attach();
    309309    return anchor.release();
Note: See TracChangeset for help on using the changeset viewer.