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

Unified Diff: Source/core/layout/LayoutThemeTest.cpp

Issue 1225583004: Revert of 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, 5 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/layout/LayoutTestHelper.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutThemeTest.cpp
diff --git a/Source/core/layout/LayoutThemeTest.cpp b/Source/core/layout/LayoutThemeTest.cpp
index 274f983a344bc3eb2f8ed38ed50ad5aa50a07919..8ca5c0c44fc2cf78a40465cd8a0a50baee57274b 100644
--- a/Source/core/layout/LayoutThemeTest.cpp
+++ b/Source/core/layout/LayoutThemeTest.cpp
@@ -39,7 +39,7 @@
void LayoutThemeTest::setHtmlInnerHTML(const char* htmlContent)
{
document().documentElement()->setInnerHTML(String::fromUTF8(htmlContent), ASSERT_NO_EXCEPTION);
- document().view()->updateAllLifecyclePhases();
+ document().view()->updateLayoutAndStyleForPainting();
}
inline Color outlineColor(Element* element)
@@ -70,7 +70,7 @@
document().page()->focusController().setActive(true);
document().page()->focusController().setFocused(true);
span->focus();
- document().view()->updateAllLifecyclePhases();
+ document().view()->updateLayoutAndStyleForPainting();
// Checking focused style.
EXPECT_NE(BNONE, outlineStyle(span));
@@ -79,7 +79,7 @@
// Change focus ring color.
LayoutTheme::theme().setCustomFocusRingColor(customColor);
Page::platformColorsChanged();
- document().view()->updateAllLifecyclePhases();
+ document().view()->updateLayoutAndStyleForPainting();
// Check that the focus ring color is updated.
EXPECT_NE(BNONE, outlineStyle(span));
« no previous file with comments | « Source/core/layout/LayoutTestHelper.cpp ('k') | Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698