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

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrameView.cpp

Issue 2845583002: Remove FrameViewBase as base class of RemoteFrameView. (Closed)
Patch Set: fix scrollbar inactive 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/core/frame/RemoteFrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp b/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
index b2bc577dee70f3ddae7748c33a02e5a006dee058..bf85bc3690523631f51ce66a8f60edcb054d6968 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
@@ -22,8 +22,7 @@ RemoteFrameView::RemoteFrameView(RemoteFrame* remote_frame)
RemoteFrameView::~RemoteFrameView() {}
-void RemoteFrameView::SetParent(FrameViewBase* parent_frame_view_base) {
- FrameView* parent = ToFrameView(parent_frame_view_base);
+void RemoteFrameView::SetParent(FrameView* parent) {
if (parent == parent_)
return;
@@ -137,16 +136,15 @@ void RemoteFrameView::SetParentVisible(bool visible) {
remote_frame_->Client()->VisibilityChanged(self_visible_ && parent_visible_);
}
-IntRect RemoteFrameView::ConvertFromContainingFrameViewBase(
- const IntRect& parent_rect) const {
- if (const FrameView* parent = ToFrameView(Parent())) {
- IntRect local_rect = parent_rect;
- local_rect.SetLocation(
- parent->ConvertSelfToChild(this, local_rect.Location()));
- return local_rect;
+IntRect RemoteFrameView::ConvertFromRootFrame(
+ const IntRect& rect_in_root_frame) const {
+ if (parent_) {
+ IntRect parent_rect = parent_->ConvertFromRootFrame(rect_in_root_frame);
+ parent_rect.SetLocation(parent_->ConvertSelfToChild(
+ frame_rect_.Location(), parent_rect.Location()));
+ return parent_rect;
}
-
- return parent_rect;
+ return rect_in_root_frame;
}
DEFINE_TRACE(RemoteFrameView) {

Powered by Google App Engine
This is Rietveld 408576698