mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1462672 - Part 2: Make nsDisplayTransform::GetTransformForRendering and DisplayItemClip::ApplyTo const r=mattwoodrow
MozReview-Commit-ID: B9zpHCDeUq3 --HG-- extra : rebase_source : d73737d6d593dbd498e7c958092ce6e7bf1dd97e
This commit is contained in:
parent
d2fbe47a2e
commit
509284a26b
@ -91,7 +91,7 @@ DisplayItemClip::IntersectWith(const DisplayItemClip& aOther)
|
||||
|
||||
void
|
||||
DisplayItemClip::ApplyTo(gfxContext* aContext,
|
||||
int32_t A2D)
|
||||
int32_t A2D) const
|
||||
{
|
||||
ApplyRectTo(aContext, A2D);
|
||||
ApplyRoundedRectClipsTo(aContext, A2D, 0, mRoundedClipRects.Length());
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
// Apply this |DisplayItemClip| to the given gfxContext. Any saving of state
|
||||
// or clearing of other clips must be done by the caller.
|
||||
// See aBegin/aEnd note on ApplyRoundedRectsTo.
|
||||
void ApplyTo(gfxContext* aContext, int32_t A2D);
|
||||
void ApplyTo(gfxContext* aContext, int32_t A2D) const;
|
||||
|
||||
void ApplyRectTo(gfxContext* aContext, int32_t A2D) const;
|
||||
// Applies the rounded rects in this Clip to aContext
|
||||
|
@ -8180,7 +8180,7 @@ nsDisplayTransform::GetInverseTransform() const
|
||||
}
|
||||
|
||||
Matrix4x4
|
||||
nsDisplayTransform::GetTransformForRendering(LayoutDevicePoint* aOutOrigin)
|
||||
nsDisplayTransform::GetTransformForRendering(LayoutDevicePoint* aOutOrigin) const
|
||||
{
|
||||
if (!mFrame->HasPerspective() || mTransformGetter || mIsTransformSeparator) {
|
||||
if (!mTransformGetter && !mIsTransformSeparator && aOutOrigin) {
|
||||
|
@ -6445,8 +6445,7 @@ public:
|
||||
*/
|
||||
const Matrix4x4Flagged& GetTransform() const;
|
||||
const Matrix4x4Flagged& GetInverseTransform() const;
|
||||
|
||||
Matrix4x4 GetTransformForRendering(mozilla::LayoutDevicePoint* aOutOrigin = nullptr);
|
||||
Matrix4x4 GetTransformForRendering(mozilla::LayoutDevicePoint* aOutOrigin = nullptr) const;
|
||||
|
||||
/**
|
||||
* Return the transform that is aggregation of all transform on the
|
||||
|
Loading…
x
Reference in New Issue
Block a user