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

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

Issue 1590193002: Partial implementation of inline StylePropertyMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@maps
Patch Set: Remove spurious file Created 4 years, 9 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index b350f3959090a24f1681063e78c6620a5040e714..f0c44f63eb8c1475109173d3c4840a9130d87c56 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -68,6 +68,7 @@ class ScrollToOptions;
class ShadowRoot;
class ShadowRootInit;
class StylePropertySet;
+class StylePropertyMap;
enum SpellcheckAttributeState {
SpellcheckAttributeTrue,
@@ -243,6 +244,7 @@ public:
AttrNodeList* attrNodeList();
CSSStyleDeclaration* style();
+ StylePropertyMap* styleMap();
const QualifiedName& tagQName() const { return m_tagName; }
String tagName() const { return nodeName(); }
@@ -281,6 +283,8 @@ public:
bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool important = false);
bool setInlineStyleProperty(CSSPropertyID, double value, CSSPrimitiveValue::UnitType, bool important = false);
bool setInlineStyleProperty(CSSPropertyID, const String& value, bool important = false);
+ bool setInlineStyleProperty(CSSPropertyID, const PassRefPtrWillBeRawPtr<CSSValue>, bool important = false);
+
bool removeInlineStyleProperty(CSSPropertyID);
void removeAllInlineStyleProperties();
@@ -712,6 +716,8 @@ private:
v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext);
+ void invalidateInlineStylePropertyMap();
+
RefPtrWillBeMember<ElementData> m_elementData;
};
@@ -878,6 +884,7 @@ inline void Element::invalidateStyleAttribute()
{
ASSERT(elementData());
elementData()->m_styleAttributeIsDirty = true;
+ invalidateInlineStylePropertyMap();
}
inline const StylePropertySet* Element::presentationAttributeStyle()

Powered by Google App Engine
This is Rietveld 408576698