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

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

Issue 2835223003: Use kCamelCase in Document::ListenerType enum (Closed)
Patch Set: renamed Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/CharacterData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12a4ea848ede6fc7561c78bd5372420ca29365bc..bf557a6d07c3835cd71fb731c4f6c7b23f61cb55 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -1074,7 +1074,7 @@ void CSSAnimations::AnimationEventDelegate::MaybeDispatch(
bool CSSAnimations::AnimationEventDelegate::RequiresIterationEvents(
const AnimationEffectReadOnly& animation_node) {
- return GetDocument().HasListenerType(Document::ANIMATIONITERATION_LISTENER);
+ return GetDocument().HasListenerType(Document::kAnimationIterationListener);
}
void CSSAnimations::AnimationEventDelegate::OnEventCondition(
@@ -1090,7 +1090,7 @@ void CSSAnimations::AnimationEventDelegate::OnEventCondition(
previous_phase_ == AnimationEffectReadOnly::kPhaseBefore)) {
const double start_delay = animation_node.SpecifiedTiming().start_delay;
const double elapsed_time = start_delay < 0 ? -start_delay : 0;
- MaybeDispatch(Document::ANIMATIONSTART_LISTENER,
+ MaybeDispatch(Document::kAnimationStartListener,
EventTypeNames::animationstart, elapsed_time);
}
@@ -1105,13 +1105,13 @@ void CSSAnimations::AnimationEventDelegate::OnEventCondition(
const double elapsed_time =
animation_node.SpecifiedTiming().iteration_duration *
(previous_iteration_ + 1);
- MaybeDispatch(Document::ANIMATIONITERATION_LISTENER,
+ MaybeDispatch(Document::kAnimationIterationListener,
EventTypeNames::animationiteration, elapsed_time);
}
if (current_phase == AnimationEffectReadOnly::kPhaseAfter &&
previous_phase_ != AnimationEffectReadOnly::kPhaseAfter)
- MaybeDispatch(Document::ANIMATIONEND_LISTENER, EventTypeNames::animationend,
+ MaybeDispatch(Document::kAnimationEndListener, EventTypeNames::animationend,
animation_node.ActiveDurationInternal());
previous_phase_ = current_phase;
@@ -1133,7 +1133,7 @@ void CSSAnimations::TransitionEventDelegate::OnEventCondition(
animation_node.GetPhase();
if (current_phase == AnimationEffectReadOnly::kPhaseAfter &&
current_phase != previous_phase_ &&
- GetDocument().HasListenerType(Document::TRANSITIONEND_LISTENER)) {
+ GetDocument().HasListenerType(Document::kTransitionEndListener)) {
String property_name = property_.IsCSSCustomProperty()
? property_.CustomPropertyName()
: getPropertyNameString(property_.CssProperty());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/CharacterData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698