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

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

Issue 2704123003: Expand FrameSeleciton::isCaret() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T12:50:46 Created 3 years, 10 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
Index: third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
index ddfaa7f661a719a4606d3f71c834bde6d8e92fee..a3c95cdf0c2a015236407345b787b531070f5f86 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
@@ -78,7 +78,8 @@ TEST_F(FrameSelectionTest, PaintCaretShouldNotLayout) {
selection().setSelection(
SelectionInDOMTree::Builder().collapse(Position(text, 0)).build());
document().view()->updateAllLifecyclePhases();
- EXPECT_TRUE(selection().isCaret());
+ EXPECT_TRUE(
+ selection().computeVisibleSelectionInDOMTreeDeprecated().isCaret());
EXPECT_TRUE(toLayoutBlock(document().body()->layoutObject())
->shouldPaintCursorCaret());

Powered by Google App Engine
This is Rietveld 408576698