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

Unified Diff: Source/WebCore/html/shadow/HTMLContentElement.cpp

Issue 11410062: Merge 133429 - Shadow DOM should be able to be disabled per context. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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 | « Source/WebCore/html/HTMLTagNames.in ('k') | Source/WebCore/page/DOMWindow.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/shadow/HTMLContentElement.cpp
===================================================================
--- Source/WebCore/html/shadow/HTMLContentElement.cpp (revision 134364)
+++ Source/WebCore/html/shadow/HTMLContentElement.cpp (working copy)
@@ -29,10 +29,10 @@
#include "ContentDistributor.h"
#include "ContentSelectorQuery.h"
+#include "ContextFeatures.h"
#include "ElementShadow.h"
#include "HTMLNames.h"
#include "QualifiedName.h"
-#include "RuntimeEnabledFeatures.h"
#include "ShadowRoot.h"
#include <wtf/StdLibExtras.h>
@@ -40,13 +40,14 @@
using HTMLNames::selectAttr;
-const QualifiedName& HTMLContentElement::contentTagName(Document*)
+const QualifiedName& HTMLContentElement::contentTagName(Document* document)
{
#if ENABLE(SHADOW_DOM)
- if (!RuntimeEnabledFeatures::shadowDOMEnabled())
+ if (!ContextFeatures::shadowDOMEnabled(document))
return HTMLNames::webkitShadowContentTag;
return HTMLNames::contentTag;
#else
+ UNUSED_PARAM(document);
return HTMLNames::webkitShadowContentTag;
#endif
}
« no previous file with comments | « Source/WebCore/html/HTMLTagNames.in ('k') | Source/WebCore/page/DOMWindow.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698