View | Details | Raw Unified | Return to bug 224215
Collapse All | Expand All

(-)www/qt5-webkit/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=		webkit
3
PORTNAME=		webkit
4
DISTVERSION=		5.212.0-alpha2
4
DISTVERSION=		5.212.0-alpha2
5
PORTREVISION=		4
5
PORTREVISION=		5
6
CATEGORIES=		www
6
CATEGORIES=		www
7
MASTER_SITES=		https://github.com/annulen/${PORTNAME}/releases/download/${DISTNAME}/
7
MASTER_SITES=		https://github.com/annulen/${PORTNAME}/releases/download/${DISTNAME}/
8
PKGNAMEPREFIX=		qt5-
8
PKGNAMEPREFIX=		qt5-
(-)www/qt5-webkit/files/patch-git_6faf112 (+34 lines)
Line 0 Link Here
1
From 6faf11215e1af27d35e921ae669aa0251a01a1ab Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@digia.com>
3
Date: Wed, 13 Nov 2013 18:13:36 +0100
4
Subject: [PATCH] Trigger layout after resizing the FrameView.
5
6
There are problems with QGLWidget based web plugins due to the fact
7
that WebKit forces us to relayout during paint events, which in turn
8
might resize widgets, causing the shared backing store's QImages to
9
be corrupted and hence causing crashed.
10
11
This patch triggers a layout upon resizing the FrameView, which reduces
12
the likely hood of resizing plugins during a subsequent paintEvent.
13
14
Task-number: QTBUG-34277
15
Change-Id: Id35c72a3cc68ac6633a74fba0669c2d8fbfabc88
16
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
17
---
18
 Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp | 3 +++
19
 1 file changed, 3 insertions(+)
20
21
diff --git a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
22
index e6145b6ffb82..941d8df603d9 100644
23
--- Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
24
+++ Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
25
@@ -962,6 +962,9 @@ void QWebFrameAdapter::setViewportSize(const QSize& size)
26
     ASSERT(view);
27
     view->resize(size);
28
     view->adjustViewSize();
29
+
30
+    if (view->needsLayout())
31
+        view->layout();
32
 }
33
 
34
 
(-)www/qt5-webkit/files/patch-git_7642045 (+33 lines)
Line 0 Link Here
1
From 76420459a13d9440b41864c93cb4ebb404bdab55 Mon Sep 17 00:00:00 2001
2
From: Konstantin Tokarev <annulen@yandex.ru>
3
Date: Thu, 12 Oct 2017 20:15:15 +0300
4
Subject: [PATCH] Fix for 451c5a10: run adjustViewSize() after relayout
5
6
Additional note for 451c5a10 + this:
7
8
Since r162515 resize of FrameView that does not have scrollbars (or use
9
overlay scrollbars) does not lead to automatic re-layout. In Trojita
10
contentsSize() is called immediately after QWebPage::setViewportSize(),
11
returning wrong result.
12
13
Change-Id: I543b22d7bbe1514333007e5f99b97a7c12c19c1a
14
---
15
 Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp | 3 +--
16
 1 file changed, 1 insertion(+), 2 deletions(-)
17
18
diff --git a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
19
index 941d8df603d9..df28e9f21f2c 100644
20
--- Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
21
+++ Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
22
@@ -961,10 +961,9 @@ void QWebFrameAdapter::setViewportSize(const QSize& size)
23
     FrameView* view = frame->view();
24
     ASSERT(view);
25
     view->resize(size);
26
-    view->adjustViewSize();
27
-
28
     if (view->needsLayout())
29
         view->layout();
30
+    view->adjustViewSize();
31
 }
32
 
33
 

Return to bug 224215