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

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

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 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 f29fa251d71662beb8b2371d917671b3e79a35a3..8afbe571081c45a771b3f9272d10f856614005f6 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1815,17 +1815,6 @@ void Internals::setDeviceScaleFactor(float scaleFactor, ExceptionState& es)
page->setDeviceScaleFactor(scaleFactor);
}
-void Internals::setPageScaleFactor(float scaleFactor, int x, int y, ExceptionState& es)
-{
- Document* document = contextDocument();
- if (!document || !document->page()) {
- es.throwDOMException(InvalidAccessError);
- return;
- }
- Page* page = document->page();
- page->setPageScaleFactor(scaleFactor, IntPoint(x, y));
-}
-
void Internals::setIsCursorVisible(Document* document, bool isVisible, ExceptionState& es)
{
if (!document || !document->page()) {
« 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