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

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

Issue 1126883002: Change all one-off lifecycle callers to FrameView::updateLayoutAndStyleForPainting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/dom/DocumentTest.cpp ('k') | Source/core/editing/iterators/TextIteratorTest.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 ea791865e0cb38b5517d22b3f6a11f49cbc2f947..54bd4d02d634b461740cfc14f3c24cd45c981891 100644
--- a/Source/core/editing/FrameSelectionTest.cpp
+++ b/Source/core/editing/FrameSelectionTest.cpp
@@ -102,7 +102,7 @@ TEST_F(FrameSelectionTest, SetInvalidSelection)
TEST_F(FrameSelectionTest, InvalidateCaretRect)
{
RefPtrWillBeRawPtr<Text> text = appendTextNode("Hello, World!");
- document().view()->updateLayoutAndStyleIfNeededRecursive();
+ document().view()->updateLayoutAndStyleForPainting();
VisibleSelection validSelection(Position(text, 0), Position(text, 0));
setSelection(validSelection);
@@ -122,7 +122,7 @@ TEST_F(FrameSelectionTest, InvalidateCaretRect)
TEST_F(FrameSelectionTest, PaintCaretShouldNotLayout)
{
RefPtrWillBeRawPtr<Text> text = appendTextNode("Hello, World!");
- document().view()->updateLayoutAndStyleIfNeededRecursive();
+ document().view()->updateLayoutAndStyleForPainting();
document().body()->setContentEditable("true", ASSERT_NO_EXCEPTION);
document().body()->focus();
« no previous file with comments | « Source/core/dom/DocumentTest.cpp ('k') | Source/core/editing/iterators/TextIteratorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698