When the text node that set the directionality of an element with dir=auto is removed, and there is no other text node that can set the directionality, clear the dirAutoSetBy property on the element. Bug 815500, r=peterv

This commit is contained in:
Simon Montagu 2012-12-16 07:35:07 -08:00
parent a8db051490
commit 5f1677a1eb

View File

@ -490,6 +490,9 @@ private:
startAfterNode);
if (textNode) {
nsTextNodeDirectionalityMap::AddEntryToMap(textNode, rootNode);
} else {
rootNode->ClearHasDirAutoSet();
rootNode->UnsetProperty(nsGkAtoms::dirAutoSetBy);
}
return PL_DHASH_REMOVE;
}