|
|
Chromium Code Reviews
DescriptionPrune createVisibleSelectionDeprecated from DragController
This patch prunes createVisibleSelectionDeprecated from DragController
by either having an explicit layout update before each call site, or
confirming that the layout is already clean.
Note: Layout is clean at the call site in |dispatchTextInputEventFor()|
because it's called directly after a hit test, which is performed in
|elementUnderMouse()|.
BUG=651373
Committed: https://crrev.com/4e348b48e7e058f44d359263b750bb5412ab932a
Cr-Commit-Position: refs/heads/master@{#423036}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add DCHECK and comments about clean layout #Messages
Total messages: 23 (12 generated)
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
xiaochengh@chromium.org changed reviewers: + tkent@chromium.org
PTAL.
https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/page/DragController.cpp (right): https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/page/DragController.cpp:482: createVisibleSelection(m_page->dragCaretController().caretPosition())); Please explain why we can use non-deprecated version in the CL description. It's not obvious.
Description was changed from ========== Prune createVisibleSelectionDeprecated from DragController BUG=651373 ========== to ========== Prune createVisibleSelectionDeprecated from DragController This patch prunes createVisibleSelectionDeprecated from DragController by either having an explicit layout update before each call site, or confirming that the layout is already clean. Note: Layout is clean at the call site in |dispatchTextInputEventFor()| because it's called directly after a hit test, which is performed in |elementUnderMouse()|. BUG=651373 ==========
On 2016/10/03 at 23:37:09, tkent wrote: > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/page/DragController.cpp (right): > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/page/DragController.cpp:482: createVisibleSelection(m_page->dragCaretController().caretPosition())); > Please explain why we can use non-deprecated version in the CL description. It's not obvious. Done.
On 2016/10/04 at 01:07:58, xiaochengh wrote: > On 2016/10/03 at 23:37:09, tkent wrote: > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > > File third_party/WebKit/Source/core/page/DragController.cpp (right): > > > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > > third_party/WebKit/Source/core/page/DragController.cpp:482: createVisibleSelection(m_page->dragCaretController().caretPosition())); > > Please explain why we can use non-deprecated version in the CL description. It's not obvious. > > Done. Please add DCHEK for clean layout, and/or a comment about clean layout requirement to DragController::dispatchTextInputEventFor() in order to prevent people from adding dirty layout callsites.
On 2016/10/04 at 01:25:12, tkent wrote: > On 2016/10/04 at 01:07:58, xiaochengh wrote: > > On 2016/10/03 at 23:37:09, tkent wrote: > > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > > > File third_party/WebKit/Source/core/page/DragController.cpp (right): > > > > > > https://codereview.chromium.org/2386083002/diff/1/third_party/WebKit/Source/c... > > > third_party/WebKit/Source/core/page/DragController.cpp:482: createVisibleSelection(m_page->dragCaretController().caretPosition())); > > > Please explain why we can use non-deprecated version in the CL description. It's not obvious. > > > > Done. > > Please add DCHEK for clean layout, and/or a comment about clean layout requirement to DragController::dispatchTextInputEventFor() in order to prevent people from adding dirty layout callsites. DragController.cpp mostly uses ASSERT instead of DCHECK. Is there a reason?
> DragController.cpp mostly uses ASSERT instead of DCHECK. Is there a reason? No one replaces ASSERTs with DECHEKs yet. We don't add new ASSERTs.
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
DCHECK added. PTAL.
lgtm
The CQ bit was checked by xiaochengh@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Prune createVisibleSelectionDeprecated from DragController This patch prunes createVisibleSelectionDeprecated from DragController by either having an explicit layout update before each call site, or confirming that the layout is already clean. Note: Layout is clean at the call site in |dispatchTextInputEventFor()| because it's called directly after a hit test, which is performed in |elementUnderMouse()|. BUG=651373 ========== to ========== Prune createVisibleSelectionDeprecated from DragController This patch prunes createVisibleSelectionDeprecated from DragController by either having an explicit layout update before each call site, or confirming that the layout is already clean. Note: Layout is clean at the call site in |dispatchTextInputEventFor()| because it's called directly after a hit test, which is performed in |elementUnderMouse()|. BUG=651373 Committed: https://crrev.com/4e348b48e7e058f44d359263b750bb5412ab932a Cr-Commit-Position: refs/heads/master@{#423036} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/4e348b48e7e058f44d359263b750bb5412ab932a Cr-Commit-Position: refs/heads/master@{#423036} |
