| Index: Source/core/page/Frame.cpp
|
| diff --git a/Source/core/page/Frame.cpp b/Source/core/page/Frame.cpp
|
| index 217a5fd9e3bcac298c43158177a11d950eb042ce..ebd3167f25b401af5be08fb2bcf2e5f076d4ab21 100644
|
| --- a/Source/core/page/Frame.cpp
|
| +++ b/Source/core/page/Frame.cpp
|
| @@ -311,18 +311,16 @@ Frame* Frame::frameForWidget(const Widget* widget)
|
| // Assume all widgets are either a FrameView or owned by a RenderWidget.
|
| // FIXME: That assumption is not right for scroll bars!
|
| ASSERT_WITH_SECURITY_IMPLICATION(widget->isFrameView());
|
| - return toFrameView(widget)->frame();
|
| + return &toFrameView(widget)->frame();
|
| }
|
|
|
| void Frame::clearTimers(FrameView *view, Document *document)
|
| {
|
| if (view) {
|
| view->unscheduleRelayout();
|
| - if (view->frame()) {
|
| - if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
|
| - view->frame()->animation()->suspendAnimationsForDocument(document);
|
| - view->frame()->eventHandler()->stopAutoscrollTimer();
|
| - }
|
| + if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
|
| + view->frame().animation()->suspendAnimationsForDocument(document);
|
| + view->frame().eventHandler()->stopAutoscrollTimer();
|
| }
|
| }
|
|
|
|
|