Closed Bug 1538511 Opened 6 years ago Closed 6 years ago

Extract nsIScrollableFrame::ScrollMode into its own file

Categories

(Core :: Layout: Scrolling and Overflow, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(3 files)

As suggested in this review comment, we should extract nsIScrollableFrame::ScrollMode into its own file, and use it in nsIPresShell.h instead of defining a separate enumeration there.

(Also it doesn't necessarily need to go into its own file, it could go into some other file that can be included into all the other places it needs to be used)

This allows this enumeration to be used from nsIPresShell.h without introducing
a circular dependency.

Its new home in layout/base/ScrollTypes.h, included as mozilla/ScrollTypes.h.
Others similar enums can be added to that file if desired.

This patch also makes ScrollMode an enum class (as it's no longer nested
inside a class) and switches its enumerators to the |eName| naming convention.

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be9d79b76e1c Remove non-ASCII characters from comments in Element.cpp. r=kats https://hg.mozilla.org/integration/autoland/rev/57847959cfa6 Move nsIScrollableFrame::ScrollMode into a separate file. r=kats https://hg.mozilla.org/integration/autoland/rev/5840b7d8521a Get rid of nsIPresShell::ScrollMode (use mozilla::ScrollMode instead). r=kats

.

Flags: needinfo?(botond)

Wrong bug number.

Flags: needinfo?(botond)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: