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

Issue 15932012: HitTestResult::innerElement should check its parent node for rendering and styling. (Closed)

Created:
7 years, 6 months ago by tasak
Modified:
7 years, 6 months ago
Reviewers:
hayato
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, jchaffraix+rendering, leviw+renderwatch, Hajime Morrita
Visibility:
Public.

Description

HitTestResult::innerElement should check its parent node for rendering and styling. Suppose that text nodes are direct chilren of a shadow host and projected. If hover over the text nodes, HitTestResult::innerElement should be an element in the shadow dom tree, not the shadow host. Since innerElement() is only used for Document::updateHoverActiveState (in EventHandler.cpp and Document.cpp), we can modify HitTestResult::innerElement. To avoid an element in shadow dom tree via Docuemnt.activeElement, use ancestorInThisScope in updateHoverActiveState. BUG=244869 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152132

Patch Set 1 #

Patch Set 2 : WIP2 #

Total comments: 6

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -10 lines) Patch
A LayoutTests/fast/dom/shadow/hover-active-drag-distributed-nodes.html View 1 1 chunk +109 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/shadow/hover-active-drag-distributed-nodes-expected.txt View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 3 chunks +16 lines, -8 lines 0 comments Download
M Source/core/rendering/HitTestResult.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
tasak
Still working in process. Need new layout tests, one is for :hover and the other ...
7 years, 6 months ago (2013-05-30 11:32:05 UTC) #1
dglazkov
hayato@ will be perfect to review this.
7 years, 6 months ago (2013-05-30 16:52:48 UTC) #2
tasak
The WIP makes :active buggy, because: (1) should provide real element (not use ancestorInThisScope). (2) ...
7 years, 6 months ago (2013-05-31 05:58:41 UTC) #3
tasak
I need a patch in https://codereview.chromium.org/15680005/. The patch solves the problem that activeElement() changes during ...
7 years, 6 months ago (2013-05-31 06:24:55 UTC) #4
hayato
On 2013/05/30 16:52:48, Dimitri Glazkov wrote: > hayato@ will be perfect to review this. Let ...
7 years, 6 months ago (2013-05-31 06:36:38 UTC) #5
tasak
On 2013/05/31 06:36:38, hayato wrote: > On 2013/05/30 16:52:48, Dimitri Glazkov wrote: > > hayato@ ...
7 years, 6 months ago (2013-05-31 08:14:23 UTC) #6
hayato
https://chromiumcodereview.appspot.com/15932012/diff/9001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/15932012/diff/9001/Source/core/dom/Document.cpp#newcode3134 Source/core/dom/Document.cpp:3134: m_hoverNode = m_hoverNode->parentOrShadowHostNode(); Shouldn't we use NodeRenderingTraversal::parent() here? https://chromiumcodereview.appspot.com/15932012/diff/9001/Source/core/dom/Document.cpp#newcode3151 ...
7 years, 6 months ago (2013-06-03 09:03:47 UTC) #7
tasak
Thank you for reviewing. https://chromiumcodereview.appspot.com/15932012/diff/9001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/15932012/diff/9001/Source/core/dom/Document.cpp#newcode3134 Source/core/dom/Document.cpp:3134: m_hoverNode = m_hoverNode->parentOrShadowHostNode(); On 2013/06/03 ...
7 years, 6 months ago (2013-06-03 11:18:24 UTC) #8
hayato
https://chromiumcodereview.appspot.com/15932012/diff/15001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/15932012/diff/15001/Source/core/dom/Document.cpp#newcode3121 Source/core/dom/Document.cpp:3121: m_hoverNode = NodeRenderingTraversal::parent(node, &details); It's optional, but we could ...
7 years, 6 months ago (2013-06-05 01:47:43 UTC) #9
tasak
I added a expectation text for my layout test. Some shouldBe in the layout test ...
7 years, 6 months ago (2013-06-07 09:55:36 UTC) #10
hayato
LGTM. You can land this patch after rebasing.
7 years, 6 months ago (2013-06-10 07:41:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/15932012/21001
7 years, 6 months ago (2013-06-10 12:03:04 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-10 13:57:16 UTC) #13
Message was sent while issue was closed.
Change committed as 152132

Powered by Google App Engine
This is Rietveld 408576698