forked from mirrors/gecko-dev
Bug 848644 - Do not flush when determining if a node is preformatted or not; r=bzbarsky, a=tef+
This commit is contained in:
parent
344c794a17
commit
1477678a24
1 changed files with 3 additions and 3 deletions
|
|
@ -4011,9 +4011,9 @@ nsEditor::IsPreformatted(nsIDOMNode *aNode, bool *aResult)
|
||||||
content = content->GetParent();
|
content = content->GetParent();
|
||||||
}
|
}
|
||||||
if (content && content->IsElement()) {
|
if (content && content->IsElement()) {
|
||||||
elementStyle = nsComputedDOMStyle::GetStyleContextForElement(content->AsElement(),
|
elementStyle = nsComputedDOMStyle::GetStyleContextForElementNoFlush(content->AsElement(),
|
||||||
nullptr,
|
nullptr,
|
||||||
ps);
|
ps);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!elementStyle)
|
if (!elementStyle)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue