Closed
Bug 1145036
Opened 8 years ago
Closed 8 years ago
Rename nsStyleTableBorder::mBorderSpacing{X,Y} to logical style
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
()
Details
Attachments
(2 files)
8.88 KB,
patch
|
heycam
:
review+
|
Details | Diff | Splinter Review |
50.93 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
We currently use mBorderSpacing{X,Y}, but the writing mode spec says: The first and second values of the border-spacing property represent spacing between columns and rows respectively, not necessarily the horizontal and vertical spacing respectively. Hence, intend to rename them to mBorderSpacing{Col,Row} I guess it makes sense to also rename nsTableFrame::GetCellSpacing{X,Y}, but I'm not sure how they should be renamed. Probably GetCell{I,B}Spacing, or Get{Col,Row}Spacing?
Assignee | ||
Comment 1•8 years ago
|
||
Assignee: nobody → quanxunzhen
Attachment #8579941 -
Flags: review?(cam)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8579943 -
Flags: review?(roc)
Attachment #8579943 -
Flags: review?(roc) → review+
Comment 3•8 years ago
|
||
Comment on attachment 8579941 [details] [diff] [review] patch 1 - rename mBorderSpacingX/Y Review of attachment 8579941 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/style/nsRuleNode.cpp @@ +7906,5 @@ > NS_STYLE_BORDER_SEPARATE, 0, 0, 0, 0); > > const nsCSSValue* borderSpacingValue = aRuleData->ValueForBorderSpacing(); > if (borderSpacingValue->GetUnit() != eCSSUnit_Null) { > + // border-spacing-column/row: length, inherit This comment shouldn't change, since the property names aren't changing.
Attachment #8579941 -
Flags: review?(cam) → review+
Assignee | ||
Comment 4•8 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #3) > Comment on attachment 8579941 [details] [diff] [review] > patch 1 - rename mBorderSpacingX/Y > > Review of attachment 8579941 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: layout/style/nsRuleNode.cpp > @@ +7906,5 @@ > > NS_STYLE_BORDER_SEPARATE, 0, 0, 0, 0); > > > > const nsCSSValue* borderSpacingValue = aRuleData->ValueForBorderSpacing(); > > if (borderSpacingValue->GetUnit() != eCSSUnit_Null) { > > + // border-spacing-column/row: length, inherit > > This comment shouldn't change, since the property names aren't changing. I don't think we ever have properties called border-spacing-x/y.
Comment 5•8 years ago
|
||
Ah, thought that we had split out properties, but both values just get set from border-spacing. The comment should say "border-spacing: pair(length), inherit" then, to match other comments in the file.
Assignee | ||
Comment 6•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=879b5dec24c1
Comment 7•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bd5e71db6003 https://hg.mozilla.org/mozilla-central/rev/778616c8f74e
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•