Title: [156329] trunk/Source/WebKit/qt
Revision
156329
Author
[email protected]
Date
2013-09-24 07:10:38 -0700 (Tue, 24 Sep 2013)

Log Message

[Qt] RepaintRequested signal sometimes not emitted
https://bugs.webkit.org/show_bug.cgi?id=121790

Reviewed by Simon Hausmann.

We should also emit repaintRequested after calling PageClient::update().

* WidgetSupport/PageClientQt.cpp:
(WebCore::PageClientQWidget::repaintViewport):
(WebCore::PageClientQGraphicsWidget::repaintViewport):

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/ChangeLog (156328 => 156329)


--- trunk/Source/WebKit/qt/ChangeLog	2013-09-24 13:14:37 UTC (rev 156328)
+++ trunk/Source/WebKit/qt/ChangeLog	2013-09-24 14:10:38 UTC (rev 156329)
@@ -1,3 +1,16 @@
+2013-09-24  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] RepaintRequested signal sometimes not emitted
+        https://bugs.webkit.org/show_bug.cgi?id=121790
+
+        Reviewed by Simon Hausmann.
+
+        We should also emit repaintRequested after calling PageClient::update().
+
+        * WidgetSupport/PageClientQt.cpp:
+        (WebCore::PageClientQWidget::repaintViewport):
+        (WebCore::PageClientQGraphicsWidget::repaintViewport):
+
 2013-09-22  Sam Weinig  <[email protected]>
 
         CTTE: Use references more in ContainerNode, ContainerNodeAlgorithms and related classes

Modified: trunk/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp (156328 => 156329)


--- trunk/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp	2013-09-24 13:14:37 UTC (rev 156328)
+++ trunk/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp	2013-09-24 14:10:38 UTC (rev 156329)
@@ -64,6 +64,7 @@
 void PageClientQWidget::repaintViewport()
 {
     update(view->rect());
+    QMetaObject::invokeMethod(page, "repaintRequested", Qt::QueuedConnection, Q_ARG(QRect, view->rect()));
 }
 
 void PageClientQWidget::setInputMethodEnabled(bool enable)
@@ -175,6 +176,7 @@
 void PageClientQGraphicsWidget::repaintViewport()
 {
     update(view->boundingRect().toAlignedRect());
+    QMetaObject::invokeMethod(page, "repaintRequested", Qt::QueuedConnection, Q_ARG(QRect, view->boundingRect().toAlignedRect()));
 }
 
 bool PageClientQGraphicsWidget::makeOpenGLContextCurrentIfAvailable()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to