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

Unified Diff: third_party/WebKit/Source/web/tests/VisualViewportTest.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/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
index 76963e39c21f39fe63df28043828d31e3d016f8d..fee0182a62ec3d95516831ca9d004030a247a210 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -4,6 +4,8 @@
#include "core/frame/VisualViewport.h"
+#include <memory>
+
#include "core/dom/Document.h"
#include "core/frame/BrowserControls.h"
#include "core/frame/FrameTestHelpers.h"
@@ -1876,7 +1878,7 @@ TEST_P(VisualViewportTest, AccessibilityHitTestWhileZoomedIn) {
WebViewImpl()->Resize(IntSize(500, 500));
WebViewImpl()->UpdateAllLifecyclePhases();
- WebDocument web_doc = WebViewImpl()->MainFrame()->GetDocument();
+ WebDocument web_doc = WebViewImpl()->MainFrameImpl()->GetDocument();
LocalFrameView& frame_view = *WebViewImpl()->MainFrameImpl()->GetFrameView();
WebViewImpl()->SetPageScaleFactor(2);
« no previous file with comments | « third_party/WebKit/Source/web/tests/TouchActionTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698