2010-11-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
authorandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Nov 2010 16:58:26 +0000 (16:58 +0000)
committerandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Nov 2010 16:58:26 +0000 (16:58 +0000)
        Reviewed by Andreas Kling.

        [Qt] Early return if setResizesToContentsUsingLayoutSize() is called with already-set size

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::setResizesToContentsUsingLayoutSize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72919 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit2/ChangeLog
WebKit2/WebProcess/WebPage/WebPage.cpp

index 704f731..132e99f 100644 (file)
@@ -1,3 +1,12 @@
+2010-11-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        Reviewed by Andreas Kling.
+
+        [Qt] Early return if setResizesToContentsUsingLayoutSize() is called with already-set size
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
+
 2010-11-29  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Darin Adler.
index 207ed35..0f11c22 100644 (file)
@@ -441,6 +441,9 @@ void WebPage::setActualVisibleContentRect(const IntRect& rect)
 
 void WebPage::setResizesToContentsUsingLayoutSize(const IntSize& targetLayoutSize)
 {
+    if (m_resizesToContentsLayoutSize == targetLayoutSize)
+        return;
+
     m_resizesToContentsLayoutSize = targetLayoutSize;
 
     Frame* frame = m_page->mainFrame();