Open
Bug 849657
Opened 12 years ago
Updated 2 years ago
change eCSSProperty_* constants to use DOM names
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [leave open])
Attachments
(2 files)
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
So I was thinking of changing the names of our internal eCSSProperty_* constants to use the property names that are used for DOM methods. In other words, I'd change:
eCSSProperty_font_size -> eCSSProperty_FontSize
This would allow removing a field from nsCSSPropList.h . It would also match what I did for property alias names in bug 849656.
Reporter | ||
Comment 1•12 years ago
|
||
What do you all think of this idea?
Comment 2•12 years ago
|
||
Seems reasonable to me.
Comment 3•12 years ago
|
||
Sounds fine.
Comment 4•12 years ago
|
||
Seems OK.
Reporter | ||
Comment 5•12 years ago
|
||
Attachment #728853 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 6•12 years ago
|
||
Attachment #728854 -
Flags: review?(bzbarsky)
Comment 7•12 years ago
|
||
Comment on attachment 728853 [details] [diff] [review]
patch 1: Expose CSS_PROP_PUBLIC_OR_PRIVATE macro to users of nsCSSPropList.h rather than CSS_PROP_DOMPROP_PREFIXED, so that we can avoid 'CssFloat' spreading even further.
r=me
Attachment #728853 -
Flags: review?(bzbarsky) → review+
Comment 8•12 years ago
|
||
Comment on attachment 728854 [details] [diff] [review]
patch 2: Change internal uses of 'CssFloat' to 'Float'.
r=me
Attachment #728854 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 9•12 years ago
|
||
OK, those initial patches landed:
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/eb8d19e9c838
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/d20bf3793eb2
I think I need to write the primary substitution patch using sed.
Whiteboard: [leave open]
Reporter | ||
Comment 10•12 years ago
|
||
Plus bustage fix: https://hg.mozilla.org/integration/mozilla-inbound/rev/3178d9b2406d
Comment 11•12 years ago
|
||
Reporter | ||
Comment 12•9 years ago
|
||
(We should perhaps make this an enum class at the same time, actually.)
Reporter | ||
Updated•4 years ago
|
Assignee: dbaron → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•