Closed
Bug 1221610
Opened 9 years ago
Closed 9 years ago
Typedef nsIntMargin to gfx::IntMargin
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.85 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
nsIntMargin and gfx::IntMargin are equivalent, but currently are distinct types. This distinction can be removed.
Assignee | ||
Comment 1•9 years ago
|
||
This introduces a difference between nsMargin and nsIntMargin, which isn't
great, but it also reduces the size of gfx2DGlue.h which I figure is more
important.
Attachment #8683158 -
Flags: review?(jmuizelaar)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Comment 2•9 years ago
|
||
Comment on attachment 8683158 [details] [diff] [review]
Typedef nsIntMargin to gfx::IntMargin
Review of attachment 8683158 [details] [diff] [review]:
-----------------------------------------------------------------
What's the difference that it introduces?
Attachment #8683158 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 3•9 years ago
|
||
> What's the difference that it introduces?
Sorry for being unclear: both nsMargin and nsIntMargin used to have very similar definitions in nsMargin.h, but now nsIntMargin is typedef'd to a different type, whereas nsMargin keeps the old definition. Not a big deal.
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0135c32a720c4f5460e5201d3da7b47b5e0f6657
Bug 1221610 - Remove ToIntMargin(). r=jrmuizel.
Assignee | ||
Comment 5•9 years ago
|
||
Just as I was about to push my patch I discovered that Botond had done exactly the same thing in bug 1220898! Except he didn't remove ToIntMargin(), so I landed that remnant.
Comment 6•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•