Closed Bug 1149215 Opened 5 years ago Closed 5 years ago
Layout Utils::Get Whole Image Destination use CSSInt Size instead of the unit-less ns Int Size .
No description provided.
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.
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.
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.
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+
You need to log in before you can comment on or make changes to this bug.