Don't set autodirection on elements like <script>, <style> and <textarea>. Bug 819014.

This commit is contained in:
Simon Montagu 2012-12-23 00:13:32 -08:00
parent 83f6bb9477
commit 445a1d1581

View File

@ -363,6 +363,9 @@ WalkDescendantsSetDirectionFromText(Element* aElement, bool aNotify = true,
nsINode* aStartAfterNode = nullptr)
{
MOZ_ASSERT(aElement, "aElement is null");
if (DoesNotParticipateInAutoDirection(aElement)) {
return nullptr;
}
nsIContent* child;
if (aStartAfterNode &&