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

Issue 1289753006: Fallback to root layer if hit-testing does not hit anything in iframe (Closed)

Created:
5 years, 4 months ago by Yufeng Shen (Slow to review)
Modified:
5 years, 4 months ago
CC:
blink-reviews, dshwang, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org, majidvp
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fallback to root layer if hit-testing does not hit anything in iframe Currently we have a hit-testing fallback that if nothing is hit, consider the root layer (document element) is hit. The fallback is only for main document, but not iframe. It is not unreasonable that if the hit point is within the iframe's bound, it should be considered to hit the iframe's document if it does not hit any other element. This CL does this modification to the fallback rule. BUG=508474 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201188

Patch Set 1 #

Total comments: 9

Patch Set 2 : address comments #

Patch Set 3 : remove "active" hack for wheel event hit-test & using document.documentElement.scrollTop for scroll… #

Total comments: 6

Patch Set 4 : address comments #

Patch Set 5 : fix layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -23 lines) Patch
M LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
A LayoutTests/fast/events/event-hit-testing-fallback-to-iframe.html View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/event-hit-testing-fallback-to-iframe-expected.txt View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/resources/body-overflow-iframe.html View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 1 chunk +18 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Yufeng Shen (Slow to review)
5 years, 4 months ago (2015-08-14 16:02:40 UTC) #2
Rick Byers
Thanks Yufeng. This seems reasonable overall, but I think we can go a little further ...
5 years, 4 months ago (2015-08-17 15:18:29 UTC) #3
Rick Byers
Dave / Majid, do you have any input? I know you've both looked at this ...
5 years, 4 months ago (2015-08-17 15:19:36 UTC) #4
Yufeng Shen (Slow to review)
https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp File Source/core/paint/DeprecatedPaintLayer.cpp (right): https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp#newcode1514 Source/core/paint/DeprecatedPaintLayer.cpp:1514: // will stop hit testing search, and the result ...
5 years, 4 months ago (2015-08-18 16:05:21 UTC) #5
Rick Byers
https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp File Source/core/paint/DeprecatedPaintLayer.cpp (right): https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp#newcode1518 Source/core/paint/DeprecatedPaintLayer.cpp:1518: } On 2015/08/18 16:05:21, Yufeng Shen wrote: > On ...
5 years, 4 months ago (2015-08-19 19:23:19 UTC) #6
majidvp
https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp File Source/core/paint/DeprecatedPaintLayer.cpp (right): https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp#newcode1518 Source/core/paint/DeprecatedPaintLayer.cpp:1518: } On 2015/08/19 19:23:19, Rick Byers wrote: > On ...
5 years, 4 months ago (2015-08-19 21:02:30 UTC) #8
majidvp
https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp File Source/core/paint/DeprecatedPaintLayer.cpp (right): https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp#newcode1518 Source/core/paint/DeprecatedPaintLayer.cpp:1518: } On 2015/08/19 21:02:30, majidvp wrote: > On 2015/08/19 ...
5 years, 4 months ago (2015-08-20 16:29:35 UTC) #9
Yufeng Shen (Slow to review)
On 2015/08/20 16:29:35, majidvp wrote: > https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp > File Source/core/paint/DeprecatedPaintLayer.cpp (right): > > https://codereview.chromium.org/1289753006/diff/1/Source/core/paint/DeprecatedPaintLayer.cpp#newcode1518 > ...
5 years, 4 months ago (2015-08-20 18:55:07 UTC) #10
Rick Byers
Great, thank you - love it! LGTM with nits https://codereview.chromium.org/1289753006/diff/40001/LayoutTests/fast/events/resources/body-overflow-iframe.html File LayoutTests/fast/events/resources/body-overflow-iframe.html (right): https://codereview.chromium.org/1289753006/diff/40001/LayoutTests/fast/events/resources/body-overflow-iframe.html#newcode34 LayoutTests/fast/events/resources/body-overflow-iframe.html:34: ...
5 years, 4 months ago (2015-08-20 19:28:22 UTC) #11
Yufeng Shen (Slow to review)
https://codereview.chromium.org/1289753006/diff/40001/LayoutTests/fast/events/resources/body-overflow-iframe.html File LayoutTests/fast/events/resources/body-overflow-iframe.html (right): https://codereview.chromium.org/1289753006/diff/40001/LayoutTests/fast/events/resources/body-overflow-iframe.html#newcode34 LayoutTests/fast/events/resources/body-overflow-iframe.html:34: document.documentElement.scrollTop = "1000"; On 2015/08/20 19:28:22, Rick Byers wrote: ...
5 years, 4 months ago (2015-08-20 20:28:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289753006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289753006/60001
5 years, 4 months ago (2015-08-20 20:28:43 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/96300)
5 years, 4 months ago (2015-08-20 23:01:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289753006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289753006/80001
5 years, 4 months ago (2015-08-26 02:38:36 UTC) #20
commit-bot: I haz the power
5 years, 4 months ago (2015-08-26 02:43:57 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201188

Powered by Google App Engine
This is Rietveld 408576698