Index: third_party/WebKit/Source/core/frame/FullscreenController.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FullscreenController.cpp b/third_party/WebKit/Source/core/frame/FullscreenController.cpp |
index faa33269ffc265d517ad728c2e93afbdefbdb75e..b094ed8b32295e81e9002e36ab69cd0f6639f8ac 100644 |
--- a/third_party/WebKit/Source/core/frame/FullscreenController.cpp |
+++ b/third_party/WebKit/Source/core/frame/FullscreenController.cpp |
@@ -74,7 +74,7 @@ void FullscreenController::DidEnterFullscreen() { |
UpdatePageScaleConstraints(false); |
web_view_base_->SetPageScaleFactor(1.0f); |
if (web_view_base_->MainFrame()->IsWebLocalFrame()) |
- web_view_base_->MainFrame()->SetScrollOffset(WebSize()); |
+ web_view_base_->MainFrame()->ToWebLocalFrame()->SetScrollOffset(WebSize()); |
dcheng
2017/06/16 23:52:20
+alexmos, is there anything more we need to do her
alexmos
2017/06/17 00:04:02
I don't think so - I think these only need to be d
|
web_view_base_->SetVisualViewportOffset(FloatPoint()); |
state_ = State::kFullscreen; |
@@ -151,7 +151,7 @@ void FullscreenController::EnterFullscreen(LocalFrame& frame) { |
initial_page_scale_factor_ = web_view_base_->PageScaleFactor(); |
initial_scroll_offset_ = |
web_view_base_->MainFrame()->IsWebLocalFrame() |
- ? web_view_base_->MainFrame()->GetScrollOffset() |
+ ? web_view_base_->MainFrame()->ToWebLocalFrame()->GetScrollOffset() |
: WebSize(); |
initial_visual_viewport_offset_ = web_view_base_->VisualViewportOffset(); |
initial_background_color_override_enabled_ = |
@@ -259,7 +259,7 @@ void FullscreenController::DidUpdateLayout() { |
web_view_base_->SetPageScaleFactor(initial_page_scale_factor_); |
if (web_view_base_->MainFrame()->IsWebLocalFrame()) { |
- web_view_base_->MainFrame()->SetScrollOffset( |
+ web_view_base_->MainFrame()->ToWebLocalFrame()->SetScrollOffset( |
WebSize(initial_scroll_offset_)); |
} |
web_view_base_->SetVisualViewportOffset(initial_visual_viewport_offset_); |