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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp

Issue 2709793003: Expand FrameSeleciton::base() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T13:08:01 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/commands/DeleteSelectionCommandTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp
index 6dfd318df47b25fa66a5a19c28317e7a7a60a09f..c92ef988468847348ac473491119992469a14364 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp
@@ -57,7 +57,10 @@ TEST_F(DeleteSelectionCommandTest, deleteListFromTable) {
EXPECT_TRUE(frame->selection()
.computeVisibleSelectionInDOMTreeDeprecated()
.isCaret());
- EXPECT_EQ(Position(div, 0), frame->selection().base().toOffsetInAnchor());
+ EXPECT_EQ(Position(div, 0), frame->selection()
+ .computeVisibleSelectionInDOMTree()
+ .base()
+ .toOffsetInAnchor());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698