Closed Bug 201681 Opened 22 years ago Closed 22 years ago

split nsCSSDeclaration.h and .cpp

Categories

(Core :: CSS Parsing and Computation, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.4beta

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

Attachments

(1 file)

I want to split nsCSSDeclaration.h and nsCSSDeclaration.cpp into nsCSSDeclaration (for nsCSSDeclaration itself) and nsCSSStruct (for the values and structs). nsCSSStruct.h would be included all over the place. This would greatly reduce dependencies on nsCSSDeclaration.h and fix a header ordering problem that I need to fix for bug 125246. Do these filenames sound good? If so, I'll want to do this in reasonably short order (after requesting a repository-copy).
Blocks: 125246
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.4beta
Hmm.... Are the structs going to actually stay structs? That is, maybe the second file should be nsCSSDataStorageTypes.h ? (A little long and unwieldy... :().
They're still going stay structs in some uses (nsRuleData, and the expanded, mutable, form for bug 125246). And the stuff for the others will mostly be in other files (although I could move nsCSSRect, etc., to nsCSSValue.h or make a new nsCSSValues.h, but I'd rather not).
Given that, do you think my proposed names are ok?
Sounds good. ;)
To clarify, the repository copy would be (all within mozilla/content/html/style/src/): copy nsCSSDeclaration.cpp to nsCSSStruct.cpp copy nsCSSDeclaration.h to nsCSSStruct.h
copy complete.
Attachment #120467 - Flags: superreview?(bzbarsky)
Attachment #120467 - Flags: review?(bzbarsky)
Fix checked in, 2003-04-14 20:07 PDT. (Post facto review would be nice, although the changes are trivial (the complexity of a build bustage fix, really, except that tons of lines were removed due to the split). But I really wanted to get them in before someone checked in to one of the files, and also before I had to go into hiding for a week.)
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 120467 [details] [diff] [review] patch Er, I thought I'd marked review on this..... I definitely read over it and it looked fine... Maybe my Mozilla crashed around then....
Attachment #120467 - Flags: superreview?(bzbarsky)
Attachment #120467 - Flags: superreview+
Attachment #120467 - Flags: review?(bzbarsky)
Attachment #120467 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: