mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784704 - GetViewportInfo does not read minimum-scale and maximum-scale [r=jwir3]
--HG-- extra : rebase_source : 7a425fab37b6e5ced66c8a33f1258129b399e4ff
This commit is contained in:
parent
907e69114d
commit
bd3aac02af
@ -5084,7 +5084,7 @@ nsContentUtils::GetViewportInfo(nsIDocument *aDocument)
|
||||
}
|
||||
|
||||
nsAutoString minScaleStr;
|
||||
aDocument->GetHeaderData(nsGkAtoms::minimum_scale, minScaleStr);
|
||||
aDocument->GetHeaderData(nsGkAtoms::viewport_minimum_scale, minScaleStr);
|
||||
|
||||
nsresult errorCode;
|
||||
float scaleMinFloat = minScaleStr.ToFloat(&errorCode);
|
||||
@ -5097,7 +5097,7 @@ nsContentUtils::GetViewportInfo(nsIDocument *aDocument)
|
||||
scaleMinFloat = NS_MAX(scaleMinFloat, kViewportMinScale);
|
||||
|
||||
nsAutoString maxScaleStr;
|
||||
aDocument->GetHeaderData(nsGkAtoms::maximum_scale, maxScaleStr);
|
||||
aDocument->GetHeaderData(nsGkAtoms::viewport_maximum_scale, maxScaleStr);
|
||||
|
||||
// We define a special error code variable for the scale and max scale,
|
||||
// because they are used later (see the width calculations).
|
||||
|
Loading…
Reference in New Issue
Block a user