Bug 848644 - Do not flush when determining if a node is preformatted or not; r=bzbarsky, a=tef+

This commit is contained in:
Ehsan Akhgari 2013-03-07 01:12:41 -05:00
parent 344c794a17
commit 1477678a24

View file

@ -4011,9 +4011,9 @@ nsEditor::IsPreformatted(nsIDOMNode *aNode, bool *aResult)
content = content->GetParent();
}
if (content && content->IsElement()) {
elementStyle = nsComputedDOMStyle::GetStyleContextForElement(content->AsElement(),
nullptr,
ps);
elementStyle = nsComputedDOMStyle::GetStyleContextForElementNoFlush(content->AsElement(),
nullptr,
ps);
}
if (!elementStyle)