mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't set autodirection on elements like <script>, <style> and <textarea>. Bug 819014.
This commit is contained in:
parent
83f6bb9477
commit
445a1d1581
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user