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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.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/PaintLayerClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
index 5b8575c31e80ec6d0060631b61b210e8c24522ad..97782f1e26a8c0dbf4885e456a525ae5852f8871 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
@@ -58,13 +58,13 @@ static void adjustClipRectsForChildren(const LayoutBoxModelObject& layoutObject,
// A fixed object is essentially the root of its containing block hierarchy,
// so when we encounter such an object, we reset our clip rects to the
// fixedClipRect.
- if (position == FixedPosition) {
+ if (position == EPosition::kFixed) {
clipRects.setPosClipRect(clipRects.fixedClipRect());
clipRects.setOverflowClipRect(clipRects.fixedClipRect());
clipRects.setFixed(true);
- } else if (position == RelativePosition) {
+ } else if (position == EPosition::kRelative) {
clipRects.setPosClipRect(clipRects.overflowClipRect());
- } else if (position == AbsolutePosition) {
+ } else if (position == EPosition::kAbsolute) {
clipRects.setOverflowClipRect(clipRects.posClipRect());
}
}
@@ -423,10 +423,10 @@ void PaintLayerClipper::calculateClipRects(const ClipRectsContext& context,
static ClipRect backgroundClipRectForPosition(const ClipRects& parentRects,
EPosition position) {
- if (position == FixedPosition)
+ if (position == EPosition::kFixed)
return parentRects.fixedClipRect();
- if (position == AbsolutePosition)
+ if (position == EPosition::kAbsolute)
return parentRects.posClipRect();
return parentRects.overflowClipRect();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698