Changeset 65004 in webkit
- Timestamp:
- Aug 9, 2010 2:32:03 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65003 r65004 1 2010-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 1 18 2010-08-09 Dan Bernstein <mitz@apple.com> 2 19 -
trunk/WebCore/html/HTMLViewSourceDocument.cpp
r62079 r65004 70 70 { 71 71 RefPtr<HTMLHtmlElement> html = HTMLHtmlElement::create(this); 72 legacyParserAddChild(html);72 parserAddChild(html); 73 73 html->attach(); 74 74 RefPtr<HTMLBodyElement> body = HTMLBodyElement::create(this); 75 html-> legacyParserAddChild(body);75 html->parserAddChild(body); 76 76 body->attach(); 77 77 … … 82 82 attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-gutter-backdrop")); 83 83 div->setAttributeMap(attrs.release()); 84 body-> legacyParserAddChild(div);84 body->parserAddChild(div); 85 85 div->attach(); 86 86 87 87 RefPtr<HTMLTableElement> table = HTMLTableElement::create(this); 88 body-> legacyParserAddChild(table);88 body->parserAddChild(table); 89 89 table->attach(); 90 90 m_tbody = HTMLTableSectionElement::create(tbodyTag, this); 91 table-> legacyParserAddChild(m_tbody);91 table->parserAddChild(m_tbody); 92 92 m_tbody->attach(); 93 93 m_current = m_tbody; … … 215 215 attrs->addAttribute(Attribute::createMapped(classAttr, className)); 216 216 span->setAttributeMap(attrs.release()); 217 m_current-> legacyParserAddChild(span);217 m_current->parserAddChild(span); 218 218 span->attach(); 219 219 return span.release(); … … 224 224 // Create a table row. 225 225 RefPtr<HTMLTableRowElement> trow = HTMLTableRowElement::create(this); 226 m_tbody-> legacyParserAddChild(trow);226 m_tbody->parserAddChild(trow); 227 227 trow->attach(); 228 228 … … 232 232 attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-number")); 233 233 td->setAttributeMap(attrs.release()); 234 trow-> legacyParserAddChild(td);234 trow->parserAddChild(td); 235 235 td->attach(); 236 236 … … 240 240 attrs->addAttribute(Attribute::createMapped(classAttr, "webkit-line-content")); 241 241 td->setAttributeMap(attrs.release()); 242 trow-> legacyParserAddChild(td);242 trow->parserAddChild(td); 243 243 td->attach(); 244 244 m_current = m_td = td; … … 277 277 addLine(className); 278 278 RefPtr<Text> t = Text::create(this, substring); 279 m_current-> legacyParserAddChild(t);279 m_current->parserAddChild(t); 280 280 t->attach(); 281 281 if (i < size - 1) … … 305 305 attrs->addAttribute(Attribute::createMapped(hrefAttr, url)); 306 306 anchor->setAttributeMap(attrs.release()); 307 m_current-> legacyParserAddChild(anchor);307 m_current->parserAddChild(anchor); 308 308 anchor->attach(); 309 309 return anchor.release();
Note: See TracChangeset
for help on using the changeset viewer.