mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
e2e8b3d221
commit
fa7b4ca2f6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user