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

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

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('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 9de013e0504219538784dd11a15444359931adb5..d31f6150593b5a83e60170582202a77e5b475608 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -284,7 +284,7 @@ void CSSAnimations::calculateAnimationUpdate(CSSAnimationUpdate& update, const E
for (bool& flag : cancelRunningAnimationFlags)
flag = true;
- if (animationData && style.display() != NONE) {
+ if (animationData && style.display() != EDisplay::None) {
const Vector<AtomicString>& nameList = animationData->nameList();
for (size_t i = 0; i < nameList.size(); ++i) {
AtomicString name = nameList[i];
@@ -638,7 +638,7 @@ void CSSAnimations::calculateTransitionUpdate(CSSAnimationUpdate& update, const
std::bitset<numCSSProperties> listedProperties;
bool anyTransitionHadTransitionAll = false;
const LayoutObject* layoutObject = animatingElement->layoutObject();
- if (!animationStyleRecalc && style.display() != NONE && layoutObject && layoutObject->style() && transitionData) {
+ if (!animationStyleRecalc && style.display() != EDisplay::None && layoutObject && layoutObject->style() && transitionData) {
const ComputedStyle& oldStyle = *layoutObject->style();
for (size_t i = 0; i < transitionData->propertyList().size(); ++i) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698