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
|
||||
// content that's actually *in* a document will get the style from the
|
||||
// correct document.
|
||||
nsIPresShell *presShell =
|
||||
nsContentUtils::GetPresShellForContent(aElement);
|
||||
nsIPresShell* presShell = nsContentUtils::GetPresShellForContent(aElement);
|
||||
bool inDocWithShell = true;
|
||||
if (!presShell) {
|
||||
inDocWithShell = false;
|
||||
|
@ -155,8 +155,7 @@ nsMenuItemIconX::GetIconURI(nsIURI** aIconURI)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
sc = nsComputedDOMStyle::GetStyleContext(mContent->AsElement(), nullptr,
|
||||
document->GetShell());
|
||||
sc = nsComputedDOMStyle::GetStyleContext(mContent->AsElement(), nullptr);
|
||||
if (!sc) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user