| 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 c4ec9f95d4a7d9131a836833f65961e607d049a2..b61c6de5e54c8e577a493794de086bf5a6bdff48 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -1083,8 +1083,8 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
|
| if (ancestor == this)
|
| return true;
|
|
|
| - bool ancestorSkipped;
|
| - LayoutObject* container = this->container(ancestor, &ancestorSkipped);
|
| + LayoutObject* container = this->container();
|
| + ASSERT(container == parent());
|
| if (!container)
|
| return true;
|
|
|
| @@ -1105,13 +1105,6 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
|
| if (container->isBox() && !toLayoutBox(container)->mapScrollingContentsRectToBoxSpace(rect, container == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags))
|
| return false;
|
|
|
| - if (ancestorSkipped) {
|
| - // If the paintInvalidationContainer is below o, then we need to map the rect into paintInvalidationContainer's coordinates.
|
| - LayoutSize containerOffset = ancestor->offsetFromAncestorContainer(container);
|
| - rect.move(-containerOffset);
|
| - return true;
|
| - }
|
| -
|
| return container->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags);
|
| }
|
|
|
|
|