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

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: Renamed members 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/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 f5f3fc0f9e1ecde24f85d2337b2c1f2f81ea66fa..de9e8f9f67bb9225a2a282a964a69fc2c1c339f2 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) {

Powered by Google App Engine
This is Rietveld 408576698