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:
Emilio Cobos Álvarez
2018-04-06 14:52:12 +02:00
parent 948ee35260
commit 9c4328ca42
20 changed files with 154 additions and 91 deletions

View File

@@ -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;
}