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

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, 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 2b3f00a112540310504c46589d2e1132999ee5e2..f9ebf6768535f2fc6f4a053b23709bb13091de1d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1869,6 +1869,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();
}

Powered by Google App Engine
This is Rietveld 408576698