EventHandler::sendContextMenuEvent() calls SelectionController::sendContextMenuEvent() with dirty layout tree |
||||||
Issue descriptionVersion: ToT (c062afd5b208ce6767978148ee84e99d01487309) OS: Windows (debug build) What steps will reproduce the problem? (1) open new tab page (2) right click on the page (3) DCHECK(!needsLayoutTreeUpdate(position)) triggers
,
Aug 29 2016
Document::childNeedsStyleRecalc() returns true even if calling after Document::updateStyleAndLayoutTree().
,
Aug 29 2016
Since, Document::prepareMouseEvent() makes layout tree dirty by setting hover element, EventHandler::sendContextMenuEvent() calls SelectionController::sendContextMenuEvent() with dirty layout tree.
Below is minimum reproduce case:
<style>*:hover { color: red; }</style>
<div>foo</div>
Right-Click other than "foo" causes DCHECK in isEditablePosition.
,
Aug 29 2016
,
Aug 30 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e7e52616f252b5dca01400374e1076ab683c9620 commit e7e52616f252b5dca01400374e1076ab683c9620 Author: yosin <yosin@chromium.org> Date: Tue Aug 30 03:42:33 2016 Call SelectionController().sendContextMenuEvent() with up-to-date layout tree BUG= 641403 TEST=run_webkit_unit_tests --gtest_filter=ventHandlerTest.sendContextMenuEventWithHover Review-Url: https://codereview.chromium.org/2288083002 Cr-Commit-Position: refs/heads/master@{#415052} [modify] https://crrev.com/e7e52616f252b5dca01400374e1076ab683c9620/third_party/WebKit/Source/core/input/EventHandler.cpp [modify] https://crrev.com/e7e52616f252b5dca01400374e1076ab683c9620/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
,
Aug 30 2016
,
Sep 2 2016
Please merge to M54.
,
Sep 2 2016
Your change meets the bar and is auto-approved for M54 (branch: 2840)
,
Sep 2 2016
Please merge your change to M54 (branch: 2840) before 5:00 PM PST Monday [09/05] if you would like to make it to M54 Beta promotion on Thursday [09/08].
,
Sep 5 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b5a5b60cdc9501097867e8819a16edd6fae674e9 commit b5a5b60cdc9501097867e8819a16edd6fae674e9 Author: Yoshifumi Inoue <yosin@chromium.org> Date: Mon Sep 05 03:43:34 2016 Call SelectionController().sendContextMenuEvent() with up-to-date layout tree BUG= 641403 TEST=run_webkit_unit_tests --gtest_filter=ventHandlerTest.sendContextMenuEventWithHover Review-Url: https://codereview.chromium.org/2288083002 Cr-Commit-Position: refs/heads/master@{#415052} (cherry picked from commit e7e52616f252b5dca01400374e1076ab683c9620) Review URL: https://codereview.chromium.org/2308333002 . Cr-Commit-Position: refs/branch-heads/2840@{#150} Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607} [modify] https://crrev.com/b5a5b60cdc9501097867e8819a16edd6fae674e9/third_party/WebKit/Source/core/input/EventHandler.cpp [modify] https://crrev.com/b5a5b60cdc9501097867e8819a16edd6fae674e9/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
,
Oct 27 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b5a5b60cdc9501097867e8819a16edd6fae674e9 commit b5a5b60cdc9501097867e8819a16edd6fae674e9 Author: Yoshifumi Inoue <yosin@chromium.org> Date: Mon Sep 05 03:43:34 2016 Call SelectionController().sendContextMenuEvent() with up-to-date layout tree BUG= 641403 TEST=run_webkit_unit_tests --gtest_filter=ventHandlerTest.sendContextMenuEventWithHover Review-Url: https://codereview.chromium.org/2288083002 Cr-Commit-Position: refs/heads/master@{#415052} (cherry picked from commit e7e52616f252b5dca01400374e1076ab683c9620) Review URL: https://codereview.chromium.org/2308333002 . Cr-Commit-Position: refs/branch-heads/2840@{#150} Cr-Branched-From: 1ae106dbab4bddd85132d5b75c670794311f4c57-refs/heads/master@{#414607} [modify] https://crrev.com/b5a5b60cdc9501097867e8819a16edd6fae674e9/third_party/WebKit/Source/core/input/EventHandler.cpp [modify] https://crrev.com/b5a5b60cdc9501097867e8819a16edd6fae674e9/third_party/WebKit/Source/core/input/EventHandlerTest.cpp |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by yosin@chromium.org
, Aug 29 2016