mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1432490: followup: Fix mac-only bustage on a CLOSED TREE. r=me
MozReview-Commit-ID: TNquyPQhkL
This commit is contained in:
parent
7dffe29d8f
commit
3eb90874c6
@ -691,8 +691,7 @@ nsComputedDOMStyle::DoGetStyleContextNoFlush(Element* aElement,
|
|||||||
// set. Using the pres shell from the content also means that any
|
// set. Using the pres shell from the content also means that any
|
||||||
// content that's actually *in* a document will get the style from the
|
// content that's actually *in* a document will get the style from the
|
||||||
// correct document.
|
// correct document.
|
||||||
nsIPresShell *presShell =
|
nsIPresShell* presShell = nsContentUtils::GetPresShellForContent(aElement);
|
||||||
nsContentUtils::GetPresShellForContent(aElement);
|
|
||||||
bool inDocWithShell = true;
|
bool inDocWithShell = true;
|
||||||
if (!presShell) {
|
if (!presShell) {
|
||||||
inDocWithShell = false;
|
inDocWithShell = false;
|
||||||
|
@ -155,8 +155,7 @@ nsMenuItemIconX::GetIconURI(nsIURI** aIconURI)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
sc = nsComputedDOMStyle::GetStyleContext(mContent->AsElement(), nullptr,
|
sc = nsComputedDOMStyle::GetStyleContext(mContent->AsElement(), nullptr);
|
||||||
document->GetShell());
|
|
||||||
if (!sc) {
|
if (!sc) {
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user