From 89e2486a48b739f8d771d69ede5a6a1b244a10fc Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 30 Jul 2012 11:37:48 +0200 Subject: Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002) New snapshot with prospective Mountain Lion build fix --- Source/WebCore/rendering/RenderBox.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Source/WebCore/rendering/RenderBox.cpp') diff --git a/Source/WebCore/rendering/RenderBox.cpp b/Source/WebCore/rendering/RenderBox.cpp index d2de4b8a9..9b3b7de86 100644 --- a/Source/WebCore/rendering/RenderBox.cpp +++ b/Source/WebCore/rendering/RenderBox.cpp @@ -757,7 +757,7 @@ bool RenderBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result // Check our bounds next. For this purpose always assume that we can only be hit in the // foreground phase (which is true for replaced elements like images). - LayoutRect boundsRect = borderBoxRectInRegion(result.region()); + LayoutRect boundsRect = borderBoxRectInRegion(pointInContainer.region()); boundsRect.moveBy(adjustedLocation); if (visibleToHitTesting() && action == HitTestForeground && pointInContainer.intersects(boundsRect)) { updateHitTestResult(result, pointInContainer.point() - toLayoutSize(adjustedLocation)); @@ -3634,7 +3634,14 @@ void RenderBox::addLayoutOverflow(const LayoutRect& rect) else hasTopOverflow = true; } - + + if (hasColumns() && style()->columnProgression() == ReverseColumnProgression) { + if (isHorizontalWritingMode() ^ !style()->hasInlineColumnAxis()) + hasLeftOverflow = !hasLeftOverflow; + else + hasTopOverflow = !hasTopOverflow; + } + if (!hasTopOverflow) overflowRect.shiftYEdgeTo(max(overflowRect.y(), clientBox.y())); else -- cgit v1.2.1