summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/ShadowRoot.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/ShadowRoot.h')
-rw-r--r--Source/WebCore/dom/ShadowRoot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/dom/ShadowRoot.h b/Source/WebCore/dom/ShadowRoot.h
index d0b189472..401ee5e9d 100644
--- a/Source/WebCore/dom/ShadowRoot.h
+++ b/Source/WebCore/dom/ShadowRoot.h
@@ -42,6 +42,16 @@ public:
static PassRefPtr<ShadowRoot> create(Document*);
static PassRefPtr<ShadowRoot> create(Element*, ExceptionCode&);
+ // FIXME: We will support multiple shadow subtrees, however current implementation does not work well
+ // if a shadow root is dynamically created. So we prohibit multiple shadow subtrees
+ // in several elements for a while.
+ // See https://bugs.webkit.org/show_bug.cgi?id=77503 and related bugs.
+ enum ShadowRootCreationPurpose {
+ CreatingUserAgentShadowRoot,
+ CreatingAuthorShadowRoot,
+ };
+ static PassRefPtr<ShadowRoot> create(Element*, ShadowRootCreationPurpose, ExceptionCode& = ASSERT_NO_EXCEPTION);
+
void recalcShadowTreeStyle(StyleChange);
void setNeedsReattachHostChildrenAndShadow();