Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 7af677a95c2c0f5350edb89e097a92be83dd2923..133890bf8e3b1d5ef443ef0b8c5d623a51f3c1c5 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -742,6 +742,17 @@ PassRefPtr<PagePopupController> Internals::pagePopupController() |
return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0; |
} |
+PassRefPtr<ClientRect> Internals::unscaledViewportRect(ExceptionCode& ec) |
+{ |
+ Document* document = contextDocument(); |
+ if (!document || !document->view()) { |
+ ec = INVALID_ACCESS_ERR; |
+ return ClientRect::create(); |
+ } |
+ |
+ return ClientRect::create(document->view()->visibleContentRect()); |
+} |
+ |
PassRefPtr<ClientRect> Internals::absoluteCaretBounds(ExceptionCode& ec) |
{ |
Document* document = contextDocument(); |