diff options
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java b/android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java index 8c1670f0f11f..e7fa540a390c 100644 --- a/android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java +++ b/android/source/src/java/org/mozilla/gecko/gfx/RectUtils.java @@ -89,10 +89,9 @@ public final class RectUtils { public static boolean fuzzyEquals(RectF a, RectF b) { if (a == null && b == null) return true; - else if ((a == null && b != null) || (a != null && b == null)) - return false; else - return FloatUtils.fuzzyEquals(a.top, b.top) + return a != null && b != null + && FloatUtils.fuzzyEquals(a.top, b.top) && FloatUtils.fuzzyEquals(a.left, b.left) && FloatUtils.fuzzyEquals(a.right, b.right) && FloatUtils.fuzzyEquals(a.bottom, b.bottom); |