Closed Bug 973087 Opened 10 years ago Closed 10 years ago

nsSimplePageSequence.* should have "Frame" suffix, to match the name of the class it actually defines

Categories

(Core :: Layout, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: dholbert, Assigned: Six)

Details

Attachments

(1 file)

Right now, nearly every frame class is defined in its own .h/.cpp file (sometimes just the .cpp file), and as a rule, the file has the same name as the frame class.

One notable exception, however, is nsSimplePageSequenceFrame; it's in nsSimplePageSequence.h/.cpp (no "Frame" in the filename). 

This is inconsistent and unnecessary. We should add "Frame" to make it consistent (and to make it clear that this file defines a frame class).

(noticed while chatting with :Six about bug 919806)
Summary: nsSimplePageSequence.* should have "Frame" suffix → nsSimplePageSequence.* should have "Frame" suffix, to match the name of the class it actually defines
nsSimplePageSequenceFrame is such a silly name, can we rename it as well?
At least drop the "Simple".
Severity: normal → enhancement
OS: Linux → All
Hardware: x86_64 → All
That'd be a substantially larger patch; it'd involves renaming all usages of the class name, and could potentially need some reindentation, etc.

I believe :six already has a patch prepared to do *just* the file-rename, making the filename consistent with the (existing) class-name. I think that's worth taking on its own, as one atomic change.

From there, we can do further renaming (of the newly-consistently-named file & class simultaneously), if you like.
Assignee: nobody → six.dsn
Build is green: https://tbpl.mozilla.org/?tree=Try&rev=edcc93791f20
moves nsSimplePageSequence[.h|.cpp] to nsSimplePageSequenceFrame[.h|.cpp]
changes all references to nsSimplePageSequence
Attachment #8376741 - Flags: review?(roc)
Status: NEW → ASSIGNED
Priority: -- → P4
https://hg.mozilla.org/mozilla-central/rev/3a3f154feea8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: