| Index: sky/engine/core/rendering/RenderBlockFlow.cpp
|
| diff --git a/sky/engine/core/rendering/RenderBlockFlow.cpp b/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| index 80c4b21d4725f05e0d86705eb90c6c5aa843f2c3..d8511c898cb6256ec279cc0f47f4e14b49f86593 100644
|
| --- a/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| +++ b/sky/engine/core/rendering/RenderBlockFlow.cpp
|
| @@ -2070,11 +2070,6 @@ bool RenderBlockFlow::hitTestFloats(const HitTestRequest& request, HitTestResult
|
| if (!m_floatingObjects)
|
| return false;
|
|
|
| - LayoutPoint adjustedLocation = accumulatedOffset;
|
| - if (isRenderView()) {
|
| - adjustedLocation += toLayoutSize(toRenderView(this)->frameView()->scrollPosition());
|
| - }
|
| -
|
| const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set();
|
| FloatingObjectSetIterator begin = floatingObjectSet.begin();
|
| for (FloatingObjectSetIterator it = floatingObjectSet.end(); it != begin;) {
|
| @@ -2083,7 +2078,7 @@ bool RenderBlockFlow::hitTestFloats(const HitTestRequest& request, HitTestResult
|
| if (floatingObject->shouldPaint() && !floatingObject->renderer()->hasSelfPaintingLayer()) {
|
| LayoutUnit xOffset = xPositionForFloatIncludingMargin(floatingObject) - floatingObject->renderer()->x();
|
| LayoutUnit yOffset = yPositionForFloatIncludingMargin(floatingObject) - floatingObject->renderer()->y();
|
| - LayoutPoint childPoint = flipFloatForWritingModeForChild(floatingObject, adjustedLocation + LayoutSize(xOffset, yOffset));
|
| + LayoutPoint childPoint = flipFloatForWritingModeForChild(floatingObject, accumulatedOffset + LayoutSize(xOffset, yOffset));
|
| if (floatingObject->renderer()->hitTest(request, result, locationInContainer, childPoint)) {
|
| updateHitTestResult(result, locationInContainer.point() - toLayoutSize(childPoint));
|
| return true;
|
|
|