mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 1258384 - Remove some leftover dead code. r=Margaret
MozReview-Commit-ID: 1TG9lj1ZMJF --HG-- extra : rebase_source : 7e5d8a741980bbdadb7bdee6aae6977d8cf1dc2c
This commit is contained in:
parent
e907bb867e
commit
8b918e193d
@ -58,18 +58,7 @@ var ZoomHelper = {
|
||||
// if the rect is already taking up most of the visible area and is stretching the
|
||||
// width of the page, then we want to zoom out instead.
|
||||
if (aElement) {
|
||||
if (BrowserEventHandler.mReflozPref) {
|
||||
let zoomFactor = BrowserApp.selectedTab.getZoomToMinFontSize(aElement);
|
||||
|
||||
rect.width = zoomFactor <= 1.0 ? rect.width : gScreenWidth / zoomFactor;
|
||||
rect.height = zoomFactor <= 1.0 ? rect.height : rect.height / zoomFactor;
|
||||
if (zoomFactor == 1.0 || ZoomHelper.isRectZoomedIn(rect, viewport)) {
|
||||
if (aCanZoomOut) {
|
||||
ZoomHelper.zoomOut();
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else if (ZoomHelper.isRectZoomedIn(rect, viewport)) {
|
||||
if (ZoomHelper.isRectZoomedIn(rect, viewport)) {
|
||||
if (aCanZoomOut) {
|
||||
ZoomHelper.zoomOut();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user