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

Unified Diff: third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp

Issue 2706013005: Expand FrameSeleciton::getSelectionType() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T21:26:37 rebase 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.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/svg/UnsafeSVGAttributeSanitizationTest.cpp
diff --git a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
index a435425f899b7a2fefafb5a47f628148388b982f..70ceccb8faae8e9a642a83227403b0b1704061ae 100644
--- a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
+++ b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
@@ -60,7 +60,10 @@ String contentAfterPastingHTML(DummyPageHolder* pageHolder,
frame.document()->updateStyleAndLayout();
frame.selection().setSelection(
SelectionInDOMTree::Builder().selectAllChildren(*body).build());
- EXPECT_EQ(CaretSelection, frame.selection().getSelectionType());
+ EXPECT_EQ(CaretSelection,
+ frame.selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .getSelectionType());
EXPECT_TRUE(frame.selection()
.computeVisibleSelectionInDOMTreeDeprecated()
.isContentEditable())
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698