| Index: third_party/WebKit/Source/core/dom/ElementRareData.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.cpp b/third_party/WebKit/Source/core/dom/ElementRareData.cpp
|
| index c5c756cf0a1597dd8f40c0823aaabefac1b6e8e4..782e554e50e1b3b370932e7a31f0b6df49e92206 100644
|
| --- a/third_party/WebKit/Source/core/dom/ElementRareData.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ElementRareData.cpp
|
| @@ -29,6 +29,8 @@
|
| */
|
|
|
| #include "core/dom/ElementRareData.h"
|
| +
|
| +#include "core/css/cssom/InlineStylePropertyMap.h"
|
| #include "core/dom/CompositorProxiedPropertySet.h"
|
| #include "core/style/ComputedStyle.h"
|
|
|
| @@ -39,7 +41,7 @@ struct SameSizeAsElementRareData : NodeRareData {
|
| LayoutSize sizeForResizing;
|
| IntSize scrollOffset;
|
| void* pointers[13];
|
| - PersistentWillBeMember<void*> persistentMember[2];
|
| + PersistentWillBeMember<void*> persistentMember[3];
|
| };
|
|
|
| CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* ownerElement)
|
| @@ -49,6 +51,14 @@ CSSStyleDeclaration& ElementRareData::ensureInlineCSSStyleDeclaration(Element* o
|
| return *m_cssomWrapper;
|
| }
|
|
|
| +InlineStylePropertyMap& ElementRareData::ensureInlineStylePropertyMap(Element* ownerElement)
|
| +{
|
| + if (!m_cssomMapWrapper) {
|
| + m_cssomMapWrapper = new InlineStylePropertyMap(ownerElement);
|
| + }
|
| + return *m_cssomMapWrapper;
|
| +}
|
| +
|
| AttrNodeList& ElementRareData::ensureAttrNodeList()
|
| {
|
| if (!m_attrNodeList)
|
| @@ -67,6 +77,7 @@ DEFINE_TRACE_AFTER_DISPATCH(ElementRareData)
|
| #endif
|
| visitor->trace(m_elementAnimations);
|
| visitor->trace(m_cssomWrapper);
|
| + visitor->trace(m_cssomMapWrapper);
|
| visitor->trace(m_customElementDefinition);
|
| visitor->trace(m_generatedBefore);
|
| visitor->trace(m_generatedAfter);
|
|
|