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

Issue 2668133003: Change hover element to scrollbar's parent when hit test contains scrollbar (Closed)

Created:
3 years, 10 months ago by chaopeng
Modified:
3 years, 10 months ago
Reviewers:
bokan
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change hover element to scrollbar's parent when hit test contains scrollbar This issue is caused by remove hit test element in |Document::updateHoverActiveState| when hit test contains scrollbar. Instead we should replace the hit test element to be scrollbar's parent when hitting a scrollbar. BUG=686678 Review-Url: https://codereview.chromium.org/2668133003 Cr-Commit-Position: refs/heads/master@{#448078} Committed: https://chromium.googlesource.com/chromium/src/+/4d68b33ea8398044d86aa76353e6f7de6880bad6

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 5

Patch Set 3 : bokan comment addressed #

Total comments: 4

Patch Set 4 : add clientwidth check #

Total comments: 1

Patch Set 5 : use non-overlay-scrollbar #

Total comments: 1

Patch Set 6 : bokan comment addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -8 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 2 chunks +15 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 2 chunks +87 lines, -1 line 0 comments Download
A third_party/WebKit/Source/web/tests/data/scrollbar-and-element-hover.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
chaopeng
Please take a early look at this patch. Thank you.
3 years, 10 months ago (2017-02-01 19:51:57 UTC) #3
bokan
Thanks, looks good, just some suggestions. https://codereview.chromium.org/2668133003/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2668133003/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6102 third_party/WebKit/Source/core/dom/Document.cpp:6102: innerElementInDocument = You've ...
3 years, 10 months ago (2017-02-02 23:29:26 UTC) #11
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2668133003/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2668133003/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6102 third_party/WebKit/Source/core/dom/Document.cpp:6102: innerElementInDocument = On 2017/02/02 23:29:26, ...
3 years, 10 months ago (2017-02-03 01:12:05 UTC) #12
bokan
https://codereview.chromium.org/2668133003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2668133003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11067 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11067: scrollableArea = toLayoutBox(parentDiv->layoutObject())->getScrollableArea(); Do you need this? I wouldn't ...
3 years, 10 months ago (2017-02-03 01:51:23 UTC) #13
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2668133003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2668133003/diff/40001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11067 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11067: scrollableArea = toLayoutBox(parentDiv->layoutObject())->getScrollableArea(); On 2017/02/03 ...
3 years, 10 months ago (2017-02-03 17:00:30 UTC) #14
bokan
https://codereview.chromium.org/2668133003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2668133003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11072 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11072: EXPECT_LE(hitTestResult.innerElement()->clientWidth(), 180); clientWidth should be 165 (180 - 15). ...
3 years, 10 months ago (2017-02-03 18:24:28 UTC) #17
chaopeng
On 2017/02/03 18:24:28, bokan wrote: > https://codereview.chromium.org/2668133003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp > File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): > > https://codereview.chromium.org/2668133003/diff/60001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11072 > ...
3 years, 10 months ago (2017-02-03 18:53:46 UTC) #18
bokan
lgtm % nit https://codereview.chromium.org/2668133003/diff/80001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2668133003/diff/80001/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode11074 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:11074: EXPECT_EQ(hitTestResult.innerElement()->clientWidth(), 165); Check instead that the ...
3 years, 10 months ago (2017-02-03 19:17:23 UTC) #19
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/2668133003/100001
3 years, 10 months ago (2017-02-03 21:41:29 UTC) #26
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 21:55:37 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4d68b33ea8398044d86aa76353e6...

Powered by Google App Engine
This is Rietveld 408576698