| Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| index b5f5e4236d675625417e873faac8ad0f3cfd5ca9..cc2251298cae6ba96f87e7bc755dcae069422c48 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -675,7 +675,11 @@ LocalFrame* VisualViewport::MainFrame() const {
|
| }
|
|
|
| bool VisualViewport::ScheduleAnimation() {
|
| - return MainFrame()->ScheduleAnimation(GetHostWindow());
|
| + if (HostWindow* window = GetHostWindow()) {
|
| + window->ScheduleAnimation(MainFrame());
|
| + return true;
|
| + }
|
| + return false;
|
| }
|
|
|
| void VisualViewport::ClampToBoundaries() {
|
|
|