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

Unified Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html

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
Index: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html
index a31054176d8a217f011c1b863e7ae39a3ad8cec6..a9e40f071c21492d45ab3e21283fa9f69f75d7b0 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe.html
@@ -6,16 +6,16 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
- if (window.internals) {
+ if (window.internals && window.eventSender) {
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
window.internals.settings.setFixedPositionCreatesStackingContext(true);
addEventListener("load", function() {
- window.internals.setPageScaleFactor(0.5, 0, 0);
+ window.eventSender.setPageScaleFactor(0.5, 0, 0);
setTimeout(function() {
var layerTreeScaledDown = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
- window.internals.setPageScaleFactor(1.5, 0, 0);
+ window.eventSender.setPageScaleFactor(1.5, 0, 0);
setTimeout(function() {
var layerTreeScaledUp = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
// Because logical size of the frame is unchanged, the layer tree in the frame should not be affected by the page scale.

Powered by Google App Engine
This is Rietveld 408576698