зеркало из https://github.com/mozilla/gecko-dev.git
Remove elements from text node directionality map when they cease to have dir=auto, Bug 861610, r=ehsan
This commit is contained in:
Родитель
644bc5ddde
Коммит
95edc84179
|
@ -942,6 +942,11 @@ OnSetDirAttr(Element* aElement, const nsAttrValue* aNewValue,
|
||||||
if (aElement->HasDirAuto()) {
|
if (aElement->HasDirAuto()) {
|
||||||
WalkDescendantsSetDirAuto(aElement, aNotify);
|
WalkDescendantsSetDirAuto(aElement, aNotify);
|
||||||
} else {
|
} else {
|
||||||
|
if (aElement->HasDirAutoSet()) {
|
||||||
|
nsINode* setByNode =
|
||||||
|
static_cast<nsINode*>(aElement->GetProperty(nsGkAtoms::dirAutoSetBy));
|
||||||
|
nsTextNodeDirectionalityMap::RemoveElementFromMap(setByNode, aElement);
|
||||||
|
}
|
||||||
SetDirectionalityOnDescendants(aElement,
|
SetDirectionalityOnDescendants(aElement,
|
||||||
RecomputeDirectionality(aElement, aNotify),
|
RecomputeDirectionality(aElement, aNotify),
|
||||||
aNotify);
|
aNotify);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче