mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1554751 - Change the RFP value of devicePixelRatio to 2. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D207834
This commit is contained in:
parent
df51b8b141
commit
6c78db7df6
@ -3513,7 +3513,7 @@ double nsGlobalWindowInner::GetDevicePixelRatio(CallerType aCallerType,
|
||||
nsAutoCString origin;
|
||||
nsresult rv = this->GetPrincipal()->GetOrigin(origin);
|
||||
if (NS_FAILED(rv) || origin != "resource://pdf.js"_ns) {
|
||||
return 1.0;
|
||||
return 2.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ var test = function (isContent) {
|
||||
["screen.orientation.type", "'landscape-primary'"],
|
||||
["screen.orientation.angle", 0],
|
||||
["screen.mozOrientation", "'landscape-primary'"],
|
||||
["devicePixelRatio", 1],
|
||||
["devicePixelRatio", 2],
|
||||
];
|
||||
|
||||
// checkPair: tests if members of pair [a, b] are equal when evaluated.
|
||||
|
Loading…
Reference in New Issue
Block a user