| Index: sky/engine/core/dom/Element.cpp
|
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
|
| index 70c4676387b3f0d3ba15489807b3a87d9dcdc472..0815b4c8dfca466ae6d76da7504b7d93ee334cef 100644
|
| --- a/sky/engine/core/dom/Element.cpp
|
| +++ b/sky/engine/core/dom/Element.cpp
|
| @@ -1025,17 +1025,13 @@ void Element::setNeedsAnimationStyleRecalc()
|
|
|
| void Element::setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definition)
|
| {
|
| - if (!hasRareData() && !definition)
|
| - return;
|
| - ASSERT(!customElementDefinition());
|
| - ensureElementRareData().setCustomElementDefinition(definition);
|
| + ASSERT(!m_customElementDefinition);
|
| + m_customElementDefinition = definition;
|
| }
|
|
|
| CustomElementDefinition* Element::customElementDefinition() const
|
| {
|
| - if (hasRareData())
|
| - return elementRareData()->customElementDefinition();
|
| - return 0;
|
| + return m_customElementDefinition.get();
|
| }
|
|
|
| // TODO(esprehn): Implement the sky spec where shadow roots are a custom
|
|
|