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

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

Issue 2106073005: Add fast-path for propagated variable changes (WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@+pointer_events_fastpath_5
Patch Set: Rebase Created 4 years, 1 month 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/StyleInheritedVariables.h
diff --git a/third_party/WebKit/Source/core/style/StyleInheritedVariables.h b/third_party/WebKit/Source/core/style/StyleInheritedVariables.h
index 1668f3211d2e77e192518bc97290ecf3fb0c3517..bde383f30164edaf9151b93fc3f3ad21f9dc888e 100644
--- a/third_party/WebKit/Source/core/style/StyleInheritedVariables.h
+++ b/third_party/WebKit/Source/core/style/StyleInheritedVariables.h
@@ -51,8 +51,13 @@ class StyleInheritedVariables : public RefCounted<StyleInheritedVariables> {
friend class CSSVariableResolver;
+ // Variables registered in this node.
HashMap<AtomicString, RefPtr<CSSVariableData>> m_data;
+
+ // Custom property values, registered with registerProperty().
HashMap<AtomicString, Persistent<CSSValue>> m_registeredData;
+
+ // Parent variable values to inherit from.
RefPtr<StyleInheritedVariables> m_root;
};

Powered by Google App Engine
This is Rietveld 408576698