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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2667493002: Changed EPosition to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 10 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/paint/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index 445c595b44494fdbe577d5a7e7666be82f5e91ef..34b7942e959e2e6c6f757736832a8ca09f7c4a95 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -880,12 +880,12 @@ void PaintPropertyTreeBuilder::updateContextForBoxPosition(
context.current.paintOffset = boxModelObject.container()->paintOffset();
switch (object.styleRef().position()) {
- case StaticPosition:
+ case EPosition::kStatic:
break;
- case RelativePosition:
+ case EPosition::kRelative:
context.current.paintOffset += boxModelObject.offsetForInFlowPosition();
break;
- case AbsolutePosition: {
+ case EPosition::kAbsolute: {
DCHECK(context.containerForAbsolutePosition ==
boxModelObject.container());
context.current = context.absolutePosition;
@@ -902,10 +902,10 @@ void PaintPropertyTreeBuilder::updateContextForBoxPosition(
}
break;
}
- case StickyPosition:
+ case EPosition::kSticky:
context.current.paintOffset += boxModelObject.offsetForInFlowPosition();
break;
- case FixedPosition:
+ case EPosition::kFixed:
context.current = context.fixedPosition;
break;
default:

Powered by Google App Engine
This is Rietveld 408576698