Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: Source/core/testing/Internals.cpp

Issue 17585006: Remove HTMLDocument.width and height properties (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix device metrics test with Internals API Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698