[Webkit-unassigned] [Bug 181002] overflow:scroll is scrollable when the mouse is over the border, unlike other browsers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 10 02:48:00 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=181002

--- Comment #3 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
This quick hack provides the correct behavior for the test case:

diff --git a/Source/WebCore/rendering/RenderBlock.cpp b/Source/WebCore/rendering/RenderBlock.cpp
index f2ca0e134c9..781b12343c1 100644
--- a/Source/WebCore/rendering/RenderBlock.cpp
+++ b/Source/WebCore/rendering/RenderBlock.cpp
@@ -2238,3 +2238,4 @@ bool RenderBlock::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu
     if (hitTestAction == HitTestBlockBackground || hitTestAction == HitTestChildBlockBackground) {
-        LayoutRect boundsRect(adjustedLocation, size());
+        LayoutRect boundsRect = paddingBoxRect();
+        boundsRect.moveBy(adjustedLocation);
         if (visibleToHitTesting() && locationInContainer.intersects(boundsRect)) {

However, I'm not sure that's what we want. Do you have any suggestion?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180110/a40287b2/attachment.html>


More information about the webkit-unassigned mailing list