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

Unified Diff: third_party/WebKit/Source/core/animation/PropertyHandle.cpp

Issue 2309873003: Extend PropertyHandle to include custom property identifiers (Closed)
Patch Set: Add unit tests Created 4 years, 3 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/animation/PropertyHandle.cpp
diff --git a/third_party/WebKit/Source/core/animation/PropertyHandle.cpp b/third_party/WebKit/Source/core/animation/PropertyHandle.cpp
index 030be06b5d095a9ab360ffcd23c17767c9f24cf1..7cd52876abe323d5e13ad1f08952723a740cfe77 100644
--- a/third_party/WebKit/Source/core/animation/PropertyHandle.cpp
+++ b/third_party/WebKit/Source/core/animation/PropertyHandle.cpp
@@ -15,6 +15,8 @@ bool PropertyHandle::operator==(const PropertyHandle& other) const
case HandleCSSProperty:
case HandlePresentationAttribute:
return m_cssProperty == other.m_cssProperty;
+ case HandleCSSCustomProperty:
+ return m_propertyName == other.m_propertyName;
case HandleSVGAttribute:
return m_svgAttribute == other.m_svgAttribute;
default:
@@ -27,6 +29,8 @@ unsigned PropertyHandle::hash() const
switch (m_handleType) {
case HandleCSSProperty:
return m_cssProperty;
+ case HandleCSSCustomProperty:
+ return m_propertyName->existingHash();
case HandlePresentationAttribute:
return -m_cssProperty;
case HandleSVGAttribute:

Powered by Google App Engine
This is Rietveld 408576698