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

Issue 2540613002: Re-factor Editor::unappliedEditing() (Closed)

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

Description

Re-factor Editor::unappliedEditing() This patch changes |Editor::unappliedEditing()| to use |isNone()| predicate rather than checking |Document| equality of |Position| to simplify source code for improving code health. Since |correctVisibleSelection()| always returns |VisibileSlection| which is an empty or valid for specified |Document|, checking equality of |Document| between selection start and |frame.document()| is equivalent to empty selection check. BUG=n/a TEST=n/a; no behavior changes Committed: https://crrev.com/ad9144ea0891e682751beec341342e7021d160a0 Cr-Commit-Position: refs/heads/master@{#434961}

Patch Set 1 : 2016-11-29T17:47:51 #

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

Messages

Total messages: 22 (17 generated)
yosin_UTC9
PTAL
4 years ago (2016-11-29 09:32:38 UTC) #13
Xiaocheng
lgtm
4 years ago (2016-11-29 11:41:00 UTC) #17
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/2540613002/40001
4 years ago (2016-11-29 11:41:11 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years ago (2016-11-29 11:44:36 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-29 12:22:53 UTC) #22
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ad9144ea0891e682751beec341342e7021d160a0
Cr-Commit-Position: refs/heads/master@{#434961}

Powered by Google App Engine
This is Rietveld 408576698