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

Issue 2709943004: Expand FrameSeleciton::extent() to increase chances of hoisting update layout (Closed)

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

Description

Expand FrameSeleciton::extent() to increase chances of hoisting update layout This patch expands |FrameSeleciton::extent()| to increase chance of hoisting update layout. Note: This is mechanical change to replace |selection().extent()| by |selection().computeVisibleSelectionInDOMTreeDeprecated().extent()| and manual change to |computeVisibleSelectionInDOMTree()| in explicit case, e.g. just after |computeVisibleSelectionInDOMTreeDeprecated()|. Following patch will remove deprecated version. This patch is apart of expanding expensive member functions in |FrameSelection|: - rootEditableElement() - hasEditableStyle() - isContentEditable() - isContentRichlyEditable() - getSelectionType() - base() - extent() - start() - end() - isNone() - isCaret() - isRange() BUG=694360 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2709943004 Cr-Commit-Position: refs/heads/master@{#452714} Committed: https://chromium.googlesource.com/chromium/src/+/34cc7838d2f985415a86720094454696a953a4c3

Patch Set 1 : 2017-02-23T18:48:11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
yosin_UTC9
PTAL Changes in core/editing and core/testing
3 years, 10 months ago (2017-02-23 09:50:53 UTC) #5
Xiaocheng
lgtm
3 years, 10 months ago (2017-02-23 19:56:25 UTC) #8
tkent
lgtm
3 years, 10 months ago (2017-02-24 01:54:52 UTC) #10
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/2709943004/1
3 years, 10 months ago (2017-02-24 01:55:55 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 02:04:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/34cc7838d2f985415a8672009445...

Powered by Google App Engine
This is Rietveld 408576698