Bug 970294 - Set our surface offset as a gfxContext device offset instead of a transform so that other callers don't accidentally overwrite it. r=nrc
This commit is contained in:
@@ -961,8 +961,8 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
return;
|
||||
}
|
||||
|
||||
nsRefPtr<gfxContext> groupTarget = new gfxContext(untransformedDT);
|
||||
groupTarget->Translate(gfxPoint(-bounds.x, -bounds.y));
|
||||
nsRefPtr<gfxContext> groupTarget = new gfxContext(untransformedDT,
|
||||
Point(bounds.x, bounds.y));
|
||||
|
||||
PaintSelfOrChildren(paintLayerContext, groupTarget);
|
||||
|
||||
@@ -978,8 +978,7 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||
(aLayer->GetDebugColorIndex() & 4) ? 1.0 : 0.0,
|
||||
1.0);
|
||||
|
||||
nsRefPtr<gfxContext> temp = new gfxContext(untransformedDT);
|
||||
temp->Translate(gfxPoint(-bounds.x, -bounds.y));
|
||||
nsRefPtr<gfxContext> temp = new gfxContext(untransformedDT, Point(bounds.x, bounds.y));
|
||||
temp->SetColor(color);
|
||||
temp->Paint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user