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

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: Remove internals.setPageScaleFactor, rename eventSender.scalePageBy. Created 7 years, 5 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
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 47c1dadc57fcefb9cafc053d5f267abbc9760ffe..868beee88b195f3b201f5a4574fedb9669b54187 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1734,17 +1734,6 @@ void Internals::setDeviceScaleFactor(float scaleFactor, ExceptionCode& ec)
page->setDeviceScaleFactor(scaleFactor);
}
-void Internals::setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCode& ec)
-{
- Document* document = contextDocument();
- if (!document || !document->page()) {
- ec = INVALID_ACCESS_ERR;
- return;
- }
- Page* page = document->page();
- page->setPageScaleFactor(scaleFactor, IntPoint(x, y));
-}
-
void Internals::setIsCursorVisible(Document* document, bool isVisible, ExceptionCode& ec)
{
if (!document || !document->page()) {

Powered by Google App Engine
This is Rietveld 408576698