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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 645623004: Reland "Streamline frame detach" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« Source/core/frame/Frame.cpp ('K') | « Source/web/WebFrame.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index 7843934fc0f09ddb6ef58ca0c52987d5a8236ca1..af39cfbe413dc1f34605ba6a074e37f627eb093a 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -3779,9 +3779,7 @@ TEST_F(WebFrameTest, FindDetachFrameWhileScopingStrings)
EXPECT_FALSE(client.findResultsAreReady());
mainFrame->resetMatchCount();
-
- for (WebFrame* frame = mainFrame; frame; frame = frame->traverseNext(false))
- frame->scopeStringMatches(kFindIdentifier, searchText, options, true);
+ mainFrame->scopeStringMatches(kFindIdentifier, searchText, options, true);
// The first scopeStringMatches will have reset the state. Detach before it actually scopes.
EXPECT_TRUE(mainFrame->document().getElementById("frame").remove());
« Source/core/frame/Frame.cpp ('K') | « Source/web/WebFrame.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698