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

Issue 2430273006: Remove the redundant layout update from WebSurroundingText::textContent (Closed)

Created:
4 years, 2 months ago by Xiaocheng
Modified:
4 years, 1 month ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the redundant layout update from WebSurroundingText::textContent The only usages of WebSurroundingText are in ContentDetector::FindContentRange and RenderFrameImpl::OnTextSurroundingSelectionRequest, neither of which performs any DOM or style change between the initialization of WebSurroundingText and the call sites of textContent. Hence, the layout update in WebSurroundingText::textContent is redundant and removed by this patch. SurroundingText::document is only used by the removed code, so it is also removed. BUG=657268, 590369 Committed: https://crrev.com/eadac59641a9a79748d30a49b521e0e79822eee5 Cr-Commit-Position: refs/heads/master@{#426425}

Patch Set 1 #

Patch Set 2 : Remove the redundant layout update in WebSurroundingText::textContent #

Patch Set 3 : Add note about do not store SurroundingText with null Range #

Total comments: 4

Patch Set 4 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -16 lines) Patch
M third_party/WebKit/Source/core/editing/SurroundingText.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SurroundingText.cpp View 1 1 chunk +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebSurroundingText.cpp View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Xiaocheng
PTAL.
4 years, 2 months ago (2016-10-20 05:09:29 UTC) #10
yosin_UTC9
lgtm
4 years, 2 months ago (2016-10-20 05:16:30 UTC) #11
tkent
lgtm https://codereview.chromium.org/2430273006/diff/40001/third_party/WebKit/Source/web/WebSurroundingText.cpp File third_party/WebKit/Source/web/WebSurroundingText.cpp (right): https://codereview.chromium.org/2430273006/diff/40001/third_party/WebKit/Source/web/WebSurroundingText.cpp#newcode62 third_party/WebKit/Source/web/WebSurroundingText.cpp:62: // in which case we should prevent it ...
4 years, 2 months ago (2016-10-20 05:33:58 UTC) #12
Xiaocheng
Thanks. Committing with typo fixed. https://codereview.chromium.org/2430273006/diff/40001/third_party/WebKit/Source/web/WebSurroundingText.cpp File third_party/WebKit/Source/web/WebSurroundingText.cpp (right): https://codereview.chromium.org/2430273006/diff/40001/third_party/WebKit/Source/web/WebSurroundingText.cpp#newcode62 third_party/WebKit/Source/web/WebSurroundingText.cpp:62: // in which case ...
4 years, 2 months ago (2016-10-20 05:37:49 UTC) #14
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/2430273006/60001
4 years, 2 months ago (2016-10-20 05:38:01 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-20 07:05:44 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-10-21 13:16:30 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eadac59641a9a79748d30a49b521e0e79822eee5
Cr-Commit-Position: refs/heads/master@{#426425}

Powered by Google App Engine
This is Rietveld 408576698