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

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

Issue 2723883005: Add registered custom property wrapping support to CSSAnimatableValueFactory (Closed)
Patch Set: Rebased Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index fdcb3f635ed95e4eb76e22d5aa96f43c3d38914f..dd686597bdff2afb4b06c8140f040842bc7f7919 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1859,6 +1859,17 @@ const CSSValue* ComputedStyle::getRegisteredVariable(
: nullptr;
}
+const CSSValue* ComputedStyle::getRegisteredVariable(
+ const AtomicString& name) const {
+ // Registered custom properties are by default non-inheriting so check there
+ // first.
+ const CSSValue* result = getRegisteredVariable(name, false);
+ if (result) {
+ return result;
+ }
+ return getRegisteredVariable(name, true);
+}
+
float ComputedStyle::wordSpacing() const {
return getFontDescription().wordSpacing();
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698