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:
@@ -487,7 +487,7 @@ nsImageFrame::ShouldCreateImageFrameFor(Element* aElement,
|
||||
// text).
|
||||
useSizedBox = true;
|
||||
}
|
||||
else if (aComputedStyle->PresContext()->CompatibilityMode() !=
|
||||
else if (aElement->OwnerDoc()->GetCompatibilityMode() !=
|
||||
eCompatibility_NavQuirks) {
|
||||
useSizedBox = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user