summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/web/PageOverlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/web/PageOverlay.cpp')
-rw-r--r--third_party/WebKit/Source/web/PageOverlay.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index a1cfd0a..156ad70 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -97,6 +97,12 @@ void PageOverlay::update()
m_layer->setNeedsDisplay();
}
+LayoutRect PageOverlay::visualRect() const
+{
+ ASSERT(m_layer.get());
+ return LayoutRect(FloatPoint(), m_layer->size());
+}
+
IntRect PageOverlay::computeInterestRect(const GraphicsLayer* graphicsLayer, const IntRect&) const
{
return IntRect(IntPoint(), expandedIntSize(m_layer->size()));