Changeset 155777 in webkit for trunk/Source/WebCore/editing/markup.cpp
- Timestamp:
- Sep 14, 2013, 12:16:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/editing/markup.cpp
r155374 r155777 662 662 { 663 663 // We use a fake body element here to trick the HTML parser to using the InBody insertion mode. 664 RefPtr<HTMLBodyElement> fakeBody = HTMLBodyElement::create( document);664 RefPtr<HTMLBodyElement> fakeBody = HTMLBodyElement::create(*document); 665 665 RefPtr<DocumentFragment> fragment = DocumentFragment::create(document); 666 666 … … 997 997 // Unfortunately, that's an implementation detail of the parser. 998 998 // We achieve that effect here by passing in a fake body element as context for the fragment. 999 RefPtr<HTMLBodyElement> fakeBody = HTMLBodyElement::create( outputDoc);999 RefPtr<HTMLBodyElement> fakeBody = HTMLBodyElement::create(*outputDoc); 1000 1000 fragment->parseHTML(sourceString, fakeBody.get()); 1001 1001 } else if (sourceMIMEType == "text/plain")
Note:
See TracChangeset
for help on using the changeset viewer.