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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp

Issue 2228313002: Make a function to query whether a CSSPropertyID is valid and whether it has a name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asan
Patch Set: Revert spurious change Created 4 years, 2 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/css/CSSAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
index 0ab1173dc676ef47fc1df5599cf527d5d57efc55..0d548749ba41b4c0bfa9deb55999c67b490c53a7 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -129,7 +129,7 @@ static StringKeyframeEffectModel* createKeyframeEffectModel(
DEFINE_STATIC_LOCAL(SparseHistogram, propertyHistogram,
("WebCore.Animation.CSSProperties"));
for (CSSPropertyID property : specifiedPropertiesForUseCounter) {
- DCHECK_NE(property, CSSPropertyInvalid);
+ DCHECK(isValidCSSPropertyID(property));
propertyHistogram.sample(
UseCounter::mapCSSPropertyIdToCSSSampleIdForHistogram(property));
}
@@ -625,7 +625,7 @@ void CSSAnimations::maybeApplyPendingUpdate(Element* element) {
animation->update(TimingUpdateOnDemand);
runningTransition.animation = animation;
m_transitions.set(id, runningTransition);
- DCHECK_NE(id, CSSPropertyInvalid);
+ DCHECK(isValidCSSPropertyID(id));
DEFINE_STATIC_LOCAL(SparseHistogram, propertyHistogram,
("WebCore.Animation.CSSProperties"));

Powered by Google App Engine
This is Rietveld 408576698