diff options
Diffstat (limited to 'Source/WebCore/dom/ContextFeatures.cpp')
-rw-r--r-- | Source/WebCore/dom/ContextFeatures.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WebCore/dom/ContextFeatures.cpp b/Source/WebCore/dom/ContextFeatures.cpp index 0aa310dfe..da7df9d1d 100644 --- a/Source/WebCore/dom/ContextFeatures.cpp +++ b/Source/WebCore/dom/ContextFeatures.cpp @@ -63,6 +63,18 @@ bool ContextFeatures::dialogElementEnabled(Document* document) #endif } +bool ContextFeatures::shadowDOMEnabled(Document* document) +{ +#if ENABLE(SHADOW_DOM) + if (!document) + return RuntimeEnabledFeatures::shadowDOMEnabled(); + return document->contextFeatures()->isEnabled(document, ShadowDOM, RuntimeEnabledFeatures::shadowDOMEnabled()); +#else + UNUSED_PARAM(document); + return false; +#endif +} + bool ContextFeatures::styleScopedEnabled(Document* document) { #if ENABLE(STYLE_SCOPED) @@ -107,6 +119,11 @@ bool ContextFeatures::mutationEventsEnabled(Document* document) return document->contextFeatures()->isEnabled(document, MutationEvents, true); } +bool ContextFeatures::pushStateEnabled(Document* document) +{ + return document->contextFeatures()->isEnabled(document, PushState, true); +} + void provideContextFeaturesTo(Page* page, ContextFeaturesClient* client) { RefCountedSupplement<Page, ContextFeatures>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(client)); |