mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
HaikuWebKit: new version.
This commit is contained in:
@@ -9,12 +9,11 @@ COPYRIGHT="1998-2021 Apple Inc., Google Inc., et al"
|
||||
LICENSE="GNU LGPL v2
|
||||
GNU LGPL v2.1
|
||||
MIT"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/haiku/haikuwebkit/archive/HaikuWebKit-$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="haikuwebkit-$portVersion.tar.gz"
|
||||
SOURCE_DIR="haikuwebkit-HaikuWebKit-$portVersion"
|
||||
CHECKSUM_SHA256="d21f4f6c34862ee25ccdf8f75a66304453a24689c59a9e4ab56cb201dc24f3ec"
|
||||
PATCHES="haikuwebkit-1.8.2.patchset"
|
||||
CHECKSUM_SHA256="82e583267441eea1bdfc640cd680c3d63b945a78b6dbb5d1b3fcfc4e8c444ac3"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2 ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -31,6 +30,7 @@ REQUIRES="
|
||||
lib:libgcrypt$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix >= 66
|
||||
lib:libgpg_error$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
@@ -88,6 +88,7 @@ BUILD_PREREQUIRES="
|
||||
BUILD()
|
||||
{
|
||||
export PKG_CONFIG_LIBDIR="`finddir B_SYSTEM_DIRECTORY`/$relativeDevelopLibDir/pkgconfig"
|
||||
export DISABLE_ASLR=1
|
||||
Tools/Scripts/build-webkit --haiku --no-webkit2 \
|
||||
--cmakeargs="-DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_BUILD_TYPE=Release -DSHOULD_INSTALL_JS_SHELL=ON"
|
||||
}
|
||||
@@ -1,138 +0,0 @@
|
||||
From 6697a67df8732d632161fefdab4ba1523c7d567e Mon Sep 17 00:00:00 2001
|
||||
From: madmax <nobody@haiku-os.org>
|
||||
Date: Wed, 21 Jul 2021 20:22:05 +0000
|
||||
Subject: [PATCH 3/3] haikuwebkit: Fix font disappearing issue
|
||||
|
||||
---
|
||||
Source/WebCore/rendering/TextPainter.h | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Source/WebCore/rendering/TextPainter.h b/Source/WebCore/rendering/TextPainter.h
|
||||
index e4534cbfbf..155cc8ad97 100644
|
||||
--- a/Source/WebCore/rendering/TextPainter.h
|
||||
+++ b/Source/WebCore/rendering/TextPainter.h
|
||||
@@ -64,10 +64,10 @@ public:
|
||||
template<typename LayoutRun>
|
||||
void setGlyphDisplayListIfNeeded(const LayoutRun& run, const PaintInfo& paintInfo, const FontCascade& font, GraphicsContext& context, const TextRun& textRun)
|
||||
{
|
||||
- if (!TextPainter::shouldUseGlyphDisplayList(paintInfo))
|
||||
+ //if (!TextPainter::shouldUseGlyphDisplayList(paintInfo))
|
||||
TextPainter::removeGlyphDisplayList(run);
|
||||
- else
|
||||
- m_glyphDisplayList = GlyphDisplayListCache<LayoutRun>::singleton().get(run, font, context, textRun);
|
||||
+ //else
|
||||
+ // m_glyphDisplayList = GlyphDisplayListCache<LayoutRun>::singleton().get(run, font, context, textRun);
|
||||
}
|
||||
|
||||
template<typename LayoutRun>
|
||||
--
|
||||
2.30.2
|
||||
|
||||
From cdc3353930344f26b6c356d749011d884d5255c9 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Tue, 20 Jul 2021 21:55:51 +0200
|
||||
Subject: [PATCH] Fix downloads not ending.
|
||||
|
||||
Fixes #17087.
|
||||
---
|
||||
Source/WebKitLegacy/haiku/API/WebDownloadPrivate.cpp | 5 +++++
|
||||
Source/WebKitLegacy/haiku/API/WebDownloadPrivate.h | 1 +
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.cpp b/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.cpp
|
||||
index 84af616428..6624918f75 100644
|
||||
--- a/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.cpp
|
||||
+++ b/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.cpp
|
||||
@@ -134,6 +134,11 @@ void WebDownloadPrivate::didReceiveData(ResourceHandle*, const uint8_t* data, un
|
||||
m_progressListener.SendMessage(&message);
|
||||
}
|
||||
|
||||
+void WebDownloadPrivate::didFinishLoading(ResourceHandle* handle, const WebCore::NetworkLoadMetrics&)
|
||||
+{
|
||||
+ handleFinished(handle, B_DOWNLOAD_FINISHED);
|
||||
+}
|
||||
+
|
||||
void WebDownloadPrivate::didFail(ResourceHandle* handle, const ResourceError& /*error*/)
|
||||
{
|
||||
handleFinished(handle, B_DOWNLOAD_FAILED);
|
||||
diff --git a/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.h b/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.h
|
||||
index bc130966d3..ce881dcbf2 100644
|
||||
--- a/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.h
|
||||
+++ b/Source/WebKitLegacy/haiku/API/WebDownloadPrivate.h
|
||||
@@ -62,6 +62,7 @@ public:
|
||||
// ResourceHandleClient implementation
|
||||
virtual void didReceiveResponseAsync(ResourceHandle*, ResourceResponse&&, WTF::CompletionHandler<void()>&&) override;
|
||||
virtual void didReceiveData(ResourceHandle*, const uint8_t*, unsigned, int) override;
|
||||
+ virtual void didFinishLoading(ResourceHandle*, const WebCore::NetworkLoadMetrics&) override;
|
||||
virtual void didFail(ResourceHandle*, const ResourceError&) override;
|
||||
virtual void wasBlocked(ResourceHandle*) override;
|
||||
virtual void cannotShowURL(ResourceHandle*) override;
|
||||
--
|
||||
2.30.2
|
||||
|
||||
From 2aea0ad0c51a4c8dd3234c614d66b7392fd80fec Mon Sep 17 00:00:00 2001
|
||||
From: Pascal Abresch <nep@packageloss.eu>
|
||||
Date: Mon, 19 Jul 2021 16:05:53 +0200
|
||||
Subject: [PATCH] Add dark mode support to directoy view template
|
||||
|
||||
---
|
||||
.../resources/Directory Listing Template.html | 14 +++++++++++++-
|
||||
1 file changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Source/WebCore/platform/haiku/resources/Directory Listing Template.html b/Source/WebCore/platform/haiku/resources/Directory Listing Template.html
|
||||
index e77fcb000d19..b93cdeb2c592 100644
|
||||
--- a/Source/WebCore/platform/haiku/resources/Directory Listing Template.html
|
||||
+++ b/Source/WebCore/platform/haiku/resources/Directory Listing Template.html
|
||||
@@ -1,8 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
+ @media (prefers-color-scheme: dark) {
|
||||
+ :root {
|
||||
+ background-color: #121212;
|
||||
+ }
|
||||
+ body {
|
||||
+ color: #CCC
|
||||
+ }
|
||||
+ }
|
||||
+ @media (prefers-color-scheme: light) {
|
||||
+ body {
|
||||
+ color: #333333
|
||||
+ }
|
||||
+ }
|
||||
body {
|
||||
- color: #333333;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
--
|
||||
2.32.0
|
||||
|
||||
From 0f1e3574c41b3f2945817b26fdcd245468d7dd98 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Thu, 15 Jul 2021 19:57:28 +0200
|
||||
Subject: [PATCH] Fix missing check of statement validity.
|
||||
|
||||
Fixes #17082
|
||||
---
|
||||
Source/WebKitLegacy/haiku/WebCoreSupport/IconDatabase.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Source/WebKitLegacy/haiku/WebCoreSupport/IconDatabase.cpp b/Source/WebKitLegacy/haiku/WebCoreSupport/IconDatabase.cpp
|
||||
index eef3230c4503..14eef5f5c65b 100644
|
||||
--- a/Source/WebKitLegacy/haiku/WebCoreSupport/IconDatabase.cpp
|
||||
+++ b/Source/WebKitLegacy/haiku/WebCoreSupport/IconDatabase.cpp
|
||||
@@ -1090,8 +1090,8 @@ void IconDatabase::performURLImport()
|
||||
// we use it or not). This code works anyway because the IconDatabase downloads icons again if they are older than 4 days,
|
||||
// so if the timestamp goes back in time more than those 30 days we can be sure that the icon was not used at all.
|
||||
auto query = m_syncDB.prepareStatement("SELECT PageURL.url, IconInfo.url, IconInfo.stamp FROM PageURL INNER JOIN IconInfo ON PageURL.iconID=IconInfo.iconID WHERE IconInfo.stamp > (?) ;"_s);
|
||||
- query->bindInt(1, floor((WallTime::now() - notUsedIconExpirationTime).secondsSinceEpoch().seconds()));
|
||||
- if (!query) {
|
||||
+ if (!query || query->bindInt(1, floor((WallTime::now() - notUsedIconExpirationTime).secondsSinceEpoch().seconds())) != SQLITE_OK)
|
||||
+ {
|
||||
LOG_ERROR("Unable to prepare icon url import query");
|
||||
return;
|
||||
}
|
||||
--
|
||||
2.32.0
|
||||
|
||||
Reference in New Issue
Block a user