qt5-webkit-5.212.0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From f51554bf104ab0491370f66631fe46143a23d5c2 Mon Sep 17 00:00:00 2001
|
||||
From: Konstantin Tokarev <annulen@yandex.ru>
|
||||
Date: Sat, 7 Oct 2017 17:38:32 +0300
|
||||
Subject: [PATCH] [cmake] Fix build with CMake 3.10: -frtti was enabled for
|
||||
wrong file path
|
||||
|
||||
Change-Id: I65d4f491f21c17f6d99a14259988d2ddb0d67105
|
||||
---
|
||||
Source/WebKit/PlatformQt.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake
|
||||
index 61433257a767..edfa57e97ac1 100644
|
||||
--- a/Source/WebKit/PlatformQt.cmake
|
||||
+++ b/Source/WebKit/PlatformQt.cmake
|
||||
@@ -795,6 +795,7 @@ if (COMPILER_IS_GCC_OR_CLANG)
|
||||
set_source_files_properties(
|
||||
qt/Api/qwebdatabase.cpp
|
||||
qt/Api/qwebelement.cpp
|
||||
+ qt/Api/qwebfullscreenrequest.cpp
|
||||
qt/Api/qwebhistory.cpp
|
||||
qt/Api/qwebhistoryinterface.cpp
|
||||
qt/Api/qwebpluginfactory.cpp
|
||||
@@ -804,7 +805,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
|
||||
|
||||
qt/WidgetApi/qgraphicswebview.cpp
|
||||
qt/WidgetApi/qwebframe.cpp
|
||||
- qt/WidgetApi/qwebfullscreenrequest.cpp
|
||||
qt/WidgetApi/qwebinspector.cpp
|
||||
qt/WidgetApi/qwebpage.cpp
|
||||
qt/WidgetApi/qwebview.cpp
|
||||
@@ -0,0 +1,34 @@
|
||||
diff -u -r webkitgtk-2.16.5/Source/WTF/wtf/text/StringImpl.h webkitgtk-2.16.5-gcc7/Source/WTF/wtf/text/StringImpl.h
|
||||
--- webkitgtk-2.16.5/Source/WTF/wtf/text/StringImpl.h 2017-02-20 17:20:15.000000000 +0100
|
||||
+++ webkitgtk-2.16.5-gcc7/Source/WTF/wtf/text/StringImpl.h 2017-06-27 13:13:57.801527350 +0200
|
||||
@@ -581,29 +581,7 @@
|
||||
// FIXME: Does this really belong in StringImpl?
|
||||
template <typename T> static void copyChars(T* destination, const T* source, unsigned numCharacters)
|
||||
{
|
||||
- if (numCharacters == 1) {
|
||||
- *destination = *source;
|
||||
- return;
|
||||
- }
|
||||
-
|
||||
- if (numCharacters <= s_copyCharsInlineCutOff) {
|
||||
- unsigned i = 0;
|
||||
-#if (CPU(X86) || CPU(X86_64))
|
||||
- const unsigned charsPerInt = sizeof(uint32_t) / sizeof(T);
|
||||
-
|
||||
- if (numCharacters > charsPerInt) {
|
||||
- unsigned stopCount = numCharacters & ~(charsPerInt - 1);
|
||||
-
|
||||
- const uint32_t* srcCharacters = reinterpret_cast<const uint32_t*>(source);
|
||||
- uint32_t* destCharacters = reinterpret_cast<uint32_t*>(destination);
|
||||
- for (unsigned j = 0; i < stopCount; i += charsPerInt, ++j)
|
||||
- destCharacters[j] = srcCharacters[j];
|
||||
- }
|
||||
-#endif
|
||||
- for (; i < numCharacters; ++i)
|
||||
- destination[i] = source[i];
|
||||
- } else
|
||||
- memcpy(destination, source, numCharacters * sizeof(T));
|
||||
+ memcpy(destination, source, numCharacters * sizeof(T));
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static void copyChars(UChar* destination, const LChar* source, unsigned numCharacters)
|
||||
@@ -1,7 +1,7 @@
|
||||
diff -ur qtwebkit-5.212.0-alpha2/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp
|
||||
qtwebkit-5.212.0-alpha2-fix-null-pointer-dereference/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp
|
||||
--- qtwebkit-5.212.0-alpha2/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp 2017-06-09 16:11:36.000000000 +0200
|
||||
+++ Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp 2017-10-24 21:44:40.504943501
|
||||
+++ qtwebkit-5.212.0-alpha2-fix-null-pointer-dereference/Source/WebKit/qt/WebCoreSupport/QWebPageAdapter.cpp 2017-10-24 21:44:40.504943501
|
||||
+0200
|
||||
@@ -390,7 +390,10 @@
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From 76420459a13d9440b41864c93cb4ebb404bdab55 Mon Sep 17 00:00:00 2001
|
||||
From: Konstantin Tokarev <annulen@yandex.ru>
|
||||
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
|
||||
--- a/Source/WebKit/qt/WebCoreSupport/QWebFrameAdapter.cpp
|
||||
+++ b/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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user