genode/qt4/src/lib/qt4/patches/qt4_renderwidget.patch

26 lines
1.2 KiB
Diff

- revert a change introduced in Qt 4.7 that caused the mouse mask not being updated when loading a Nitpicker plugin in Arora
From: Christian Prochaska <christian.prochaska@genode-labs.com>
---
.../Source/WebCore/rendering/RenderWidget.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/3rdparty/webkit/Source/WebCore/rendering/RenderWidget.cpp b/src/3rdparty/webkit/Source/WebCore/rendering/RenderWidget.cpp
index 5a00374..025f921 100644
--- a/src/3rdparty/webkit/Source/WebCore/rendering/RenderWidget.cpp
+++ b/src/3rdparty/webkit/Source/WebCore/rendering/RenderWidget.cpp
@@ -291,6 +291,11 @@ void RenderWidget::paint(PaintInfo& paintInfo, int tx, int ty)
}
if (m_widget) {
+ // Move the widget if necessary. We normally move and resize widgets during layout, but sometimes
+ // widgets can move without layout occurring (most notably when you scroll a document that
+ // contains fixed positioned elements).
+ m_widget->move(tx + borderLeft() + paddingLeft(), ty + borderTop() + paddingTop());
+
// Tell the widget to paint now. This is the only time the widget is allowed
// to paint itself. That way it will composite properly with z-indexed layers.
if (m_substituteImage)