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

Unified Diff: third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp

Issue 2730683002: Add CSS Transition support to registered custom properties (Closed)
Patch Set: comments 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
Index: third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp b/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
index 8c69d8ac1dd953c955366abed055976f6dd6d4d2..faab853b7b67177788e76ddb64bc7fc119891aa4 100644
--- a/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
@@ -4,6 +4,7 @@
#include "core/css/CSSPropertyEquality.h"
+#include "core/css/CSSValue.h"
#include "core/style/ComputedStyle.h"
#include "core/style/DataEquivalency.h"
#include "core/style/ShadowList.h"
@@ -375,4 +376,12 @@ bool CSSPropertyEquality::propertiesEqual(CSSPropertyID prop,
}
}
+bool CSSPropertyEquality::registeredCustomPropertiesEqual(
+ const AtomicString& propertyName,
+ const ComputedStyle& a,
+ const ComputedStyle& b) {
+ return dataEquivalent(a.getRegisteredVariable(propertyName),
+ b.getRegisteredVariable(propertyName));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698