Bug 797393 - Fix FrameMetrics == operator. r=roc
authorChris Lord <chrislord.net@gmail.com>
Wed, 03 Oct 2012 19:51:38 -0400
changeset 109280 1a34413a18f6acdf270d8b61c1bc5d6e112b88cd
parent 109279 ae27310a72af67c6070f7f3a7c58f634c8fce3f3
child 109281 a9ab0881ebe2058140cef8205aeadaf1a263936c
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersroc
bugs797393
milestone18.0a1
Bug 797393 - Fix FrameMetrics == operator. r=roc
gfx/layers/FrameMetrics.h
--- a/gfx/layers/FrameMetrics.h
+++ b/gfx/layers/FrameMetrics.h
@@ -41,20 +41,26 @@ public:
     , mDevPixelsPerCSSPixel(1)
     , mMayHaveTouchListeners(false)
   {}
 
   // Default copy ctor and operator= are fine
 
   bool operator==(const FrameMetrics& aOther) const
   {
-    return (mViewport.IsEqualEdges(aOther.mViewport) &&
-            mScrollOffset == aOther.mScrollOffset &&
-            mDisplayPort.IsEqualEdges(aOther.mDisplayPort) &&
-            mScrollId == aOther.mScrollId);
+    return mCompositionBounds.IsEqualEdges(aOther.mCompositionBounds) &&
+           mContentRect.IsEqualEdges(aOther.mContentRect) &&
+           mDisplayPort.IsEqualEdges(aOther.mDisplayPort) &&
+           mViewport.IsEqualEdges(aOther.mViewport) &&
+           mScrollOffset == aOther.mScrollOffset &&
+           mScrollId == aOther.mScrollId &&
+           mScrollableRect.IsEqualEdges(aOther.mScrollableRect) &&
+           mResolution == aOther.mResolution &&
+           mDevPixelsPerCSSPixel == aOther.mDevPixelsPerCSSPixel &&
+           mMayHaveTouchListeners == aOther.mMayHaveTouchListeners;
   }
   bool operator!=(const FrameMetrics& aOther) const
   {
     return !operator==(aOther);
   }
 
   bool IsDefault() const
   {