summaryrefslogtreecommitdiff
path: root/core/include/fxcrt/fx_coordinates.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-10 23:33:26 -0700
committerLei Zhang <thestig@chromium.org>2015-06-10 23:33:26 -0700
commit2b5e0d5b20654d116045484868c9e015ed698124 (patch)
treee458d5b729c992d58072d19422f7c83b3973d54b /core/include/fxcrt/fx_coordinates.h
parentf726c92cb2cf5739fd5b21e825e5bf510040c62f (diff)
downloadpdfium-2b5e0d5b20654d116045484868c9e015ed698124.tar.xz
Cleanup: Remove uses of "this->" in core/
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1173223002.
Diffstat (limited to 'core/include/fxcrt/fx_coordinates.h')
-rw-r--r--core/include/fxcrt/fx_coordinates.h34
1 files changed, 20 insertions, 14 deletions
diff --git a/core/include/fxcrt/fx_coordinates.h b/core/include/fxcrt/fx_coordinates.h
index c98ece9e07..779f1722b2 100644
--- a/core/include/fxcrt/fx_coordinates.h
+++ b/core/include/fxcrt/fx_coordinates.h
@@ -694,21 +694,24 @@ public:
top += y;
}
- void Inflate(FX_FLOAT left, FX_FLOAT bottom, FX_FLOAT right, FX_FLOAT top)
+ void Inflate(FX_FLOAT other_left,
+ FX_FLOAT other_bottom,
+ FX_FLOAT other_right,
+ FX_FLOAT other_top)
{
Normalize();
- this->left -= left;
- this->bottom -= bottom;
- this->right += right;
- this->top += top;
+ left -= other_left;
+ bottom -= other_bottom;
+ right += other_right;
+ top += other_top;
}
- void Inflate(const CFX_FloatRect &rt)
+ void Inflate(const CFX_FloatRect &rt)
{
Inflate(rt.left, rt.bottom, rt.right, rt.top);
}
- void Deflate(FX_FLOAT x, FX_FLOAT y)
+ void Deflate(FX_FLOAT x, FX_FLOAT y)
{
Normalize();
left += x;
@@ -717,21 +720,24 @@ public:
top -= y;
}
- void Deflate(FX_FLOAT left, FX_FLOAT bottom, FX_FLOAT right, FX_FLOAT top)
+ void Deflate(FX_FLOAT other_left,
+ FX_FLOAT other_bottom,
+ FX_FLOAT other_right,
+ FX_FLOAT other_top)
{
Normalize();
- this->left += left;
- this->bottom += bottom;
- this->right -= right;
- this->top -= top;
+ left += other_left;
+ bottom += other_bottom;
+ right -= other_right;
+ top -= other_top;
}
- void Deflate(const CFX_FloatRect &rt)
+ void Deflate(const CFX_FloatRect &rt)
{
Deflate(rt.left, rt.bottom, rt.right, rt.top);
}
- void Translate(FX_FLOAT e, FX_FLOAT f)
+ void Translate(FX_FLOAT e, FX_FLOAT f)
{
left += e;
right += e;