Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
index c0b3b8d0f8d02582cc351d9b9eb321b87db82949..fcae207a0373c22bceb033f50a086559f0ff714a 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp |
@@ -841,6 +841,16 @@ String LocalFrame::localLayerTreeAsText(unsigned flags) const |
return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<LayerTreeFlags>(flags)); |
} |
+bool LocalFrame::shouldThrottleRendering() const |
+{ |
+ return view() && view()->shouldThrottleRendering(); |
+} |
+ |
+bool LocalFrame::shouldThrottleRenderingIfAllowed() const |
+{ |
+ return view() && view()->shouldThrottleRenderingIfAllowed(); |
+} |
+ |
inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameOwner* owner) |
: Frame(client, host, owner) |
, m_loader(this) |