Bug 1503463 - Part 1: Make TransformClipNode::TransformRect() methods const r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D11251

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Miko Mynttinen 2018-11-08 18:52:08 +00:00
parent e2e8b3d221
commit fa7b4ca2f6

View File

@ -45,7 +45,7 @@ public:
* Transforms and clips |aRect| up to the root transform node.
* |aRect| is expected to be in app units.
*/
nsRect TransformRect(const nsRect& aRect, const int32_t aA2D)
nsRect TransformRect(const nsRect& aRect, const int32_t aA2D) const
{
if (aRect.IsEmpty()) {
return aRect;
@ -66,7 +66,7 @@ public:
* Transforms and clips |aRect| up to the root transform node.
* |aRect| is expected to be in integer pixels.
*/
gfx::IntRect TransformRect(const gfx::IntRect& aRect)
gfx::IntRect TransformRect(const gfx::IntRect& aRect) const
{
if (aRect.IsEmpty()) {
return aRect;
@ -117,7 +117,7 @@ protected:
*/
const gfx::Matrix4x4Flagged& Transform() const { return mTransform; }
void TransformRect(gfx::Rect& aRect)
void TransformRect(gfx::Rect& aRect) const
{
const TransformClipNode* node = this;
while (node) {