summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-26 13:38:34 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-26 13:39:08 +0200
commit915743c5dcade613a71eebec2eaa52b4baeef4ca (patch)
treeab6e213a747438911776f2f1c46687aa29e2e236 /Source
parent102ad5434962aac394add4ea1e7c0c21465b8250 (diff)
downloadqtwebkit-915743c5dcade613a71eebec2eaa52b4baeef4ca.tar.gz
[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): Change-Id: Ib8664ef0b25b7b9c51f3fd32925d018be3906299 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156329 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source')
-rw-r--r--Source/WebKit/qt/WidgetSupport/PageClientQt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp b/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
index 8f486d594..de21c9fd7 100644
--- a/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
+++ b/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
@@ -64,6 +64,7 @@ void PageClientQWidget::update(const QRect & dirtyRect)
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::update(const QRect& dirtyRect)
void PageClientQGraphicsWidget::repaintViewport()
{
update(view->boundingRect().toAlignedRect());
+ QMetaObject::invokeMethod(page, "repaintRequested", Qt::QueuedConnection, Q_ARG(QRect, view->boundingRect().toAlignedRect()));
}
bool PageClientQGraphicsWidget::makeOpenGLContextCurrentIfAvailable()