mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove elements from text node directionality map when they cease to have dir=auto, Bug 861610, r=ehsan
This commit is contained in:
parent
c1ac4fce51
commit
46e88dac69
@ -942,6 +942,11 @@ OnSetDirAttr(Element* aElement, const nsAttrValue* aNewValue,
|
||||
if (aElement->HasDirAuto()) {
|
||||
WalkDescendantsSetDirAuto(aElement, aNotify);
|
||||
} else {
|
||||
if (aElement->HasDirAutoSet()) {
|
||||
nsINode* setByNode =
|
||||
static_cast<nsINode*>(aElement->GetProperty(nsGkAtoms::dirAutoSetBy));
|
||||
nsTextNodeDirectionalityMap::RemoveElementFromMap(setByNode, aElement);
|
||||
}
|
||||
SetDirectionalityOnDescendants(aElement,
|
||||
RecomputeDirectionality(aElement, aNotify),
|
||||
aNotify);
|
||||
|
Loading…
Reference in New Issue
Block a user