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:
Miko Mynttinen 2018-07-16 21:20:21 +02:00
parent d2fbe47a2e
commit 509284a26b
4 changed files with 4 additions and 5 deletions

View File

@ -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());

View File

@ -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

View File

@ -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) {

View File

@ -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