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

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

Issue 2730683002: Add CSS Transition support to registered custom properties (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/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..678c0cb55f278a79ba11533281ef937bdb3edf6e 100644
--- a/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp
@@ -4,9 +4,11 @@
#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"
+#include "wtf/text/AtomicString.h"
Eric Willigers 2017/03/08 04:10:47 Declaring the class would be sufficient. frame/csp
alancutter (OOO until 2018) 2017/03/09 04:35:59 Removed.
// TODO(ikilpatrick): generate this file.
@@ -375,4 +377,12 @@ bool CSSPropertyEquality::propertiesEqual(CSSPropertyID prop,
}
}
+bool CSSPropertyEquality::registeredCustomPropertiesEqual(
+ const AtomicString& propertyName,
+ const ComputedStyle& a,
+ const ComputedStyle& b) {
+ return compareCSSValuePtr(a.getRegisteredVariable(propertyName),
+ b.getRegisteredVariable(propertyName));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698