[BlackBerry] Implement ScrollingCoordinator::frameViewLayoutUpdated()
[WebKit-https.git] / Source / WebCore / platform / graphics / blackberry / LayerWebKitThread.h
index 3fc5ce50760dfca91a84da1799f9f0aeb7634a63..01af9f58a83806b419847f2139db3a74eb729392 100644 (file)
@@ -160,8 +160,21 @@ public:
         setNeedsCommit();
     }
 
-    void setFrameVisibleRect(const IntRect& rect) { m_frameVisibleRect = rect; setNeedsCommit(); }
-    void setFrameContentsSize(const IntSize& size) { m_frameContentsSize = size; setNeedsCommit(); }
+    void setFrameVisibleRect(const IntRect& rect)
+    {
+        if (m_frameVisibleRect == rect)
+            return;
+        m_frameVisibleRect = rect;
+        setNeedsCommit();
+    }
+
+    void setFrameContentsSize(const IntSize& size)
+    {
+        if (m_frameContentsSize == size)
+            return;
+        m_frameContentsSize = size;
+        setNeedsCommit();
+    }
 
     void setContents(Image*);
     Image* contents() const { return m_contents.get(); }