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

Issue 16951003: Fix broken AttachContext from r152289 (Closed)

Created:
7 years, 6 months ago by stavila
Modified:
7 years, 6 months ago
Reviewers:
esprehn, eae, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, chromiumbugtracker_adobe.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix broken AttachContext from r152289 Implemented changes requested by esprehn as a result of https://chromiumcodereview.appspot.com/16599003 Changes made: 1. The style was overwritten due to the subtle difference between webkit and blink, now it's ok. 2. Now the context is properly propagated to the element's children and to Shadow DOM elements. 3. Now the context is properly set on the lazyReattach method. BUG=249328 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152822

Patch Set 1 #

Total comments: 4

Patch Set 2 : Removed unwanted comments and passed context to Shadow DOM elements #

Total comments: 1

Patch Set 3 : Fixed problems regarding the second hit-test procedure #

Patch Set 4 : Updated test to ensure it won't depend on the machine's speed #

Patch Set 5 : Improved fast/css/hover-update.html #

Total comments: 4

Patch Set 6 : Final patch #

Total comments: 2

Patch Set 7 : Moved detached hovered check to recalcStyle, really final patch :) #

Patch Set 8 : Improved hover-single-flow-into-other.html to not depend on the machine's speed #

Patch Set 9 : Fixed failing test (/fast/forms/file/input-file-re-render.html) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -27 lines) Patch
M LayoutTests/fast/css/hover-display-block-none.html View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M LayoutTests/fast/css/hover-update.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/css/hover-update-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/forms/file/input-file-re-render.html View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/fast/regions/hover-single-flow-into-other.html View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M Source/core/dom/ContainerNode.h View 1 2 3 chunks +18 lines, -9 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -3 lines 1 comment Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/dom/NodeRenderingContext.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/shadow/ElementShadow.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 1 2 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
esprehn
In the future please make much smaller changes. The style reuse and the hover fix ...
7 years, 6 months ago (2013-06-13 18:20:42 UTC) #1
stavila
https://chromiumcodereview.appspot.com/16951003/diff/1/Source/core/dom/ContainerNode.h File Source/core/dom/ContainerNode.h (right): https://chromiumcodereview.appspot.com/16951003/diff/1/Source/core/dom/ContainerNode.h#newcode203 Source/core/dom/ContainerNode.h:203: childrenContext.resolvedStyle = 0; On 2013/06/13 18:20:42, esprehn wrote: > ...
7 years, 6 months ago (2013-06-13 21:10:05 UTC) #2
esprehn
On 2013/06/13 21:10:05, stavila wrote: > ... > > If you prefer changing the default ...
7 years, 6 months ago (2013-06-13 21:54:06 UTC) #3
stavila
On 2013/06/13 21:54:06, esprehn wrote: > On 2013/06/13 21:10:05, stavila wrote: > > ... > ...
7 years, 6 months ago (2013-06-13 22:40:47 UTC) #4
esprehn
On 2013/06/13 22:40:47, stavila wrote: > On 2013/06/13 21:54:06, esprehn wrote: > > On 2013/06/13 ...
7 years, 6 months ago (2013-06-13 23:09:36 UTC) #5
stavila
Please review latest patch.
7 years, 6 months ago (2013-06-14 12:03:07 UTC) #6
stavila
On 2013/06/14 12:03:07, stavila wrote: > Please review latest patch. DON'T COMMIT YET. There's something ...
7 years, 6 months ago (2013-06-14 14:56:47 UTC) #7
esprehn
LGTM with a nit. What do you need to check? https://codereview.chromium.org/16951003/diff/9001/Source/core/dom/shadow/ElementShadow.h File Source/core/dom/shadow/ElementShadow.h (right): https://codereview.chromium.org/16951003/diff/9001/Source/core/dom/shadow/ElementShadow.h#newcode62 ...
7 years, 6 months ago (2013-06-14 22:25:27 UTC) #8
stavila
THE PROBLEM: - this patch breakes a test (fast/css/hover-update.html). Basically, that test has an element ...
7 years, 6 months ago (2013-06-16 10:16:25 UTC) #9
stavila
I found a better way than using the 50ms timeout, there's already a method that ...
7 years, 6 months ago (2013-06-17 08:48:39 UTC) #10
stavila
Uploaded final patch, please look over it and let me know if I can go ...
7 years, 6 months ago (2013-06-17 12:41:33 UTC) #11
esprehn
This looks fine, please fix comments before landing. https://chromiumcodereview.appspot.com/16951003/diff/34001/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://chromiumcodereview.appspot.com/16951003/diff/34001/Source/core/dom/ContainerNode.cpp#newcode904 Source/core/dom/ContainerNode.cpp:904: if ...
7 years, 6 months ago (2013-06-17 18:43:40 UTC) #12
stavila
https://chromiumcodereview.appspot.com/16951003/diff/34001/Source/core/dom/ContainerNode.cpp File Source/core/dom/ContainerNode.cpp (right): https://chromiumcodereview.appspot.com/16951003/diff/34001/Source/core/dom/ContainerNode.cpp#newcode904 Source/core/dom/ContainerNode.cpp:904: if (!over && !renderer()) { On 2013/06/17 18:43:40, esprehn ...
7 years, 6 months ago (2013-06-17 18:50:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/39002
7 years, 6 months ago (2013-06-17 19:54:15 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=12981
7 years, 6 months ago (2013-06-17 20:47:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/39002
7 years, 6 months ago (2013-06-17 21:10:22 UTC) #16
esprehn
https://chromiumcodereview.appspot.com/16951003/diff/39002/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/16951003/diff/39002/Source/core/dom/Document.cpp#newcode1780 Source/core/dom/Document.cpp:1780: frame()->eventHandler()->dispatchFakeMouseMoveEventSoon(); Hmm, there's a number of other places where ...
7 years, 6 months ago (2013-06-17 22:00:27 UTC) #17
stavila
https://chromiumcodereview.appspot.com/16951003/diff/39002/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/16951003/diff/39002/Source/core/dom/Document.cpp#newcode1780 Source/core/dom/Document.cpp:1780: frame()->eventHandler()->dispatchFakeMouseMoveEventSoon(); On 2013/06/17 22:00:27, esprehn wrote: > Hmm, there's ...
7 years, 6 months ago (2013-06-18 08:54:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/63001
7 years, 6 months ago (2013-06-18 18:49:04 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=13164
7 years, 6 months ago (2013-06-18 20:33:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/63001
7 years, 6 months ago (2013-06-18 20:41:02 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=13178
7 years, 6 months ago (2013-06-18 21:42:36 UTC) #22
esprehn
All bots consistently show input-file-re-render.html being broken, it might be you. :)
7 years, 6 months ago (2013-06-18 21:55:11 UTC) #23
stavila
On 2013/06/18 21:55:11, esprehn wrote: > All bots consistently show input-file-re-render.html being broken, it might ...
7 years, 6 months ago (2013-06-18 21:58:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/63001
7 years, 6 months ago (2013-06-18 22:04:27 UTC) #25
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=13200
7 years, 6 months ago (2013-06-18 23:41:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/16002
7 years, 6 months ago (2013-06-19 08:55:26 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=13325
7 years, 6 months ago (2013-06-19 11:59:02 UTC) #28
Tommy Widenflycht
On 2013/06/18 21:58:32, stavila wrote: > On 2013/06/18 21:55:11, esprehn wrote: > > All bots ...
7 years, 6 months ago (2013-06-20 11:56:22 UTC) #29
stavila
Ok, I found the problem. This is what happens in that test: 1. Two files ...
7 years, 6 months ago (2013-06-20 14:16:29 UTC) #30
esprehn
On 2013/06/20 14:16:29, stavila wrote: > Ok, I found the problem. This is what happens ...
7 years, 6 months ago (2013-06-20 18:22:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stavila@adobe.com/16951003/106001
7 years, 6 months ago (2013-06-20 19:03:50 UTC) #32
commit-bot: I haz the power
Change committed as 152822
7 years, 6 months ago (2013-06-20 20:59:05 UTC) #33
ojan
https://chromiumcodereview.appspot.com/16951003/diff/106001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://chromiumcodereview.appspot.com/16951003/diff/106001/Source/core/dom/Document.cpp#newcode1770 Source/core/dom/Document.cpp:1770: frame()->eventHandler()->dispatchFakeMouseMoveEventSoon(); To my surprised, firing the fake mouse move ...
7 years, 6 months ago (2013-06-23 17:58:11 UTC) #34
stavila
7 years, 6 months ago (2013-06-26 10:09:51 UTC) #35
Message was sent while issue was closed.
On 2013/06/23 17:58:11, ojan wrote:
>
https://chromiumcodereview.appspot.com/16951003/diff/106001/Source/core/dom/D...
> File Source/core/dom/Document.cpp (right):
> 
>
https://chromiumcodereview.appspot.com/16951003/diff/106001/Source/core/dom/D...
> Source/core/dom/Document.cpp:1770:
> frame()->eventHandler()->dispatchFakeMouseMoveEventSoon();
> To my surprised, firing the fake mouse move events (not just updating the
hover
> state) seems to match gecko. Mind adding an explicit test case for that as
well,
> i.e. put the mouse over an element, then move the element and see that the
> mouseout event fires)? I could imagine someone coming in to this code later
and
> deciding to just update hover state without firing the mouse events.

I believe I already covered that in the hover-update.html test by checking the
status of element 'a'.

Powered by Google App Engine
This is Rietveld 408576698