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

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
« no previous file with comments | « Source/core/editing/FrameSelectionTest.cpp ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIteratorTest.cpp
diff --git a/Source/core/editing/iterators/TextIteratorTest.cpp b/Source/core/editing/iterators/TextIteratorTest.cpp
index e965f882e317c7bb1d27314f3a6bc66afeaf6723..09cac58f3001eeb7f7aa734a7d79aa740c1981ed 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);
« no previous file with comments | « Source/core/editing/FrameSelectionTest.cpp ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698