Simplify CFX_FloatRect::Inflate() and Deflate().

Make all the other Inflate() methods to call the 4 parameters version.
Make all the other Deflate() methods to call the 4 parameters version.
Make the 4 parameters version of Deflate() call Inflate().

Change-Id: I1d2702898206bf9845f0bb176c2bf4d5a315cf96
Reviewed-on: https://pdfium-review.googlesource.com/c/43573
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcrt/fx_coordinates.cpp b/core/fxcrt/fx_coordinates.cpp
index e08b13e..f85394c 100644
--- a/core/fxcrt/fx_coordinates.cpp
+++ b/core/fxcrt/fx_coordinates.cpp
@@ -206,11 +206,7 @@
 }
 
 void CFX_FloatRect::Inflate(float x, float y) {
-  Normalize();
-  left -= x;
-  right += x;
-  bottom -= y;
-  top += y;
+  Inflate(x, y, x, y);
 }
 
 void CFX_FloatRect::Inflate(float other_left,
@@ -229,22 +225,14 @@
 }
 
 void CFX_FloatRect::Deflate(float x, float y) {
-  Normalize();
-  left += x;
-  right -= x;
-  bottom += y;
-  top -= y;
+  Deflate(x, y, x, y);
 }
 
 void CFX_FloatRect::Deflate(float other_left,
                             float other_bottom,
                             float other_right,
                             float other_top) {
-  Normalize();
-  left += other_left;
-  bottom += other_bottom;
-  right -= other_right;
-  top -= other_top;
+  Inflate(-other_left, -other_bottom, -other_right, -other_top);
 }
 
 void CFX_FloatRect::Deflate(const CFX_FloatRect& rt) {