Title: [242625] trunk/Source/WebKit
Revision
242625
Author
[email protected]
Date
2019-03-07 17:35:23 -0800 (Thu, 07 Mar 2019)

Log Message

[WinCairo][WebKit] Nothing is drawn after Web process crashed
https://bugs.webkit.org/show_bug.cgi?id=195399

Reviewed by Alex Christensen.

PageClientImpl::viewSize returned 0x0 size after Web process
crashed. Restored the original implementation using GetClientRect
(Bug 52175).

* UIProcess/win/PageClientImpl.cpp:
(WebKit::PageClientImpl::viewSize):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (242624 => 242625)


--- trunk/Source/WebKit/ChangeLog	2019-03-08 00:52:57 UTC (rev 242624)
+++ trunk/Source/WebKit/ChangeLog	2019-03-08 01:35:23 UTC (rev 242625)
@@ -1,3 +1,17 @@
+2019-03-07  Fujii Hironori  <[email protected]>
+
+        [WinCairo][WebKit] Nothing is drawn after Web process crashed
+        https://bugs.webkit.org/show_bug.cgi?id=195399
+
+        Reviewed by Alex Christensen.
+
+        PageClientImpl::viewSize returned 0x0 size after Web process
+        crashed. Restored the original implementation using GetClientRect
+        (Bug 52175).
+
+        * UIProcess/win/PageClientImpl.cpp:
+        (WebKit::PageClientImpl::viewSize):
+
 2019-03-07  Said Abou-Hallawa  <[email protected]>
 
         requestAnimationFrame should execute before the next frame

Modified: trunk/Source/WebKit/UIProcess/win/PageClientImpl.cpp (242624 => 242625)


--- trunk/Source/WebKit/UIProcess/win/PageClientImpl.cpp	2019-03-08 00:52:57 UTC (rev 242624)
+++ trunk/Source/WebKit/UIProcess/win/PageClientImpl.cpp	2019-03-08 01:35:23 UTC (rev 242625)
@@ -67,9 +67,10 @@
 
 WebCore::IntSize PageClientImpl::viewSize()
 {
-    if (m_view.drawingArea())
-        return m_view.drawingArea()->size();
-    return IntSize();
+    RECT clientRect;
+    GetClientRect(m_view.window(), &clientRect);
+
+    return IntRect(clientRect).size();
 }
 
 bool PageClientImpl::isViewWindowActive()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to