Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 2784313002: Change hittest node to be scrollbar's parent when hittest include a scrollbar (Closed)

Created:
3 years, 8 months ago by chaopeng
Modified:
3 years, 8 months ago
Reviewers:
bokan, mustaq
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, blink-reviews-layout_chromium.org, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change hittest node to be scrollbar's parent when hittest include a scrollbar For this issue, we pass the MouseMove or MouseLeave event to subframe when hittest result includes a scrollbar and a subframe (not scrollbar's parent), then we missing the scrollbar because do a another hit test in subframe. In this patch, I change the innerNode of hittestResult to be scrollbar's parent when hittestResult has a scrollbar at the end of hittest. Also I remove the same code in Document::updateHoverActiveState. BUG=706401 Review-Url: https://codereview.chromium.org/2784313002 Cr-Commit-Position: refs/heads/master@{#461850} Committed: https://chromium.googlesource.com/chromium/src/+/2275c1f6d1f074d065de4d0d1aef624f9fcefa66

Patch Set 1 #

Patch Set 2 : fix tests and add test #

Total comments: 13

Patch Set 3 : for try bot #

Patch Set 4 : bokan and mustaq comments addressed #

Total comments: 3

Patch Set 5 : bokan comment#24 addressed #

Patch Set 6 : add comment to m_innerURLElement #

Total comments: 1

Patch Set 7 : mustaq comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -53 lines) Patch
M third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture-expected.txt View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 chunks +4 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 6 chunks +10 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.h View 1 2 3 4 5 6 1 chunk +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 2 chunks +77 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/scrollbar-and-iframe-hover.html View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (22 generated)
chaopeng
PTAL. Thank you.
3 years, 8 months ago (2017-03-30 20:58:01 UTC) #10
mustaq
https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html File third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html (right): https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html#newcode41 third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html:41: // If the scrollbar captures the input the plugin ...
3 years, 8 months ago (2017-03-31 16:57:49 UTC) #13
bokan
https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html File third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html (right): https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html#newcode41 third_party/WebKit/LayoutTests/plugins/overlay-scrollbar-mouse-capture.html:41: // If the scrollbar captures the input the plugin ...
3 years, 8 months ago (2017-03-31 20:07:01 UTC) #14
chaopeng
https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11098 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11098: EXPECT_FALSE(document->hoverNode()); On 2017/03/31 20:07:00, bokan wrote: > The iframe ...
3 years, 8 months ago (2017-04-03 17:50:26 UTC) #19
chaopeng
Updated. PTAL. Thank you.
3 years, 8 months ago (2017-04-03 21:06:05 UTC) #23
bokan
A few nits but otherwise lgtm. Please wait for mustaq@ to stamp it before committing ...
3 years, 8 months ago (2017-04-04 15:18:01 UTC) #24
chaopeng
mustaq@ PTAL. https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2784313002/diff/20001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11098 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11098: EXPECT_FALSE(document->hoverNode()); On 2017/04/04 15:18:01, bokan wrote: > ...
3 years, 8 months ago (2017-04-04 18:20:36 UTC) #25
mustaq
LGTM with a nit on comments: https://codereview.chromium.org/2784313002/diff/100001/third_party/WebKit/Source/core/layout/HitTestResult.h File third_party/WebKit/Source/core/layout/HitTestResult.h (right): https://codereview.chromium.org/2784313002/diff/100001/third_party/WebKit/Source/core/layout/HitTestResult.h#newcode208 third_party/WebKit/Source/core/layout/HitTestResult.h:208: Member<Element> m_innerURLElement; // ...
3 years, 8 months ago (2017-04-04 18:56:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2784313002/120001
3 years, 8 months ago (2017-04-04 19:41:43 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 21:44:58 UTC) #32
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/2275c1f6d1f074d065de4d0d1aef...

Powered by Google App Engine
This is Rietveld 408576698