Commit 01c0fa04 authored by xiaochengh's avatar xiaochengh Committed by Commit bot

Remove a redundant layout update from normalizeRangeAlgorithm

BUG=590369

Review-Url: https://codereview.chromium.org/2327453002
Cr-Commit-Position: refs/heads/master@{#417249}
parent 59aa6bb1
......@@ -1725,7 +1725,8 @@ template <typename Strategy>
static EphemeralRangeTemplate<Strategy> normalizeRangeAlgorithm(const EphemeralRangeTemplate<Strategy>& range)
{
DCHECK(range.isNotNull());
range.document().updateStyleAndLayoutIgnorePendingStylesheets();
DCHECK(!range.document().needsLayoutTreeUpdate());
DocumentLifecycle::DisallowTransitionScope disallowTransition(range.document().lifecycle());
// TODO(yosin) We should not call |parentAnchoredEquivalent()|, it is
// redundant.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment