Bug 1428339: Make attribute mapping work without a pres context. r=heycam

MozReview-Commit-ID: FisYWoArX0N
This commit is contained in:
Emilio Cobos Álvarez
2018-01-05 13:47:04 +01:00
parent a275efd393
commit 3fb51af7bf
19 changed files with 100 additions and 101 deletions

View File

@@ -237,7 +237,7 @@ HTMLTableCellElement::MapAttributesIntoRule(const nsMappedAttributes* aAttribute
if (aAttributes->GetAttr(nsGkAtoms::nowrap)) {
// See if our width is not a nonzero integer width.
const nsAttrValue* value = aAttributes->GetAttr(nsGkAtoms::width);
nsCompatibility mode = aData->PresContext()->CompatibilityMode();
nsCompatibility mode = aData->Document()->GetCompatibilityMode();
if (!value || value->Type() != nsAttrValue::eInteger ||
value->GetIntegerValue() == 0 ||
eCompatibility_NavQuirks != mode) {