Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: WebCore/html/HTMLElement.cpp

Issue 3400014: Merge 67292 - 2010-09-11 Mihai Parparita <mihaip@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/html/HTMLDocument.cpp ('k') | WebCore/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/html/HTMLElement.cpp
===================================================================
--- WebCore/html/HTMLElement.cpp (revision 67731)
+++ WebCore/html/HTMLElement.cpp (working copy)
@@ -266,11 +266,6 @@
return createMarkup(this);
}
-static bool useLegacyTreeBuilder(Document*)
-{
- return false;
-}
-
// FIXME: This logic should move into Range::createContextualFragment
PassRefPtr<DocumentFragment> HTMLElement::deprecatedCreateContextualFragment(const String& markup, FragmentScriptingPermission scriptingPermission)
{
@@ -341,13 +336,6 @@
Document* document = contextElement->document();
RefPtr<DocumentFragment> fragment;
- if (useLegacyTreeBuilder(document)) {
- fragment = contextElement->deprecatedCreateContextualFragment(markup);
- if (!fragment)
- ec = NO_MODIFICATION_ALLOWED_ERR;
- return fragment;
- }
-
fragment = DocumentFragment::create(document);
if (document->isHTMLDocument()) {
fragment->parseHTML(markup, contextElement);
@@ -364,14 +352,6 @@
void HTMLElement::setInnerHTML(const String& html, ExceptionCode& ec)
{
- // FIXME: This code can be removed, it's handled by the HTMLDocumentParser correctly.
- if (useLegacyTreeBuilder(document()) && (hasLocalName(scriptTag) || hasLocalName(styleTag))) {
- // Script and CSS source shouldn't be parsed as HTML.
- removeChildren();
- appendChild(document()->createTextNode(html), ec);
- return;
- }
-
RefPtr<DocumentFragment> fragment = createFragmentFromSource(html, this, ec);
if (fragment)
replaceChildrenWithFragment(this, fragment.release(), ec);
« no previous file with comments | « WebCore/html/HTMLDocument.cpp ('k') | WebCore/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698