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)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
35.84 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
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.
![]() |
Assignee | |
Comment 1•11 years ago
|
||
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+
![]() |
Assignee | |
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•