From owner-svn-ports-all@freebsd.org Sat Dec 16 11:57:08 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D5F3EA4E21; Sat, 16 Dec 2017 11:57:08 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 166E51FC9; Sat, 16 Dec 2017 11:57:08 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBGBv7ch061246; Sat, 16 Dec 2017 11:57:07 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBGBv7hr061243; Sat, 16 Dec 2017 11:57:07 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201712161157.vBGBv7hr061243@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 16 Dec 2017 11:57:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456467 - in head/www/qt5-webkit: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/www/qt5-webkit: . files X-SVN-Commit-Revision: 456467 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2017 11:57:08 -0000 Author: tcberner Date: Sat Dec 16 11:57:06 2017 New Revision: 456467 URL: https://svnweb.freebsd.org/changeset/ports/456467 Log: www/qt5-webkit add upstream patch to fix mail/trojita PR: 224215 Submitted by: tcberner Reported by: Laurent Cimon Added: head/www/qt5-webkit/files/patch-git_6faf112 (contents, props changed) head/www/qt5-webkit/files/patch-git_7642045 (contents, props changed) Modified: head/www/qt5-webkit/Makefile Modified: head/www/qt5-webkit/Makefile ============================================================================== --- head/www/qt5-webkit/Makefile Sat Dec 16 11:45:19 2017 (r456466) +++ head/www/qt5-webkit/Makefile Sat Dec 16 11:57:06 2017 (r456467) @@ -2,7 +2,7 @@ PORTNAME= webkit DISTVERSION= 5.212.0-alpha2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= www MASTER_SITES= https://github.com/annulen/${PORTNAME}/releases/download/${DISTNAME}/ PKGNAMEPREFIX= qt5- Added: head/www/qt5-webkit/files/patch-git_6faf112 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/qt5-webkit/files/patch-git_6faf112 Sat Dec 16 11:57:06 2017 (r456467) @@ -0,0 +1,34 @@ +From 6faf11215e1af27d35e921ae669aa0251a01a1ab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20Br=C3=BCning?= +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 +--- + 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 +--- Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp ++++ 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(); + } + + Added: head/www/qt5-webkit/files/patch-git_7642045 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/qt5-webkit/files/patch-git_7642045 Sat Dec 16 11:57:06 2017 (r456467) @@ -0,0 +1,33 @@ +From 76420459a13d9440b41864c93cb4ebb404bdab55 Mon Sep 17 00:00:00 2001 +From: Konstantin Tokarev +Date: Thu, 12 Oct 2017 20:15:15 +0300 +Subject: [PATCH] Fix for 451c5a10: run adjustViewSize() after relayout + +Additional note for 451c5a10 + this: + +Since r162515 resize of FrameView that does not have scrollbars (or use +overlay scrollbars) does not lead to automatic re-layout. In Trojita +contentsSize() is called immediately after QWebPage::setViewportSize(), +returning wrong result. + +Change-Id: I543b22d7bbe1514333007e5f99b97a7c12c19c1a +--- + Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp b/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp +index 941d8df603d9..df28e9f21f2c 100644 +--- Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp ++++ Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp +@@ -961,10 +961,9 @@ void QWebFrameAdapter::setViewportSize(const QSize& size) + FrameView* view = frame->view(); + ASSERT(view); + view->resize(size); +- view->adjustViewSize(); +- + if (view->needsLayout()) + view->layout(); ++ view->adjustViewSize(); + } + +