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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2630683002: Move custom property isInheritedProperty storage logic into ComputedStyle (Closed)
Patch Set: Undo cscssvm change Created 3 years, 11 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 441d58ba5c00d8603f5bd9d7c61f602050b87cf1..825e0e5fd7be9d75e7f6a0679674c4c4c12afb5b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2504,12 +2504,17 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
PassRefPtr<CSSVariableData>,
const CSSValue*);
- void removeInheritedVariable(const AtomicString&);
- void removeNonInheritedVariable(const AtomicString&);
+ void removeVariable(const AtomicString&, bool isInheritedProperty);
// Handles both inherited and non-inherited variables
CSSVariableData* getVariable(const AtomicString&) const;
+ CSSVariableData* getVariable(const AtomicString&,
+ bool isInheritedProperty) const;
+
+ const CSSValue* getRegisteredVariable(const AtomicString&,
+ bool isInheritedProperty) const;
+
void setHasVariableReferenceFromNonInheritedProperty() {
m_nonInheritedData.m_variableReference = true;
}

Powered by Google App Engine
This is Rietveld 408576698