| Index: third_party/WebKit/Source/core/layout/LayoutPart.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutPart.cpp b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
|
| index c8f01f97c2e717ca604cb21ee92ec8794d895b8c..c22e254ddc059d2cb671771355f087ab654f10bc 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutPart.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutPart.cpp
|
| @@ -357,4 +357,12 @@ void LayoutPart::invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState& paint
|
| LayoutReplaced::invalidatePaintOfSubtreesIfNeeded(paintInvalidationState);
|
| }
|
|
|
| +bool LayoutPart::isThrottledFrameView() const
|
| +{
|
| + if (!widget() || !widget()->isFrameView())
|
| + return false;
|
| + const FrameView* frameView = toFrameView(widget());
|
| + return frameView->shouldThrottleRendering();
|
| +}
|
| +
|
| }
|
|
|