| 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();
|
|
|