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

Unified Diff: third_party/WebKit/Source/web/tests/WebDocumentTest.cpp

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 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
Index: third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp b/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
index 8f431d657ebf3a89f56bb5f3f54b82cf94187201..618cce99a0a5b079c6a712ff37383e102536f546 100644
--- a/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
@@ -4,12 +4,15 @@
#include "public/web/WebDocument.h"
+#include <string>
+
#include "core/CSSPropertyNames.h"
#include "core/HTMLNames.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/StyleEngine.h"
#include "core/frame/FrameTestHelpers.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLLinkElement.h"
#include "core/page/Page.h"
@@ -57,7 +60,7 @@ Document* WebDocumentTest::TopDocument() const {
}
WebDocument WebDocumentTest::TopWebDocument() const {
- return web_view_helper_.WebView()->MainFrame()->GetDocument();
+ return web_view_helper_.WebView()->MainFrameImpl()->GetDocument();
}
TEST_F(WebDocumentTest, InsertAndRemoveStyleSheet) {
« no previous file with comments | « third_party/WebKit/Source/web/tests/VisualViewportTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698