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

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

Issue 1217943010: Add a FrameView lifecycle method that just updates layout, style and compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/editing/EditingTestBase.cpp ('k') | Source/core/editing/GranularityStrategyTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FrameSelectionTest.cpp
diff --git a/Source/core/editing/FrameSelectionTest.cpp b/Source/core/editing/FrameSelectionTest.cpp
index 341eff15dfadb4bc0bda10d5e856b0993215eb2d..4fed283552fe9b97436a63c9c1c7244e9337587c 100644
--- a/Source/core/editing/FrameSelectionTest.cpp
+++ b/Source/core/editing/FrameSelectionTest.cpp
@@ -99,7 +99,7 @@ TEST_F(FrameSelectionTest, SetInvalidSelection)
TEST_F(FrameSelectionTest, InvalidateCaretRect)
{
RefPtrWillBeRawPtr<Text> text = appendTextNode("Hello, World!");
- document().view()->updateLayoutAndStyleForPainting();
+ document().view()->updateAllLifecyclePhases();
VisibleSelection validSelection(Position(text, 0), Position(text, 0));
setSelection(validSelection);
@@ -119,7 +119,7 @@ TEST_F(FrameSelectionTest, InvalidateCaretRect)
TEST_F(FrameSelectionTest, PaintCaretShouldNotLayout)
{
RefPtrWillBeRawPtr<Text> text = appendTextNode("Hello, World!");
- document().view()->updateLayoutAndStyleForPainting();
+ document().view()->updateAllLifecyclePhases();
document().body()->setContentEditable("true", ASSERT_NO_EXCEPTION);
document().body()->focus();
« no previous file with comments | « Source/core/editing/EditingTestBase.cpp ('k') | Source/core/editing/GranularityStrategyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698