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

Unified Diff: Source/core/editing/EditingTestBase.cpp

Issue 1202263004: Use EditingTestBase for PositionTest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review 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
« no previous file with comments | « Source/core/dom/PositionTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingTestBase.cpp
diff --git a/Source/core/editing/EditingTestBase.cpp b/Source/core/editing/EditingTestBase.cpp
index d22b8d7e0fb046feb7439be5d14418472fa7a593..356434e2f03d06fb4bb8eb48e50e4ffe3ece2d8b 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.release();
}
Position EditingTestBase::positionInDOMTree(Node& anchor, int offset)
« no previous file with comments | « Source/core/dom/PositionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698