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

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

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)
Patch Set: Add back FrameView::paint_scrollbars_ to hold PaintLayer scrollbars 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 6ec80ab3f12c85853bea5b8d605d67e5a5433a5b..d0fdb9410e180401e2803661a781797d864fd479 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -567,14 +567,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