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: Source/core/editing/iterators/TextIteratorTest.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
Index: Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/Source/core/editing/iterators/TextIteratorTest.cpp b/Source/core/editing/iterators/TextIteratorTest.cpp
index aa7217aaff991645e09ffb8a5e0feeddd5b8c0d2..d50cf6e9f167c2eb9ee6163e855d5f703c0712e7 100644
--- a/Source/core/editing/iterators/TextIteratorTest.cpp
+++ b/Source/core/editing/iterators/TextIteratorTest.cpp
@@ -461,7 +461,7 @@ TEST_F(TextIteratorTest, RangeLengthWithReplacedElements)
static const char* bodyContent =
"<div id='div' contenteditable='true'>1<img src='foo.png'>3</div>";
setBodyInnerHTML(bodyContent);
- document().view()->updateLayoutAndStyleIfNeededRecursive();
+ document().view()->updateLayoutAndStyleForPainting();
Node* divNode = document().getElementById("div");
RefPtrWillBeRawPtr<Range> range = Range::create(document(), divNode, 0, divNode, 3);
@@ -474,7 +474,7 @@ TEST_F(TextIteratorTest, SubrangeWithReplacedElements)
static const char* bodyContent =
"<div id='div' contenteditable='true'>1<img src='foo.png'>345</div>";
setBodyInnerHTML(bodyContent);
- document().view()->updateLayoutAndStyleIfNeededRecursive();
+ document().view()->updateLayoutAndStyleForPainting();
Node* divNode = document().getElementById("div");
RefPtrWillBeRawPtr<Range> entireRange = Range::create(document(), divNode, 0, divNode, 3);

Powered by Google App Engine
This is Rietveld 408576698