Chromium Code Reviews
DescriptionAdd 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 #
Messages
Total messages: 14 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||