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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)
Patch Set: Keep FrameViewBase.h file until dependent CL is landed. Created 3 years, 8 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/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index fe305d710d0976991055240956d2968d912944f3..6ce3e44b9a56ae2e74433df45d7bb4a594e3f954 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -565,14 +565,11 @@ void ChromeClientImpl::ScheduleAnimation(LocalFrame* frame) {
WebLocalFrameImpl::FromFrame(frame)->FrameWidget()->ScheduleAnimation();
}
-IntRect ChromeClientImpl::ViewportToScreen(
- const IntRect& rect_in_viewport,
- const FrameViewBase* frame_view_base) const {
+IntRect ChromeClientImpl::ViewportToScreen(const IntRect& rect_in_viewport,
+ const FrameView* frame_view) const {
WebRect screen_rect(rect_in_viewport);
- DCHECK(frame_view_base->IsFrameView());
- const FrameView* view = ToFrameView(frame_view_base);
- LocalFrame* frame = view->GetFrame().LocalFrameRoot();
+ LocalFrame* frame = frame_view->GetFrame().LocalFrameRoot();
WebWidgetClient* client =
WebLocalFrameImpl::FromFrame(frame)->FrameWidget()->Client();

Powered by Google App Engine
This is Rietveld 408576698