Closed
Bug 1228921
Opened 9 years ago
Closed 9 years ago
write nsChangeHint constants using left shifts
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)
Details
Attachments
(2 files)
8.92 KB,
patch
|
xidorn
:
review+
|
Details | Diff | Splinter Review |
4.37 KB,
patch
|
xidorn
:
review+
|
Details | Diff | Splinter Review |
followup to bug 1224251
Assignee | ||
Comment 1•9 years ago
|
||
This means I don't have to carefully count (or copy and paste) 0s when adding new constants.
Attachment #8693436 -
Flags: review?(quanxunzhen)
Comment 2•9 years ago
|
||
Comment on attachment 8693436 [details] [diff] [review] Write nsChangeHint constants using left shifts Review of attachment 8693436 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Two nits: 1. I don't think the parentheses are necessary here. It's probably better remove them. 2. It seems to me in general we add whitespaces around binary operators, although I cannot find this in our coding style guidelines. (FWIW Google has it [1]) [1] https://google.github.io/styleguide/cppguide.html#Horizontal_Whitespace
Attachment #8693436 -
Flags: review?(quanxunzhen) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Yeah, I think you're right about the style. I'll post a second patch to fix the style for existing constants later in the file.
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8693803 -
Flags: review?(quanxunzhen)
Updated•9 years ago
|
Attachment #8693803 -
Flags: review?(quanxunzhen) → review+
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/baff26beaa869743019dba6fb7e179b9eaba8952 Bug 1228921 - Write nsChangeHint constants using left shifts. r=xidorn https://hg.mozilla.org/integration/mozilla-inbound/rev/e2e4a5407b8facaf4d05f9ab43ef2d91d119f546 Bug 1228921 patch 2 - Fix nsRestyleHint constants to match the same style. r=xidorn
Comment 6•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/baff26beaa86 https://hg.mozilla.org/mozilla-central/rev/e2e4a5407b8f
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
•