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

Issue 2706163002: Add clean layout DCHECK to mostForwardCaretPosition() (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 mostForwardCaretPosition() This patch adds clean layout |DCHECK()| to |mostForwardCaretPosition()|, 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 |mostForwardCaretPosition()| during node removal, but patch[1] made not to do so. This patch is similar to patch[2], which is for |mostBackwardCaretPosition()|. [1] http://crrev.com/2680943004 Make FrameSelection to hold non-canonicalized positions [2] http://crrev.com/2705113003 Add clean layout DCHECK to mostBackwardCaretPosition() BUG=694413 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2706163002 Cr-Commit-Position: refs/heads/master@{#451874} Committed: https://chromium.googlesource.com/chromium/src/+/22a030be0c75c7a39b938d51d04bcc259bf9fe17

Patch Set 1 : 2017-02-21T17:13:25 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
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 +4 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: 17 (13 generated)
yosin_UTC9
PTAL Please click [Commit] if it is OK.
3 years, 10 months ago (2017-02-21 09:08:07 UTC) #6
tkent
lgtm
3 years, 10 months ago (2017-02-21 22:54:58 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/2706163002/1
3 years, 10 months ago (2017-02-21 22:56:26 UTC) #14
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 01:30:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/22a030be0c75c7a39b938d51d04b...

Powered by Google App Engine
This is Rietveld 408576698