Changeset 155808 in webkit for trunk/Source/WebCore/editing/markup.cpp
- Timestamp:
- Sep 15, 2013, 6:31:54 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/editing/markup.cpp
r155777 r155808 663 663 // We use a fake body element here to trick the HTML parser to using the InBody insertion mode. 664 664 RefPtr<HTMLBodyElement> fakeBody = HTMLBodyElement::create(*document); 665 RefPtr<DocumentFragment> fragment = DocumentFragment::create( document);665 RefPtr<DocumentFragment> fragment = DocumentFragment::create(*document); 666 666 667 667 fragment->parseHTML(markup, fakeBody.get(), parserContentPolicy); … … 744 744 // preserve the structure and appearance of the fragment. For example, if the fragment contains 745 745 // TD, we need to include the enclosing TABLE tag as well. 746 RefPtr<DocumentFragment> fragment = DocumentFragment::create( document);746 RefPtr<DocumentFragment> fragment = DocumentFragment::create(*document); 747 747 if (specialCommonAncestor) 748 748 fragment->appendChild(specialCommonAncestor, ASSERT_NO_EXCEPTION); … … 973 973 document = document->ensureTemplateDocument(); 974 974 #endif 975 RefPtr<DocumentFragment> fragment = DocumentFragment::create( document);975 RefPtr<DocumentFragment> fragment = DocumentFragment::create(*document); 976 976 977 977 if (document->isHTMLDocument()) { … … 1000 1000 fragment->parseHTML(sourceString, fakeBody.get()); 1001 1001 } else if (sourceMIMEType == "text/plain") 1002 fragment->parserAppendChild(Text::create( outputDoc, sourceString));1002 fragment->parserAppendChild(Text::create(*outputDoc, sourceString)); 1003 1003 else { 1004 1004 bool successfulParse = fragment->parseXML(sourceString, 0); … … 1104 1104 } 1105 1105 1106 RefPtr<Text> textNode = Text::create( &containerNode->document(), text);1106 RefPtr<Text> textNode = Text::create(containerNode->document(), text); 1107 1107 1108 1108 if (hasOneChild(containerNode.get())) {
Note:
See TracChangeset
for help on using the changeset viewer.