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

Issue 2708533002: Make SelectionEditor::markCacheDirty() not to reset cached value if it has been cleared (Closed)

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

Description

Make SelectionEditor::markCacheDirty() not to reset cached value if it has been cleared This patch makes |SelectionEditor::markCacheDirty()| not to reset cached |VisibleSeleciton| and |VisibleSelectionInFlatTree| when we've already cleard, calling default constructor of |VisibleSelection| and |VisibleSelectionInFlatTree| and copying them, to make |markCacheDirty()| faster. In "PerformanceTests/Bindings/append-child.html", |markCacheDirty()| takes 5.26% of |ContainerNode::appendChild()|. In "PerformanceTests/DOM/inner_html_with_selection.html", |markCacheDirty()| takes 8.56% of |ContainerNode::appendChild()|. BUG=692939, 693458 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2708533002 Cr-Commit-Position: refs/heads/master@{#451567} Committed: https://chromium.googlesource.com/chromium/src/+/54210329887cfd683e71722b93a5e05b95f5e12d

Patch Set 1 : 2017-02-20T12:38:08 #

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

Messages

Total messages: 12 (8 generated)
yosin_UTC9
PTAL
3 years, 10 months ago (2017-02-20 04:04:40 UTC) #5
tkent
lgtm
3 years, 10 months ago (2017-02-20 04:07:36 UTC) #6
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/2708533002/1
3 years, 10 months ago (2017-02-20 04:21:32 UTC) #9
commit-bot: I haz the power
3 years, 10 months ago (2017-02-20 05:54:23 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/54210329887cfd683e71722b93a5...

Powered by Google App Engine
This is Rietveld 408576698