Commit Graph

10 Commits

Author SHA1 Message Date
Botond Ballo
63e70977ef Bug 1205511 - Use nsPresContext::DevToCSSPixelScale() where appropriate. r=kats 2015-09-28 20:14:26 -04:00
Kartikaya Gupta
17d6ba4cbf Bug 1201529 - Ensure that zoomable scrollframes return true from WantAsyncScroll(). r=botond 2015-09-11 21:58:16 -04:00
Kartikaya Gupta
7041fb3b00 Bug 1197824 - Remove the mAllowDoubleTapZoom field from nsViewportInfo as it is not needed. r=botond 2015-09-03 10:30:41 -04:00
Kartikaya Gupta
265e726875 Bug 1197824 - Support the browser.ui.zoom.force-user-scalable pref in the gecko zoom-constraints codepath. r=botond
The browser.ui.zoom.force-user-scalable pref can be modified by the user from
the Fennec settings screen, and allows them zoom pages despite the meta-viewport
tag that might otherwise restrict zooming. This effectively ignores the effect
of the user-scalable, minimum-scale, and maximum-scale meta-viewport tokens.
2015-09-03 10:30:41 -04:00
Kartikaya Gupta
87a5d4fadc Bug 1197824 - Constrain the min/max zoom if zooming is not allowed. r=botond
In the C++ APZ implementation this has no effect, because the min/max zoom values
are never even read if zooming is not allowed. When this is hooked up to the
Java implementation though, the code expects the min/max zoom values to be
equal to the default zoom values in the case where zooming is not allowed. This
behaviour change therefore facilitates hooking up the ZoomConstraintsClient
to the Java pan/zoom controller implementation, which happens in a future patch.
2015-09-03 10:30:40 -04:00
Kartikaya Gupta
4211805315 Bug 1200303 - Support meta-viewport changes in ZoomConstraintsClient as well. r=miketaylr 2015-09-01 14:04:56 -04:00
Kartikaya Gupta
ef2059ac6e Bug 1194811 Part 2 - Use the content viewer size rather than the composition size of the root frame when computing the CSS viewport. r=botond
This aligns the code in the ZoomConstraintsClient with the other code in the
MobileViewportManager. That way they should always end up with the same result
for the CSS viewport.
2015-08-26 14:41:20 -04:00
Kartikaya Gupta
c72d355935 Bug 1194811 Part 1 - Recompute the zoom constraints if the available screen area changes. r=botond 2015-08-26 14:41:12 -04:00
Kartikaya Gupta
0913401924 Bug 1186004 - Add a pref to enable/disable APZ zooming behaviour. r=botond 2015-07-22 23:42:08 -04:00
Kartikaya Gupta
f8ae55b733 Bug 1055557 - Add a ZoomConstraintsClient class to manage pushing zoom constraints updates to the APZ code. r=botond
Original patch by Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>.
2015-06-17 12:32:42 -04:00