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

Issue 2523903002: Document::updateHoverActiveState only cancel hover and active state when hitting native scrollbar (Closed)

Created:
4 years, 1 month ago by chaopeng
Modified:
4 years ago
Reviewers:
bokan
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, Navid Zolghadr, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Document::updateHoverActiveState only cancel hover and active state when hitting native scrollbar This patch is change Document::updateHoverActiveState argument bool hitScrollbar to Scrollbar hitScrollbar and check hitScrollbar is native scrollbar. This patch can make `div:hover::-webkit-scrollbar-thumb` working correctly. BUG=667206 Committed: https://crrev.com/bb7a6b0e1d0b5ca9aab24b7e794dc1d1e81c25db Cr-Commit-Position: refs/heads/master@{#434298}

Patch Set 1 #

Total comments: 6

Patch Set 2 : bokan@ comment addressed #

Patch Set 3 : bokan@ comment addressed #

Total comments: 3

Patch Set 4 : revert test code #

Patch Set 5 : bokan@ comment#8 addressed #

Total comments: 3

Patch Set 6 : comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -11 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 3 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 2 chunks +55 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/custom-scrollbar-hover.html View 1 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
chaopeng
4 years, 1 month ago (2016-11-23 02:51:36 UTC) #4
bokan
https://codereview.chromium.org/2523903002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2523903002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6025 third_party/WebKit/Source/core/dom/Document.cpp:6025: bool hitOverlayScrollbar) { I think the distinction is native ...
4 years ago (2016-11-23 15:07:50 UTC) #5
chaopeng
Updated, PTAL. https://codereview.chromium.org/2523903002/diff/1/third_party/WebKit/Source/web/tests/WebFrameTest.cpp File third_party/WebKit/Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/2523903002/diff/1/third_party/WebKit/Source/web/tests/WebFrameTest.cpp#newcode10610 third_party/WebKit/Source/web/tests/WebFrameTest.cpp:10610: EXPECT_TRUE(document->hoverNode()); On 2016/11/23 15:07:50, bokan wrote: > ...
4 years ago (2016-11-23 16:58:36 UTC) #7
bokan
https://codereview.chromium.org/2523903002/diff/2/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2523903002/diff/2/third_party/WebKit/Source/core/dom/Document.cpp#newcode6025 third_party/WebKit/Source/core/dom/Document.cpp:6025: bool hitNativeScrollbar = hitScrollbar && !hitScrollbar->isCustomScrollbar(); Please add a ...
4 years ago (2016-11-23 17:09:52 UTC) #8
chaopeng
On 2016/11/23 17:09:52, bokan wrote: > https://codereview.chromium.org/2523903002/diff/2/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2523903002/diff/2/third_party/WebKit/Source/core/dom/Document.cpp#newcode6025 > ...
4 years ago (2016-11-23 20:58:28 UTC) #9
bokan
lgtm % comments https://codereview.chromium.org/2523903002/diff/70001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2523903002/diff/70001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6026 third_party/WebKit/Source/core/dom/Document.cpp:6026: // Only cancel hover state when ...
4 years ago (2016-11-23 21:05:19 UTC) #10
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/2523903002/90001
4 years ago (2016-11-23 21:16:15 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years ago (2016-11-24 00:44:24 UTC) #16
commit-bot: I haz the power
4 years ago (2016-11-24 00:46:28 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bb7a6b0e1d0b5ca9aab24b7e794dc1d1e81c25db
Cr-Commit-Position: refs/heads/master@{#434298}

Powered by Google App Engine
This is Rietveld 408576698