Closed Bug 1027645 Opened 11 years ago Closed 11 years ago

Eliminate all nsRenderingContext::AppUnitsPerDevPixel() callers and all non-propagating nsRenderingContext::DeviceContext() callers

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

This patch eliminate all nsRenderingContext::AppUnitsPerDevPixel() callers and all non-propagating nsRenderingContext::DeviceContext() callers. I want this now mostly in order to have an aPresContext in DrawImageInternal() so that I can easily fix bug 1003505.
Attached patch patchSplinter Review
Assignee: nobody → jwatt
Attachment #8442824 - Flags: review?(roc)
Comment on attachment 8442824 [details] [diff] [review] patch Review of attachment 8442824 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/base/FrameLayerBuilder.cpp @@ +3569,5 @@ > { > bool snap; > nsRect appUnitBounds = aItem->GetBounds(aBuilder, &snap); > gfxRect bounds(appUnitBounds.x, appUnitBounds.y, appUnitBounds.width, appUnitBounds.height); > + bounds.ScaleInverse(aPresContext->DeviceContext()->AppUnitsPerDevPixel()); Just aPresContext->AppUnitsPerDevPixel() ::: layout/base/nsLayoutUtils.cpp @@ +5030,5 @@ > if (aDest.Contains(aFill)) { > aImageFlags |= imgIContainer::FLAG_CLAMP; > } > + int32_t appUnitsPerDevPixel = > + aPresContext->DeviceContext()->AppUnitsPerDevPixel(); ditto @@ +5062,5 @@ > const nsPoint& aAnchor, > const nsRect& aDirty) > { > + int32_t appUnitsPerDevPixel = > + aPresContext->DeviceContext()->AppUnitsPerDevPixel(); ditto @@ +5149,5 @@ > // We choose a size for vector images that emulates a raster image which > // is perfectly sized for the destination rect: each pixel in the image > // maps exactly to a single pixel on-screen. > + nscoord appUnitsPerDevPx = > + aPresContext->DeviceContext()->AppUnitsPerDevPixel(); ditto
Attachment #8442824 - Flags: review?(roc) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Depends on: 1030843
Blocks: 1087958
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: