Closed
Bug 712299
Opened 13 years ago
Closed 13 years ago
don't require manual syncing of font data (kCSSRawFontDescs et al)
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(1 file, 1 obsolete file)
6.08 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Comments with nsCSSProps.cpp:kCSSRawFontDescs and elsewhere warn the reader about keeping various bits in sync. No one list is complete and each list is slightly different. Make the madness stop! Patch incoming.
Assignee | ||
Comment 1•13 years ago
|
||
Simple patch to create nsCSSFontDescList.h and make various places use it.
Could you make the parameters to the macro not be uppercase, but instead have a trailing _ character? That matches the style of other things in nearby code, in particular, nsCSSPropList.h. Also, since the fields actually match 2 of the fields in the CSS_PROP macro, could you use the same names, so that you have: #define CSS_FONT_DESC(name_, method_) instead of: #define FONT_DESC(CSS_PROP, NAME) Otherwise, looks great.
Comment 3•13 years ago
|
||
Comment on attachment 583152 [details] [diff] [review] patch In addition to what dbaron said, those trailing commas are likely to be a problem, iirc. Add nsnull at the end of kCSSRawFontDescs, for sure; I think nsCSSFontFaceStyleDecl::Fields should have one too. r=me with that.
Attachment #583152 -
Flags: review?(bzbarsky) → review+
Why does either need a null? They're only accessed by index, I hope.
Comment 5•13 years ago
|
||
Last I checked some compilers warned on the trailing comma. But maybe not anymore?
Assignee | ||
Comment 6•13 years ago
|
||
We already have trailing commas elsewhere, e.g. nsCSSProps.cpp:kCSSRawProperties.
Comment 7•13 years ago
|
||
OK, then don't worry about it.
Assignee | ||
Comment 8•13 years ago
|
||
Addressed bz and dbaron's comments. Carrying over r+.
Attachment #583152 -
Attachment is obsolete: true
Attachment #584780 -
Flags: review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 9•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/e4fe4d48518f
Keywords: checkin-needed
Target Milestone: --- → mozilla12
Comment 10•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e4fe4d48518f
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•