[EFL][WK2] Remove duplicated code to set size to the DrawingArea.
authoreunmi15.lee@samsung.com <eunmi15.lee@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Apr 2014 17:04:23 +0000 (17:04 +0000)
committereunmi15.lee@samsung.com <eunmi15.lee@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Apr 2014 17:04:23 +0000 (17:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=131972

Reviewed by Andreas Kling.

DrawingArea's size is set in the WebView.cpp when EwkView's size is
changed, so we don't have to set again in the PageViewportController.

* UIProcess/CoordinatedGraphics/PageViewportController.cpp:
(WebKit::PageViewportController::didChangeViewportSize):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/CoordinatedGraphics/PageViewportController.cpp

index 585bd7e..cfb4ec7 100644 (file)
@@ -1,3 +1,16 @@
+2014-04-22  Eunmi Lee  <eunmi15.lee@samsung.com>
+
+        [EFL][WK2] Remove duplicated code to set size to the DrawingArea.
+        https://bugs.webkit.org/show_bug.cgi?id=131972
+
+        Reviewed by Andreas Kling.
+
+        DrawingArea's size is set in the WebView.cpp when EwkView's size is
+        changed, so we don't have to set again in the PageViewportController.
+
+        * UIProcess/CoordinatedGraphics/PageViewportController.cpp:
+        (WebKit::PageViewportController::didChangeViewportSize):
+
 2014-04-22  Tim Horton  <timothy_horton@apple.com>
 
         WKThumbnailView doesn't quite work with topContentInset
index 7b4b945..fa4384e 100644 (file)
@@ -246,10 +246,6 @@ void PageViewportController::didChangeViewportSize(const FloatSize& newSize)
         return;
 
     m_viewportSize = newSize;
-
-    // Let the WebProcess know about the new viewport size, so that
-    // it can resize the content accordingly.
-    m_webPageProxy->drawingArea()->setSize(roundedIntSize(newSize), IntSize(), IntSize());
 }
 
 void PageViewportController::didChangeContentsVisibility(const FloatPoint& position, float scale, const FloatPoint& trajectoryVector)