Chromium Code Reviews| Index: Source/core/editing/EditingTestBase.cpp |
| diff --git a/Source/core/editing/EditingTestBase.cpp b/Source/core/editing/EditingTestBase.cpp |
| index d22b8d7e0fb046feb7439be5d14418472fa7a593..1e2dc05ca73a82e12ace06a3315bf99894aaf650 100644 |
| --- a/Source/core/editing/EditingTestBase.cpp |
| +++ b/Source/core/editing/EditingTestBase.cpp |
| @@ -45,7 +45,9 @@ void EditingTestBase::setBodyContent(const char* bodyContent) |
| PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::setShadowContent(const char* shadowContent) |
| { |
| - return createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent); |
| + RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent); |
| + document().recalcDistribution(); |
| + return shadowRoot; |
|
tkent
2015/06/24 09:27:41
shadowRoot -> shadowRoot.release()
hajimehoshi
2015/06/24 09:52:50
Done.
|
| } |
| Position EditingTestBase::positionInDOMTree(Node& anchor, int offset) |