Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 1590193002: Partial implementation of inline StylePropertyMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maps
Patch Set: Update tests Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ElementRareData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
index 050f4c63072199b6c2968ff701412a0ba0a66ef7..16ab1e63fa828280c7ddcf39cbfa79e9cf843ac4 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -23,6 +23,7 @@
#define ElementRareData_h
#include "core/animation/ElementAnimations.h"
+#include "core/css/cssom/InlineStylePropertyMap.h"
#include "core/dom/Attr.h"
#include "core/dom/CompositorProxiedPropertySet.h"
#include "core/dom/DatasetDOMStringMap.h"
@@ -70,6 +71,9 @@ public:
}
CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement);
+ InlineStylePropertyMap& ensureInlineStylePropertyMap(Element* ownerElement);
+
+ InlineStylePropertyMap* inlineStylePropertyMap() { return m_cssomMapWrapper.get(); }
void clearShadow() { m_shadow = nullptr; }
ElementShadow* shadow() const { return m_shadow.get(); }
@@ -150,6 +154,7 @@ private:
OwnPtrWillBeMember<NamedNodeMap> m_attributeMap;
OwnPtrWillBeMember<AttrNodeList> m_attrNodeList;
OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper;
+ PersistentWillBeMember<InlineStylePropertyMap> m_cssomMapWrapper;
OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties;
PersistentWillBeMember<ElementAnimations> m_elementAnimations;

Powered by Google App Engine
This is Rietveld 408576698