| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 5d68ff08ec5d03d29a1993c9a870a18a7d54d514..1104f2341b9a2d41a0f9d098c86efaa539ea0120 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3699,16 +3699,11 @@ void FrameView::paint(GraphicsContext& context, const CullRect& cullRect) const
|
|
|
| void FrameView::paint(GraphicsContext& context, const GlobalPaintFlags globalPaintFlags, const CullRect& cullRect) const
|
| {
|
| - // TODO(skyostil): Remove this early-out in favor of painting cached scrollbars.
|
| - if (shouldThrottleRendering())
|
| - return;
|
| FramePainter(*this).paint(context, globalPaintFlags, cullRect);
|
| }
|
|
|
| void FrameView::paintContents(GraphicsContext& context, const GlobalPaintFlags globalPaintFlags, const IntRect& damageRect) const
|
| {
|
| - if (shouldThrottleRendering())
|
| - return;
|
| FramePainter(*this).paintContents(context, globalPaintFlags, damageRect);
|
| }
|
|
|
| @@ -4004,8 +3999,12 @@ void FrameView::notifyRenderThrottlingObservers()
|
| }
|
|
|
| bool becameUnthrottled = wasThrottled && !canThrottleRendering();
|
| - if (becameUnthrottled)
|
| + if (becameUnthrottled) {
|
| page()->animator().scheduleVisualUpdate(m_frame.get());
|
| + // Force a full repaint to make sure we regenerate any cached
|
| + // subsequences for this frame.
|
| + m_doFullPaintInvalidation = true;
|
| + }
|
| }
|
|
|
| bool FrameView::shouldThrottleRendering() const
|
|
|