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..b837aea1cc332d8ef4f2dda73a398a887bc45b0f 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() |
+{ |
+ if (!widget() || !widget()->isFrameView()) |
+ return false; |
+ const FrameView* frameView = toFrameView(widget()); |
+ return frameView->shouldThrottleRendering(); |
+} |
+ |
} |