| Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| index 897fc33211125f2bb5b63df1556ab9c3c10b4318..5f833eb60023b4febd3159e51e146629953fa966 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -1083,12 +1083,8 @@ LayoutRect LayoutInline::visualOverflowRect() const
|
|
|
| void LayoutInline::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, LayoutRect& rect, const PaintInvalidationState* paintInvalidationState) const
|
| {
|
| - if (paintInvalidationState && paintInvalidationState->canMapToContainer(ancestor)) {
|
| - if (style()->hasInFlowPosition() && layer())
|
| - rect.move(layer()->offsetForInFlowPosition());
|
| - rect.move(paintInvalidationState->paintOffset());
|
| - if (paintInvalidationState->isClipped())
|
| - rect.intersect(paintInvalidationState->clipRect());
|
| + if (paintInvalidationState && paintInvalidationState->canMapToAncestor(ancestor)) {
|
| + paintInvalidationState->mapObjectRectToAncestor(*this, ancestor, rect);
|
| return;
|
| }
|
|
|
|
|