Closed Bug 1149215 Opened 10 years ago Closed 10 years ago

Make nsLayoutUtils::GetWholeImageDestination use CSSIntSize instead of the unit-less nsIntSize.

Categories

(Core :: Layout, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Flags: in-testsuite-
Aren't those image pixels rather than CSS pixels?
(In reply to David Baron [:dbaron] ⏰UTC-7 from comment #2) > Aren't those image pixels rather than CSS pixels? Yes, they are. As I mentioned in the other bug, Mats, we really need a unit class for image pixels.
Attachment #8585594 - Flags: review?(roc)
OK, I'll leave this one as is while we consider using a separate unit type for image pixels in bug 1149515.
Assignee: mats → nobody
Depends on: 1149515
Comment on attachment 8585594 [details] [diff] [review] fix After the recent discussion in bug 1149222 / bug 1149515, I think CSS pixels is the right unit to use here.
Attachment #8585594 - Flags: review?(dholbert)
Attached patch fix, v2Splinter Review
Actually, let's just remove this method. All it does is convert from CSS pixels to app units. The one caller from XUL can use ToAppUnits() instead.
Assignee: nobody → mats
Attachment #8585594 - Attachment is obsolete: true
Attachment #8585594 - Flags: review?(dholbert)
Attachment #8586794 - Flags: review?(dholbert)
Comment on attachment 8586794 [details] [diff] [review] fix, v2 Looks good. >Bug 1149215 - Remove nsLayoutUtils::GetWholeImageDestination that use unit-less nsIntSize. r=dholbert extreme nit: "unitless" (unhyphenated) is a valid word [despite Firefox underlining it in squiggly red as I type this], so you could do s/unit-less/unitless/ if you like. References: http://ninjawords.com/unitless http://en.wiktionary.org/wiki/unitless
Attachment #8586794 - Flags: review?(dholbert) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: