Closed
Bug 443057
Opened 17 years ago
Closed 16 years ago
replace some (coord,chars) nsStyleCoord with nscoord
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(5 files, 2 obsolete files)
6.92 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
7.18 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
6.94 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
12.31 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
3.08 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
As I said in bug 363706 comment 40, in nsStyleStruct.h, there are a bunch of nsStyleCoord members (and maybe nsStyleSides too?) that are nsStyleCoord only to carry the (coord,chars) tagging, which after bug 363706 no longer exists. These could just become nscoord members:
# Another followup we can do is replace a number of nsStyleCoord in the style
# structs (e.g., mOutlineOffset, nsTextShadowItem::m{X,Y}Offset, and probably
# some others) with nscoord, since they only reason they used the union type was
# to carry the coord/chars distinction.
(I'd also note that all nsStyleCoord and nsStyleSides members should really list which of the unioned types they allow in the comment next to the member; most of them do this, but we should probably finish it for the rest. We should probably also clean up the ones that say "length (chars, coord)".)
Assignee | ||
Comment 1•17 years ago
|
||
I missed mBorderSpacingX, mBorderSpacingY.
Assignee: nobody → dbaron
Assignee | ||
Comment 2•17 years ago
|
||
Assignee | ||
Comment 3•17 years ago
|
||
Assignee | ||
Comment 4•17 years ago
|
||
I didn't do the text-shadow pieces because I know ventnor has a box-shadow patch floating around that it would conflict with.
Assignee | ||
Comment 5•17 years ago
|
||
Comment on attachment 327747 [details] [diff] [review]
fix comments describing types
May as well land this part; I'd also be interested in your opinion on the other parts.
Attachment #327747 -
Flags: superreview?(bzbarsky)
Attachment #327747 -
Flags: review?(bzbarsky)
Comment 6•17 years ago
|
||
Comment on attachment 327747 [details] [diff] [review]
fix comments describing types
r+sr=bzbarsky, but how would SetCoord return false here? Should we be asserting that it returns true?
The outline offset patch looks fine, except that "Note that these are" comment near the end needs to have GetOutlineOffset removed from it.
The border-spacing patch looks great.
Attachment #327747 -
Flags: superreview?(bzbarsky)
Attachment #327747 -
Flags: superreview+
Attachment #327747 -
Flags: review?(bzbarsky)
Attachment #327747 -
Flags: review+
Comment 7•17 years ago
|
||
Er, the comments on SetCoord apply to the other two patches, not to the one I marked r+sr on. I just got lost in the tiny textfield.
Assignee | ||
Comment 8•16 years ago
|
||
Landed the first patch: http://hg.mozilla.org/mozilla-central/index.cgi/rev/8666db48bea6
Assignee | ||
Comment 9•16 years ago
|
||
Attachment #327748 -
Attachment is obsolete: true
Attachment #338385 -
Flags: superreview?(bzbarsky)
Attachment #338385 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 10•16 years ago
|
||
Attachment #327749 -
Attachment is obsolete: true
Attachment #338386 -
Flags: superreview?(bzbarsky)
Attachment #338386 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 11•16 years ago
|
||
Attachment #338387 -
Flags: superreview?(bzbarsky)
Attachment #338387 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 12•16 years ago
|
||
This makes the terminology in the comments consistent (internally, and with nsStyleCoord itself). Most places already used "coord" rather than "length".
Attachment #338388 -
Flags: superreview?(bzbarsky)
Attachment #338388 -
Flags: review?(bzbarsky)
Comment 13•16 years ago
|
||
Comment on attachment 338385 [details] [diff] [review]
fix mOutlineOffset
r+sr=bzbarsky
Attachment #338385 -
Flags: superreview?(bzbarsky)
Attachment #338385 -
Flags: superreview+
Attachment #338385 -
Flags: review?(bzbarsky)
Attachment #338385 -
Flags: review+
Comment 14•16 years ago
|
||
Comment on attachment 338386 [details] [diff] [review]
fix mBorderSpacing{X,Y}
r+sr=bzbarsky
Attachment #338386 -
Flags: superreview?(bzbarsky)
Attachment #338386 -
Flags: superreview+
Attachment #338386 -
Flags: review?(bzbarsky)
Attachment #338386 -
Flags: review+
Comment 15•16 years ago
|
||
Comment on attachment 338387 [details] [diff] [review]
fix shadow arrays (mBoxShadow and mTextShadow)
r+sr=bzbarsky
Attachment #338387 -
Flags: superreview?(bzbarsky)
Attachment #338387 -
Flags: superreview+
Attachment #338387 -
Flags: review?(bzbarsky)
Attachment #338387 -
Flags: review+
Comment 16•16 years ago
|
||
Comment on attachment 338388 [details] [diff] [review]
a few last comment fixes
Looks good.
Attachment #338388 -
Flags: superreview?(bzbarsky)
Attachment #338388 -
Flags: superreview+
Attachment #338388 -
Flags: review?(bzbarsky)
Attachment #338388 -
Flags: review+
Assignee | ||
Comment 17•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/47e7de9ac585
http://hg.mozilla.org/mozilla-central/rev/ade776b76598
http://hg.mozilla.org/mozilla-central/rev/e26688231f7b
http://hg.mozilla.org/mozilla-central/rev/4d29ef2bee5e
->fixed
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
You need to log in
before you can comment on or make changes to this bug.
Description
•