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

Issue 2741173002: Reduce canonicalization when dragging (Closed)

Created:
3 years, 9 months ago by yoichio
Modified:
3 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce canonicalization when dragging This CL avoids VisibleSelectionInFlatTree creation if VSInDOMTree is none in SelectionEditor.cpp. This reduces redundant canonicalization because VSInFlatTree availability == VSInDOMTree availability BUG=668122 TEST= 1. Open the page on comment#21 described at the bug. 2. Open also chrome://tracing/ and record Input Latency. 3. Confirm Messaseloop::RunTask blocking time gets faster 3.7 times(from 64ms to 17ms). Review-Url: https://codereview.chromium.org/2741173002 Cr-Commit-Position: refs/heads/master@{#457376} Committed: https://chromium.googlesource.com/chromium/src/+/d51024e6850f785d2bb364af8d63f742126f7a91

Patch Set 1 #

Patch Set 2 : update #

Total comments: 10

Patch Set 3 : update #

Total comments: 2

Patch Set 4 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionEditor.cpp View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (28 generated)
yoichio
3 years, 9 months ago (2017-03-16 01:47:33 UTC) #19
yosin_UTC9
https://codereview.chromium.org/2741173002/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.cpp File third_party/WebKit/Source/core/editing/FrameCaret.cpp (right): https://codereview.chromium.org/2741173002/diff/20001/third_party/WebKit/Source/core/editing/FrameCaret.cpp#newcode208 third_party/WebKit/Source/core/editing/FrameCaret.cpp:208: rootEditableElementOf(m_selectionEditor->selectionInDOMTree().base()); Could you move change in another CL? This ...
3 years, 9 months ago (2017-03-16 02:30:05 UTC) #20
yosin_UTC9
BTW, Unfortunately, WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html doesn't measure this performance improvement because it goes through another code path ...
3 years, 9 months ago (2017-03-16 02:32:01 UTC) #21
yoichio
> Unfortunately, > WebKit/PerformanceTests/Editing/mouse-move-with-hidden-elements.html doesn't > measure this performance improvement because it goes through another ...
3 years, 9 months ago (2017-03-16 04:11:00 UTC) #24
yoichio
Any thoughts?
3 years, 9 months ago (2017-03-16 05:42:20 UTC) #28
yosin_UTC9
lgtm w/ nit Please move "Unfortunately, ..." from description to crbug.com, it makes me confusing. ...
3 years, 9 months ago (2017-03-16 06:39:18 UTC) #30
yosin_UTC9
Also, please update summary to describe this change, e.g. Make SE::updateXXX not to compute flat ...
3 years, 9 months ago (2017-03-16 06:40:13 UTC) #31
yoichio
Thanks https://codereview.chromium.org/2741173002/diff/40001/third_party/WebKit/Source/core/editing/SelectionEditor.cpp File third_party/WebKit/Source/core/editing/SelectionEditor.cpp (right): https://codereview.chromium.org/2741173002/diff/40001/third_party/WebKit/Source/core/editing/SelectionEditor.cpp#newcode387 third_party/WebKit/Source/core/editing/SelectionEditor.cpp:387: m_styleVersion = document().styleVersion(); On 2017/03/16 06:39:18, yosin_UTC9 wrote: ...
3 years, 9 months ago (2017-03-16 06:56:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2741173002/60001
3 years, 9 months ago (2017-03-16 06:56:55 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 08:55:04 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d51024e6850f785d2bb364af8d63...

Powered by Google App Engine
This is Rietveld 408576698