Replace ScrollContainerFrame::OverflowState with mozilla::PhysicalAxes
Categories
(Core :: Layout: Scrolling and Overflow, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox128 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(2 files)
Per emilio's review comment in https://phabricator.services.mozilla.com/D211499#7267763, we could improve OverflowState by declaring it as uint8_t.
After taking a closer look at the enum, it is just a return value of a non-public method GetOverflowState, and it is public just because we implement MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS on it. I think this enum is equivalent to PhysicalAxes per implementation of GetOverflowState(). I'll upload patches later to improve this.
| Assignee | ||
Comment 1•2 years ago
|
||
This also makes PhysicalAxis::{Horizontal,Vertical} more useful when we
previous needed PhysicalAxes::{Horizontal,Vertical}.
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
OverflowState is equivalent to PhysicalAxes. We really don't need a separate
type.
Comment 4•2 years ago
|
||
Backed out for causing android build bustages in ScrollContainerFrame.cpp.
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/layout/generic/ScrollContainerFrame.cpp:6231:9: error: use of undeclared identifier 'GetOverflowState'; did you mean 'GetOverflowFrames'?
| Assignee | ||
Comment 5•2 years ago
|
||
Oops, there is a GetOverflowState() call in #if defined(MOZ_WIDGET_ANDROID) that I didn't convert https://searchfox.org/mozilla-central/rev/f60bb10a5fe6936f9e9f9e8a90d52c18a0ffd818/layout/generic/ScrollContainerFrame.cpp#6230
Comment 7•2 years ago
|
||
Backed out for conflicting with backout of Bug 1896516:
https://hg.mozilla.org/mozilla-central/rev/c6b3fea6d3d424f90af3d28ff1777dc78f775cbf
Comment 9•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/23c00f7ab582
https://hg.mozilla.org/mozilla-central/rev/ce424186fe41
| Assignee | ||
Updated•2 years ago
|
Description
•