Index: third_party/WebKit/Source/core/editing/EditingTestBase.cpp |
diff --git a/third_party/WebKit/Source/core/editing/EditingTestBase.cpp b/third_party/WebKit/Source/core/editing/EditingTestBase.cpp |
index 13afe5080e5fcab480aca9ed6d899afa14cd85e3..825df3697be2b9ecee0db78219af112abdcca44f 100644 |
--- a/third_party/WebKit/Source/core/editing/EditingTestBase.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditingTestBase.cpp |
@@ -35,18 +35,20 @@ PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::createShadowRootForElementWi |
{ |
RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = scope.getElementById(AtomicString::fromUTF8(hostElementID))->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION); |
shadowRoot->setInnerHTML(String::fromUTF8(shadowRootContent), ASSERT_NO_EXCEPTION); |
+ scope.document().view()->updateAllLifecyclePhases(); |
return shadowRoot.release(); |
} |
void EditingTestBase::setBodyContent(const char* bodyContent) |
{ |
document().body()->setInnerHTML(String::fromUTF8(bodyContent), ASSERT_NO_EXCEPTION); |
+ updateLayoutAndStyleForPainting(); |
} |
PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::setShadowContent(const char* shadowContent, const char* host) |
{ |
RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = createShadowRootForElementWithIDAndSetInnerHTML(document(), host, shadowContent); |
- document().updateDistribution(); |
+ updateLayoutAndStyleForPainting(); |
return shadowRoot.release(); |
} |