| Index: Source/core/layout/LayoutThemeTest.cpp
|
| diff --git a/Source/core/layout/LayoutThemeTest.cpp b/Source/core/layout/LayoutThemeTest.cpp
|
| index 112bd255e488f6219538923e6757047105a06204..826b449da02f3afdd9ee9e1fdfe72ab3e9240b90 100644
|
| --- a/Source/core/layout/LayoutThemeTest.cpp
|
| +++ b/Source/core/layout/LayoutThemeTest.cpp
|
| @@ -42,7 +42,7 @@ void LayoutThemeTest::SetUp()
|
| void LayoutThemeTest::setHtmlInnerHTML(const char* htmlContent)
|
| {
|
| document().documentElement()->setInnerHTML(String::fromUTF8(htmlContent), ASSERT_NO_EXCEPTION);
|
| - document().view()->updateLayoutAndStyleIfNeededRecursive();
|
| + document().view()->updateLayoutAndStyleForPainting();
|
| }
|
|
|
| inline Color outlineColor(Element* element)
|
| @@ -73,7 +73,7 @@ TEST_F(LayoutThemeTest, ChangeFocusRingColor)
|
| document().page()->focusController().setActive(true);
|
| document().page()->focusController().setFocused(true);
|
| span->focus();
|
| - document().view()->updateLayoutAndStyleIfNeededRecursive();
|
| + document().view()->updateLayoutAndStyleForPainting();
|
|
|
| // Checking focused style.
|
| EXPECT_NE(BNONE, outlineStyle(span));
|
| @@ -82,7 +82,7 @@ TEST_F(LayoutThemeTest, ChangeFocusRingColor)
|
| // Change focus ring color.
|
| LayoutTheme::theme().setCustomFocusRingColor(customColor);
|
| Page::platformColorsChanged();
|
| - document().view()->updateLayoutAndStyleIfNeededRecursive();
|
| + document().view()->updateLayoutAndStyleForPainting();
|
|
|
| // Check that the focus ring color is updated.
|
| EXPECT_NE(BNONE, outlineStyle(span));
|
|
|