backout a8f3584e7727
authorGeoff Brown <gbrown@mozilla.com>
Wed, 18 Feb 2015 11:07:30 -0700
changeset 326743 a828f3c3e24960a9ddfce7ec547e69a79b06efb7
parent 326742 047daa761fe084b6caf8b90d56ef0cb0b24adec6
child 326744 3ef7664eb19180744513f296cf919131775309ed
push id10169
push userdminor@mozilla.com
push dateThu, 28 Jan 2016 13:10:48 +0000
milestone38.0a1
backs outa8f3584e772709fd2f1b97d5f16c0972c349dfd3
backout a8f3584e7727
mobile/android/base/gfx/GeckoLayerClient.java
--- a/mobile/android/base/gfx/GeckoLayerClient.java
+++ b/mobile/android/base/gfx/GeckoLayerClient.java
@@ -675,17 +675,17 @@ class GeckoLayerClient implements LayerV
         mCurrentViewTransform.fixedLayerMarginRight = mCurrentViewTransformMargins.right;
         mCurrentViewTransform.fixedLayerMarginBottom = mCurrentViewTransformMargins.bottom;
 
         // Offset the view transform so that it renders in the correct place.
         PointF offset = mFrameMetrics.getMarginOffset();
         mCurrentViewTransform.offsetX = offset.x;
         mCurrentViewTransform.offsetY = offset.y;
 
-        if (mRootLayer != null) {
+        if (mRootLayer) {
             mRootLayer.setPositionAndResolution(
                 Math.round(x + mCurrentViewTransform.offsetX),
                 Math.round(y + mCurrentViewTransform.offsetY),
                 Math.round(x + width + mCurrentViewTransform.offsetX),
                 Math.round(y + height + mCurrentViewTransform.offsetY),
                 resolution);
         }