https://bugs.webkit.org/show_bug.cgi?id=70546
Reviewed by Sam Weinig.
Source/WebCore:
Test: fast/writing-mode/flipped-blocks-hit-test-overflow.html
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::nodeAtPoint): Flip the overflow rect if necessary.
LayoutTests:
* fast/writing-mode/flipped-blocks-hit-test-overflow-expected.txt: Added.
* fast/writing-mode/flipped-blocks-hit-test-overflow.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98022
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-10-20 Dan Bernstein <mitz@apple.com>
+
+ Flipped-blocks writing mode blocks do not hit test their overflow
+ https://bugs.webkit.org/show_bug.cgi?id=70546
+
+ Reviewed by Sam Weinig.
+
+ * fast/writing-mode/flipped-blocks-hit-test-overflow-expected.txt: Added.
+ * fast/writing-mode/flipped-blocks-hit-test-overflow.html: Added.
+
2011-10-20 David Hyatt <hyatt@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=70539
--- /dev/null
+This tests hit-testing in the overflow area of flipped-blocks writing mode blocks.
+
+The red rectangle should turn green when you hover over it.
+
+PASS
--- /dev/null
+<style>
+ #target { background-color: red; }
+ #target:hover { background-color: green; }
+</style>
+<div style="margin: 100px 0 0 92px; -webkit-writing-mode: horizontal-bt; height: 100px; width: 100px;">
+ <div style="height: 100px;"></div>
+ <div id="target" style="height: 50px;"></div>
+</div>
+<p>
+ This tests hit-testing in the overflow area of flipped-blocks writing mode
+ blocks.
+</p>
+<p>
+ The red rectangle should turn green when you hover over it.
+</p>
+<p id="result">
+</p>
+<script>
+ var target = document.getElementById("target");
+ var result = document.elementFromPoint(150, 75);
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ document.getElementById("result").innerText = result === target ? "PASS" : "FAIL";
+</script>
+2011-10-20 Dan Bernstein <mitz@apple.com>
+
+ Flipped-blocks writing mode blocks do not hit test their overflow
+ https://bugs.webkit.org/show_bug.cgi?id=70546
+
+ Reviewed by Sam Weinig.
+
+ Test: fast/writing-mode/flipped-blocks-hit-test-overflow.html
+
+ * rendering/RenderBlock.cpp:
+ (WebCore::RenderBlock::nodeAtPoint): Flip the overflow rect if necessary.
+
2011-10-20 David Hyatt <hyatt@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=70539
if (!isRenderView()) {
// Check if we need to do anything at all.
LayoutRect overflowBox = visualOverflowRect();
+ flipForWritingMode(overflowBox);
overflowBox.moveBy(adjustedLocation);
if (!overflowBox.intersects(result.rectForPoint(pointInContainer)))
return false;