Update ViewportConfiguration whenever its size attributes change
authormhock@apple.com <mhock@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Oct 2014 17:57:48 +0000 (17:57 +0000)
committermhock@apple.com <mhock@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Oct 2014 17:57:48 +0000 (17:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137682
rdar://problem/18643655

Reviewed by Benjamin Poulain.

* page/ViewportConfiguration.cpp:
(WebCore::ViewportConfiguration::setMinimumLayoutSize):
(WebCore::ViewportConfiguration::setMinimumLayoutSizeForMinimalUI):

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

Source/WebCore/ChangeLog
Source/WebCore/page/ViewportConfiguration.cpp

index 5c70f85..5f0b319 100644 (file)
@@ -1,3 +1,15 @@
+2014-10-14  Martin Hock  <mhock@apple.com>
+
+        Update ViewportConfiguration whenever its size attributes change
+        https://bugs.webkit.org/show_bug.cgi?id=137682
+        rdar://problem/18643655
+
+        Reviewed by Benjamin Poulain.
+
+        * page/ViewportConfiguration.cpp:
+        (WebCore::ViewportConfiguration::setMinimumLayoutSize):
+        (WebCore::ViewportConfiguration::setMinimumLayoutSizeForMinimalUI):
+
 2014-10-14  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Processing Instruction Nodes appear poorly in DOM Tree
index b694370..386349d 100644 (file)
@@ -82,6 +82,7 @@ void ViewportConfiguration::setMinimumLayoutSize(const FloatSize& minimumLayoutS
         return;
 
     m_minimumLayoutSize = minimumLayoutSize;
+    updateConfiguration();
 }
 
 void ViewportConfiguration::setMinimumLayoutSizeForMinimalUI(const FloatSize& minimumLayoutSizeForMinimalUI)
@@ -90,6 +91,7 @@ void ViewportConfiguration::setMinimumLayoutSizeForMinimalUI(const FloatSize& mi
         return;
 
     m_minimumLayoutSizeForMinimalUI = minimumLayoutSizeForMinimalUI;
+    updateConfiguration();
 }
 
 const FloatSize& ViewportConfiguration::activeMinimumLayoutSizeInScrollViewCoordinates() const