[CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jun 2017 15:27:30 +0000 (15:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Jun 2017 15:27:30 +0000 (15:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173153

Patch by Daewoong Jang <daewoong.jang@navercorp.com> on 2017-06-12
Reviewed by Carlos Garcia Campos.

* WebProcess/WebPage/AcceleratedDrawingArea.cpp:
(WebKit::AcceleratedDrawingArea::mainFrameContentSizeChanged):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp

index 1cdd58b..1747bf0 100644 (file)
@@ -1,3 +1,13 @@
+2017-06-12  Daewoong Jang  <daewoong.jang@navercorp.com>
+
+        [CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
+        https://bugs.webkit.org/show_bug.cgi?id=173153
+
+        Reviewed by Carlos Garcia Campos.
+
+        * WebProcess/WebPage/AcceleratedDrawingArea.cpp:
+        (WebKit::AcceleratedDrawingArea::mainFrameContentSizeChanged):
+
 2017-06-12  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Prefer to use private WebKitWebView API over WebKitWebViewBase
index c09056b..bf53e6c 100644 (file)
@@ -157,20 +157,14 @@ void AcceleratedDrawingArea::updatePreferences(const WebPreferencesStore& store)
 
 void AcceleratedDrawingArea::mainFrameContentSizeChanged(const IntSize& size)
 {
-    if (m_webPage.useFixedLayout()) {
-        if (m_layerTreeHost)
-            m_layerTreeHost->sizeDidChange(size);
-        else if (m_previousLayerTreeHost)
-            m_previousLayerTreeHost->sizeDidChange(size);
-    } else {
 #if USE(COORDINATED_GRAPHICS_THREADED)
-        if (m_layerTreeHost)
-            m_layerTreeHost->contentsSizeChanged(size);
-        else if (m_previousLayerTreeHost)
-            m_previousLayerTreeHost->contentsSizeChanged(size);
+    if (m_layerTreeHost)
+        m_layerTreeHost->contentsSizeChanged(size);
+    else if (m_previousLayerTreeHost)
+        m_previousLayerTreeHost->contentsSizeChanged(size);
+#else
+    UNUSED_PARAM(size);
 #endif
-    }
-    m_webPage.mainFrame()->pageOverlayController().didChangeDocumentSize();
 }
 
 void AcceleratedDrawingArea::layerHostDidFlushLayers()