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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnits.cpp

Issue 2338233003: Audit the use of updateStyleAndLayoutIgnorePendingStylesheets in previous/nextLinePosition (Closed)
Patch Set: Rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionModifier.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/VisibleUnits.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
index d1a09bf8e121ff27ee436be9dfe43d09826ae7d9..132f066d80958bcb48e06c41064312f707aacfa3 100644
--- a/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleUnits.cpp
@@ -1343,7 +1343,7 @@ VisiblePosition previousLinePosition(const VisiblePosition& visiblePosition, Lay
if (!node)
return VisiblePosition();
- node->document().updateStyleAndLayoutIgnorePendingStylesheets();
+ DCHECK(!node->document().needsLayoutTreeUpdate());
LayoutObject* layoutObject = node->layoutObject();
if (!layoutObject)
@@ -1396,7 +1396,7 @@ VisiblePosition nextLinePosition(const VisiblePosition& visiblePosition, LayoutU
if (!node)
return VisiblePosition();
- node->document().updateStyleAndLayoutIgnorePendingStylesheets();
+ DCHECK(!node->document().needsLayoutTreeUpdate());
LayoutObject* layoutObject = node->layoutObject();
if (!layoutObject)
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionModifier.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698