Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 6e82497285b15cf23d3d05e1fd98aa5da0ba9342..60bd7bfd4bb8ed75e61f876adb527bdc0f9522a8 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1765,6 +1765,21 @@ void Element::setNeedsAnimationStyleRecalc() |
setAnimationStyleChange(true); |
} |
+void Element::setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definition) |
+{ |
+ if (!hasRareData() && !definition) |
+ return; |
+ ASSERT(!customElementDefinition()); |
+ ensureElementRareData().setCustomElementDefinition(definition); |
+} |
+ |
+CustomElementDefinition* Element::customElementDefinition() const |
+{ |
+ if (hasRareData()) |
+ return elementRareData()->customElementDefinition(); |
+ return 0; |
+} |
+ |
PassRefPtr<ShadowRoot> Element::createShadowRoot(ExceptionState& exceptionState) |
{ |
if (alwaysCreateUserAgentShadowRoot()) |