Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :( MozReview-Commit-ID: 2kTZ5McREUT
This commit is contained in:
@@ -4423,8 +4423,7 @@ const nsCSSFrameConstructor::FrameConstructionData*
|
||||
nsCSSFrameConstructor::FindXULMenubarData(Element* aElement,
|
||||
ComputedStyle* aComputedStyle)
|
||||
{
|
||||
nsCOMPtr<nsIDocShell> treeItem =
|
||||
aComputedStyle->PresContext()->GetDocShell();
|
||||
nsCOMPtr<nsIDocShell> treeItem = aElement->OwnerDoc()->GetDocShell();
|
||||
if (treeItem && nsIDocShellTreeItem::typeChrome == treeItem->ItemType()) {
|
||||
nsCOMPtr<nsIDocShellTreeItem> parent;
|
||||
treeItem->GetParent(getter_AddRefs(parent));
|
||||
|
||||
Reference in New Issue
Block a user