Closed Bug 1175800 Opened 4 years ago Closed 4 years ago

PositionCoord typedef in nsComputedStyle.cpp conflicts with one in nsRuleNode.cpp

Categories

(Core :: DOM: CSS Object Model, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
In nsComputedStyle.cpp we have:

  typedef const nsStyleBackground::Position::Coord PositionCoord;

and in nsRuleNode.cpp:

  typedef nsStyleBackground::Position::PositionCoord PositionCoord;

both at the top level, and these conflict when unified compilation brings these two files into the same translation unit.

I think we can just get rid of the typedef in nsComputedStyle.cpp (and the other two near it), as they're not bringing much benefit anyway.
Attachment #8624030 - Flags: review?(bzbarsky)
Assignee: nobody → cam
Status: NEW → ASSIGNED
Comment on attachment 8624030 [details] [diff] [review]
patch

r=me
Attachment #8624030 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/d80bdc49a0d5
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.