Remove ScrollFrameHelper::GetFrameForDir()
Categories
(Core :: Layout: Block and Inline, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(2 files)
Another suggestion by Emilio per https://mozilla.logbot.info/layout/20190920#c16630059. After bug 1102175 landed, we can remove ScrollFrameHelper::GetFrameForDir().
Also, it might worth auditing all the frame classes that still get "writing-mode", "direction", and "text-orientation" from computed style instead of mWritingMode
stored in nsIFrame
.
Assignee | ||
Comment 1•6 years ago
|
||
After bug 1102175, the root scroll frame always obtains its used
WritingMode from either body element or root element. The if (mIsRoot)
in GetFrameForDir() block becomes redundant, so does GetFrameForDir()
itself.
Assignee | ||
Comment 2•6 years ago
|
||
I discovered this while improving ScrollFrameHelper::IsPhysicalLTR().
Our code base needs a notion of physical direction. Let's add it to
WritingMode.
Depends on D49817
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/712c3e31d097
https://hg.mozilla.org/mozilla-central/rev/b6f7644d72da
Description
•