mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Merge mozilla-central to mozilla-inbound
This commit is contained in:
commit
7b2dc69de0
@ -1658,8 +1658,8 @@ var gBrowserInit = {
|
||||
'View:PageInfo', 'Tasks:InspectPage', 'Browser:ToggleTabView', 'Browser:ToggleAddonBar'];
|
||||
var element;
|
||||
|
||||
for (let disabledItem of disabledItems) {
|
||||
element = document.getElementById(disabledItem);
|
||||
for (let disabledItem of disabledItems) {
|
||||
element = document.getElementById(disabledItem);
|
||||
if (element)
|
||||
element.setAttribute("disabled", "true");
|
||||
}
|
||||
@ -1668,8 +1668,8 @@ var gBrowserInit = {
|
||||
// and zoom menu commands as well
|
||||
if (window.location.href == "chrome://browser/content/hiddenWindow.xul") {
|
||||
var hiddenWindowDisabledItems = ['cmd_close', 'minimizeWindow', 'zoomWindow'];
|
||||
for (let hiddenWindowDisabledItem of hiddenWindowDisabledItems) {
|
||||
element = document.getElementById(hiddenWindowDisabledItem);
|
||||
for (let hiddenWindowDisabledItem of hiddenWindowDisabledItems) {
|
||||
element = document.getElementById(hiddenWindowDisabledItem);
|
||||
if (element)
|
||||
element.setAttribute("disabled", "true");
|
||||
}
|
||||
|
@ -76,6 +76,13 @@ ImageLoader::AssociateRequestToFrame(imgIRequest* aRequest,
|
||||
|
||||
mRequestToFrameMap.Put(aRequest, newFrameSet);
|
||||
frameSet = newFrameSet.forget();
|
||||
|
||||
nsPresContext* presContext = GetPresContext();
|
||||
if (presContext) {
|
||||
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext,
|
||||
aRequest,
|
||||
nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
RequestSet* requestSet = nullptr;
|
||||
@ -365,12 +372,15 @@ ImageLoader::OnStartContainer(imgIRequest* aRequest, imgIContainer* aImage)
|
||||
NS_IMETHODIMP
|
||||
ImageLoader::OnImageIsAnimated(imgIRequest* aRequest)
|
||||
{
|
||||
// NB: Don't ignore this when cloning, it's our only chance to register
|
||||
// the request with the refresh driver.
|
||||
if (!mDocument) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
FrameSet* frameSet = nullptr;
|
||||
if (!mRequestToFrameMap.Get(aRequest, &frameSet)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Register with the refresh driver now that we are aware that
|
||||
// we are animated.
|
||||
nsPresContext* presContext = GetPresContext();
|
||||
|
Loading…
Reference in New Issue
Block a user