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

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

Powered by Google App Engine
This is Rietveld 408576698