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

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

Issue 2860673002: Change all test cases to use WebViewBase instead of WebViewImpl. (Closed)
Patch Set: Address code review comments. Created 3 years, 7 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/LayoutGeometryMapTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp b/third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp
index 2748a1a212b612fff26c5d2de507b710c056aac7..de6d7918fc3d9527043b77253d598947ef73d23c 100644
--- a/third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp
+++ b/third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp
@@ -80,7 +80,7 @@ class LayoutGeometryMapTest
static Element* GetElement(WebView* web_view,
const WTF::AtomicString& element_id) {
- WebViewImpl* web_view_impl = ToWebViewImpl(web_view);
+ WebViewBase* web_view_impl = static_cast<WebViewBase*>(web_view);
if (!web_view_impl)
return nullptr;
LocalFrame* frame = web_view_impl->MainFrameImpl()->GetFrame();
@@ -151,7 +151,8 @@ class LayoutGeometryMapTest
static FloatRect AdjustForFrameScroll(WebView* web_view,
const FloatRect& rect) {
FloatRect result(rect);
- LocalFrame* frame = ToWebViewImpl(web_view)->MainFrameImpl()->GetFrame();
+ LocalFrame* frame =
+ static_cast<WebViewBase*>(web_view)->MainFrameImpl()->GetFrame();
LayoutView* layout_view = frame->GetDocument()->GetLayoutView();
if (layout_view->HasOverflowClip())
result.Move(layout_view->ScrolledContentOffset());

Powered by Google App Engine
This is Rietveld 408576698