Remove deprecated appending of #-moz-resolution from Mypal and left over from nsMediaFragmentURIParser.h
This commit is contained in:
parent
af836c65d9
commit
008915faa1
|
@ -823,13 +823,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
let sizedIconUrl = browser.mIconURL || "";
|
let sizedIconUrl = browser.mIconURL || "";
|
||||||
if (sizedIconUrl) {
|
|
||||||
let size = Math.round(16 * window.devicePixelRatio);
|
|
||||||
sizedIconUrl += (sizedIconUrl.includes("#") ? "&" : "#") +
|
|
||||||
"-moz-resolution=" + size + "," + size;
|
|
||||||
}
|
|
||||||
if (sizedIconUrl != aTab.getAttribute("image")) {
|
if (sizedIconUrl != aTab.getAttribute("image")) {
|
||||||
if (browser.mIconURL)
|
if (sizedIconUrl)
|
||||||
aTab.setAttribute("image", sizedIconUrl);
|
aTab.setAttribute("image", sizedIconUrl);
|
||||||
else
|
else
|
||||||
aTab.removeAttribute("image");
|
aTab.removeAttribute("image");
|
||||||
|
|
|
@ -1170,11 +1170,8 @@ this.PlacesUIUtils = {
|
||||||
* @return The URL with the fragment at the end
|
* @return The URL with the fragment at the end
|
||||||
*/
|
*/
|
||||||
getImageURLForResolution:
|
getImageURLForResolution:
|
||||||
function PUIU_getImageURLForResolution(aWindow, aURL, aWidth = 16, aHeight = 16) {
|
function PUIU_getImageURLForResolution(aWindow, aURL, aWidth, aHeight) {
|
||||||
let width = Math.round(aWidth * aWindow.devicePixelRatio);
|
return aURL;
|
||||||
let height = Math.round(aHeight * aWindow.devicePixelRatio);
|
|
||||||
return aURL + (aURL.includes("#") ? "&" : "#") +
|
|
||||||
"-moz-resolution=" + width + "," + height;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -283,11 +283,6 @@
|
||||||
<parameter name="element"/>
|
<parameter name="element"/>
|
||||||
<parameter name="uri"/>
|
<parameter name="uri"/>
|
||||||
<body><![CDATA[
|
<body><![CDATA[
|
||||||
if (uri) {
|
|
||||||
let size = Math.round(16 * window.devicePixelRatio);
|
|
||||||
if (!uri.includes("#"))
|
|
||||||
uri += "#-moz-resolution=" + size + "," + size;
|
|
||||||
}
|
|
||||||
element.setAttribute("src", uri);
|
element.setAttribute("src", uri);
|
||||||
]]></body>
|
]]></body>
|
||||||
</method>
|
</method>
|
||||||
|
|
|
@ -89,7 +89,6 @@ private:
|
||||||
bool ParseNPTMM(nsDependentSubstring& aString, uint32_t& aMinute);
|
bool ParseNPTMM(nsDependentSubstring& aString, uint32_t& aMinute);
|
||||||
bool ParseNPTSS(nsDependentSubstring& aString, uint32_t& aSecond);
|
bool ParseNPTSS(nsDependentSubstring& aString, uint32_t& aSecond);
|
||||||
bool ParseXYWH(nsDependentSubstring aString);
|
bool ParseXYWH(nsDependentSubstring aString);
|
||||||
bool ParseMozResolution(nsDependentSubstring aString);
|
|
||||||
bool ParseMozSampleSize(nsDependentSubstring aString);
|
bool ParseMozSampleSize(nsDependentSubstring aString);
|
||||||
|
|
||||||
// Media fragment information.
|
// Media fragment information.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user