diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2018-07-14 00:55:43 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2018-07-14 00:57:05 +1000 |
commit | 6d28ab11f10f0036a000690a3cbda49fefc83793 (patch) | |
tree | d006c3d72932eab6adf96d76719835b69a662aca /qtwebkit/qt5-webkit-trojita-1.patch | |
parent | b052a3699e07bc963746120a318f847b7aea5310 (diff) | |
download | opt-6d28ab11f10f0036a000690a3cbda49fefc83793.tar.gz opt-6d28ab11f10f0036a000690a3cbda49fefc83793.tar.xz |
qtwebkit: 5.9.1 -> 5.212.0
Diffstat (limited to 'qtwebkit/qt5-webkit-trojita-1.patch')
-rw-r--r-- | qtwebkit/qt5-webkit-trojita-1.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qtwebkit/qt5-webkit-trojita-1.patch b/qtwebkit/qt5-webkit-trojita-1.patch new file mode 100644 index 000000000..b963d5ec4 --- /dev/null +++ b/qtwebkit/qt5-webkit-trojita-1.patch @@ -0,0 +1,34 @@ +From 6faf11215e1af27d35e921ae669aa0251a01a1ab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@digia.com> +Date: Wed, 13 Nov 2013 18:13:36 +0100 +Subject: [PATCH] Trigger layout after resizing the FrameView. + +There are problems with QGLWidget based web plugins due to the fact +that WebKit forces us to relayout during paint events, which in turn +might resize widgets, causing the shared backing store's QImages to +be corrupted and hence causing crashed. + +This patch triggers a layout upon resizing the FrameView, which reduces +the likely hood of resizing plugins during a subsequent paintEvent. + +Task-number: QTBUG-34277 +Change-Id: Id35c72a3cc68ac6633a74fba0669c2d8fbfabc88 +Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com> +--- + Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp +index e6145b6ffb82..941d8df603d9 100644 +--- a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp ++++ b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp +@@ -962,6 +962,9 @@ void QWebFrameAdapter::setViewportSize(const QSize& size) + ASSERT(view); + view->resize(size); + view->adjustViewSize(); ++ ++ if (view->needsLayout()) ++ view->layout(); + } + + |