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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.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/layout/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index 56b3a1226d88432625331e2f5579a27ba28d1d32..9b8c09b914beca2c3f26e1cb1bcc8a79fe48cc96 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -266,8 +266,8 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff, const ComputedSt
if (oldStyle && isOutOfFlowPositioned() && parent() && (parent() != containingBlock())
&& (styleRef().position() == oldStyle->position())
&& (styleRef().originalDisplay() != oldStyle->originalDisplay())
- && ((styleRef().originalDisplay() == BLOCK) || (styleRef().originalDisplay() == INLINE_BLOCK))
- && ((oldStyle->originalDisplay() == BLOCK) || (oldStyle->originalDisplay() == INLINE_BLOCK)))
+ && ((styleRef().originalDisplay() == EDisplay::Block) || (styleRef().originalDisplay() == EDisplay::InlineBlock))
+ && ((oldStyle->originalDisplay() == EDisplay::Block) || (oldStyle->originalDisplay() == EDisplay::InlineBlock)))
parent()->setNeedsLayout(LayoutInvalidationReason::ChildChanged, MarkContainerChain);
PaintLayerType type = layerTypeRequired();

Powered by Google App Engine
This is Rietveld 408576698