Closed
Bug 1224464
Opened 9 years ago
Closed 9 years ago
convert keyword tables in nsCSSProps to use a struct
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(3 files, 2 obsolete files)
The keyword tables (tables of KTableValue) in nsCSSProps currently use arrays where the even elements of the array are the keywords and the odd elements are the values. This is silly; it should just be a struct. I have patches to do this. I might end up making bug 1223653 depend on this, although I'm not entirely sure how yet.
Assignee | ||
Comment 1•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=26c5cf8c22e7&group_state=expanded
Assignee | ||
Comment 2•9 years ago
|
||
Bug 1224464 patch 1 - Make nsCSSKeyword explicitly int16_t. r?heycam
Attachment #8687150 -
Flags: review?(cam)
Assignee | ||
Comment 3•9 years ago
|
||
Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r?heycam
Attachment #8687151 -
Flags: review?(cam)
Assignee | ||
Comment 4•9 years ago
|
||
Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r?heycam
Attachment #8687152 -
Flags: review?(cam)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8687150 [details] MozReview Request: Bug 1224464 patch 1 - Make nsCSSKeyword explicitly int16_t. r?heycam Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25117/diff/1-2/
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8687151 [details] MozReview Request: Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r?heycam Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25119/diff/1-2/
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8687152 [details] MozReview Request: Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r?heycam Review request updated; see interdiff: https://reviewboard.mozilla.org/r/25121/diff/1-2/
Assignee | ||
Comment 8•9 years ago
|
||
Bug 1223653 patch 1 - Fix incorrect function being called, caught by enum class type checking in next patch. r?jfkthame
Attachment #8687677 -
Flags: review?(jfkthame)
Assignee | ||
Comment 9•9 years ago
|
||
Bug 1223653 patch 2 - Use an enum class for NS_STYLE_BOX_SIZING_*. r?heycam The casts in nsCSSProps.cpp (defining kBoxSizingKTable) and in nsComputedDOMStyle::DoGetBoxSizing (using nsCSSProps::ValueToKeywordEnum) are a little bit annoying, though aren't a net reduction in typesafety. The casts in nsRuleNode.cpp (SetDiscrete) are a little more annoying, though the change in this patch should be sufficient for converting all properties -- but that may also mean reducing typesafety a bit for all properties. I'd like to find something better to do about them, but I think I'm ok landing this before doing that. Bug 1224918 covers doing better.
Attachment #8687678 -
Flags: review?(cam)
Assignee | ||
Updated•9 years ago
|
Attachment #8687677 -
Attachment is obsolete: true
Attachment #8687677 -
Flags: review?(jfkthame)
Assignee | ||
Updated•9 years ago
|
Attachment #8687678 -
Attachment is obsolete: true
Attachment #8687678 -
Flags: review?(cam)
Comment 10•9 years ago
|
||
Comment on attachment 8687150 [details] MozReview Request: Bug 1224464 patch 1 - Make nsCSSKeyword explicitly int16_t. r?heycam https://reviewboard.mozilla.org/r/25117/#review22719
Attachment #8687150 -
Flags: review?(cam) → review+
Updated•9 years ago
|
Attachment #8687151 -
Flags: review?(cam) → review+
Comment 11•9 years ago
|
||
Comment on attachment 8687151 [details] MozReview Request: Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r?heycam https://reviewboard.mozilla.org/r/25119/#review22721 ::: layout/inspector/inDOMUtils.cpp:588 (Diff revision 2) > // element is a nsCSSKeyword. This comment can be removed.
Updated•9 years ago
|
Attachment #8687152 -
Flags: review?(cam) → review+
Comment 12•9 years ago
|
||
Comment on attachment 8687152 [details] MozReview Request: Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r?heycam https://reviewboard.mozilla.org/r/25121/#review22723
Assignee | ||
Comment 13•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2cb53b74518d271a2874502ad129b7b4f799c5ae Bug 1224464 patch 1 - Make nsCSSKeyword explicitly int16_t. r=heycam https://hg.mozilla.org/integration/mozilla-inbound/rev/fbde9f78976bf61462c3069abdbe87a37303ea59 Bug 1224464 patch 2 - Make nsCSSProps keyword tables be arrays of structs, to represent what they logically are. r=heycam https://hg.mozilla.org/integration/mozilla-inbound/rev/b4f4af049f7d08ccf6d74e45b8aee9ac79801ebf Bug 1224464 patch 3 - Rename KTableValue to KTableEntry now that it is a struct. r=heycam
Comment 14•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/80dc69d21994a554b3041c5ebc7f5572e4a42c09 Bug 1224464 followup - Fix bustage on opt builds on CLOSED TREE
Comment 15•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2cb53b74518d https://hg.mozilla.org/mozilla-central/rev/fbde9f78976b https://hg.mozilla.org/mozilla-central/rev/b4f4af049f7d https://hg.mozilla.org/mozilla-central/rev/80dc69d21994
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•