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

Issue 2705113003: Add clean layout DCHECK to mostBackwardCaretPosition() (Closed)

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

Description

Add clean layout DCHECK to mostBackwardCaretPosition() This patch adds clean layout |DCHECK()| to |mostBackwardCaretPosition()|, and fixes call sites calling it with dirty layout tree, to make sure we don't call it with dirty layout tree. We could not have this |DCHECK()| since we call |mostBackwardCaretPosition()| during node removal, but patch[1] made not to do so. This patch is similar to patch[1], which is for |mostForwardCaretPosition()|. This patch also makes |VisibleSelection::toNormalizedEphemeralRange()| to use |needsLayoutTreeUpdate()| since |Document::needsLayoutTreeUpdate()| returns false for "editing/inserting/insert_html_as_plain_text.html". [1] http://crrev.com/2680943004 Make FrameSelection to hold non-canonicalized positions [2] http://crrev.com/2706163002 Add clean layout DCHECK to mostForwardCaretPosition() BUG=694413 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2705113003 Cr-Commit-Position: refs/heads/master@{#451869} Committed: https://chromium.googlesource.com/chromium/src/+/52407bff3797a14717d3bd8fcd5c0e3a56489640

Patch Set 1 : 2017-02-21T17:42:08 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
yosin_UTC9
PTAL Please click [Commit] if it is OK to commit. Thanks!
3 years, 10 months ago (2017-02-21 09:14:40 UTC) #6
tkent
lgtm
3 years, 10 months ago (2017-02-21 22:55: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/2705113003/1
3 years, 10 months ago (2017-02-21 22:57:34 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 01:22:51 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/52407bff3797a14717d3bd8fcd5c...

Powered by Google App Engine
This is Rietveld 408576698