Closed Bug 111883 Opened 24 years ago Closed 22 years ago

typesafe way to get style data

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(2 files)

I'm tired of having to write the same information twice in a way that the compiler can't check -- the struct ID and the type of the struct. So I have a patch for typesafe |GetStyleData| global functions that I'll attach. On my gcc3 optimized build these (see the test patch that uses it) compile to the exact same size file. They need to be tested on other platforms. Any thoughts?
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.7
Summary: typesafe way for getting style data → typesafe way to get style data
Comment on attachment 59119 [details] [diff] [review] patch It looks fine on the Mac. With the second patch, the Layout shared lib size increased by only 57 bytes in a debug build. r=pierre
Attachment #59119 - Flags: review+
sr=hyatt. Lookin' good.
Comment on attachment 59119 [details] [diff] [review] patch sr=waterson (hyatt, too, I think)
Attachment #59119 - Flags: superreview+
Comment on attachment 59121 [details] [diff] [review] patch that tests both functions sr=waterson
Attachment #59121 - Flags: superreview+
Patches checked in 2001-11-27 21:04 PDT, although I'd like to do a little more measurement before strongly advocating the use of the new functions all over the place...
-> 0.9.8
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → Future
So... we've been using the typesafe versions of GetStyleData more and more with no ill effects, as far as I can tell. What remains to be done here?
The new mechanism in bug 197205 is also typesafe, although different from the one proposed here. Thus marking fixed rather than wontfix.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: