| Index: Source/WebCore/dom/TreeScope.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/TreeScope.cpp (revision 134364)
|
| +++ Source/WebCore/dom/TreeScope.cpp (working copy)
|
| @@ -28,6 +28,7 @@
|
|
|
| #include "ComposedShadowTreeWalker.h"
|
| #include "ContainerNode.h"
|
| +#include "ContextFeatures.h"
|
| #include "DOMSelection.h"
|
| #include "DOMWindow.h"
|
| #include "Document.h"
|
| @@ -42,7 +43,6 @@
|
| #include "IdTargetObserverRegistry.h"
|
| #include "InsertionPoint.h"
|
| #include "Page.h"
|
| -#include "RuntimeEnabledFeatures.h"
|
| #include "ShadowRoot.h"
|
| #include "TreeScopeAdopter.h"
|
| #include <wtf/Vector.h>
|
| @@ -189,7 +189,7 @@
|
| // as a container. It is now enabled only if runtime Shadow DOM feature is enabled.
|
| // See https://bugs.webkit.org/show_bug.cgi?id=82697
|
| #if ENABLE(SHADOW_DOM)
|
| - if (RuntimeEnabledFeatures::shadowDOMEnabled()) {
|
| + if (ContextFeatures::shadowDOMEnabled(rootNode()->document())) {
|
| m_selection = DOMSelection::create(this);
|
| return m_selection.get();
|
| }
|
|
|