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 2710883002: Expand FrameSeleciton::isNone() 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, dcheng, dtapuska+blinkwatch_chromium.org, kinuko+watch, mlamouri+watch-blink_chromium.org, Navid Zolghadr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand FrameSeleciton::isNone() to increase chances of hoisting update layout This patch expands |FrameSeleciton::isNone()| to increase chance of hoisting update layout. Note: This is mechanical change to replace |selection().isNone()| by |selection().computeVisibleSelectionInDOMTreeDeprecated().isNone()| 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/2710883002 Cr-Commit-Position: refs/heads/master@{#452435} Committed: https://chromium.googlesource.com/chromium/src/+/3032e512f4c50e0275cc2306cf75208ee7c9a2c4

Patch Set 1 : 2017-02-22T12:59:40 #

Patch Set 2 : 2017-02-23T08:39:24 #

Patch Set 3 : 2017-02-23T16:27:43 rebase to resolve conflict with DOMSelection in r452402 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -28 lines) Patch
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 1 2 3 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 3 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (22 generated)
yosin_UTC9
PTAL
3 years, 10 months ago (2017-02-22 09:31:36 UTC) #7
Xiaocheng
Is there still any intuitive way to check whether FS is none?
3 years, 10 months ago (2017-02-22 17:45:50 UTC) #8
tkent
lgtm. On 2017/02/22 at 17:45:50, xiaochengh wrote: > Is there still any intuitive way to ...
3 years, 10 months ago (2017-02-22 23:00:34 UTC) #9
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/2710883002/1
3 years, 10 months ago (2017-02-22 23:01:47 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/370673)
3 years, 10 months ago (2017-02-22 23:16:51 UTC) #13
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/2710883002/20001
3 years, 10 months ago (2017-02-23 00:06:01 UTC) #19
yosin_UTC9
On 2017/02/22 at 23:00:34, tkent wrote: > lgtm. > > On 2017/02/22 at 17:45:50, xiaochengh ...
3 years, 10 months ago (2017-02-23 00:14:56 UTC) #20
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/2710883002/20001
3 years, 10 months ago (2017-02-23 00:27:24 UTC) #23
Xiaocheng
On 2017/02/23 at 00:14:56, yosin wrote: > On 2017/02/22 at 23:00:34, tkent wrote: > > ...
3 years, 10 months ago (2017-02-23 00:29:09 UTC) #24
yosin_UTC9
On 2017/02/23 at 00:29:09, xiaochengh wrote: > On 2017/02/23 at 00:14:56, yosin wrote: > > ...
3 years, 10 months ago (2017-02-23 01:38:22 UTC) #26
yosin_UTC9
On 2017/02/23 at 01:38:22, yosin_UTC9 wrote: > On 2017/02/23 at 00:29:09, xiaochengh wrote: > > ...
3 years, 10 months ago (2017-02-23 07:02:49 UTC) #27
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/2710883002/20001
3 years, 10 months ago (2017-02-23 07:03:04 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/371070) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 10 months ago (2017-02-23 07:08:34 UTC) #31
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/2710883002/40001
3 years, 10 months ago (2017-02-23 07:31:00 UTC) #34
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 08:57:29 UTC) #37
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3032e512f4c50e0275cc2306cf75...

Powered by Google App Engine
This is Rietveld 408576698