diff options
author | Sam James <sam@gentoo.org> | 2022-12-04 23:38:13 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-04 23:38:13 +0000 |
commit | d7c445871003a62c278c8e1177df10621662513e (patch) | |
tree | d1828002ec7db5bc37b10198c434cb352f74ce41 /www-client | |
parent | dev-python/shiboken2: Stabilize 5.15.7 amd64, #884349 (diff) | |
download | gentoo-d7c445871003a62c278c8e1177df10621662513e.tar.gz gentoo-d7c445871003a62c278c8e1177df10621662513e.tar.bz2 gentoo-d7c445871003a62c278c8e1177df10621662513e.zip |
www-client/chromium: fix build with GCC
Closes: https://bugs.gentoo.org/884197
Thanks-to: Stephan Hartmann <sultan@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium/chromium-108.0.5359.94.ebuild | 1 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-108-DocumentLoader-private.patch | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/www-client/chromium/chromium-108.0.5359.94.ebuild b/www-client/chromium/chromium-108.0.5359.94.ebuild index 98e568b9d30a..99327ea17821 100644 --- a/www-client/chromium/chromium-108.0.5359.94.ebuild +++ b/www-client/chromium/chromium-108.0.5359.94.ebuild @@ -328,6 +328,7 @@ src_prepare() { "${FILESDIR}/chromium-107-system-zlib.patch" "${FILESDIR}/chromium-108-EnumTable-crash.patch" "${FILESDIR}/chromium-108-revert-GlobalMediaControlsCastStartStop.patch" + "${FILESDIR}/chromium-108-DocumentLoader-private.patch" "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch" "${FILESDIR}/chromium-shim_headers.patch" "${FILESDIR}/chromium-cross-compile.patch" diff --git a/www-client/chromium/files/chromium-108-DocumentLoader-private.patch b/www-client/chromium/files/chromium-108-DocumentLoader-private.patch new file mode 100644 index 000000000000..1ea2116edc1c --- /dev/null +++ b/www-client/chromium/files/chromium-108-DocumentLoader-private.patch @@ -0,0 +1,36 @@ +https://bugs.gentoo.org/884197 +--- a/third_party/blink/renderer/core/loader/document_loader.cc ++++ b/third_party/blink/renderer/core/loader/document_loader.cc +@@ -155,6 +155,11 @@ + #include "third_party/blink/renderer/platform/wtf/vector.h" + + namespace blink { ++ ++struct DecodedBodyDataWrap { ++ using DecodedBodyDataType = DocumentLoader::DecodedBodyData; ++}; ++ + namespace { + + Vector<OriginTrialFeature> CopyInitiatorOriginTrials( +@@ -261,7 +266,7 @@ struct SameSizeAsDocumentLoader + bool finish_loading_when_parser_resumed; + bool in_commit_data; + scoped_refptr<SharedBuffer> data_buffer; +- Vector<DocumentLoader::DecodedBodyData> decoded_data_buffer_; ++ Vector<blink::DecodedBodyDataWrap::DecodedBodyDataType> decoded_data_buffer_; + base::UnguessableToken devtools_navigation_token; + LoaderFreezeMode defers_loading; + bool last_navigation_had_transient_user_activation; +--- a/third_party/blink/renderer/core/loader/document_loader.h ++++ b/third_party/blink/renderer/core/loader/document_loader.h +@@ -467,7 +467,7 @@ class CORE_EXPORT DocumentLoader : public GarbageCollected<DocumentLoader>, + Member<MHTMLArchive> archive_; + + private: +- friend struct SameSizeAsDocumentLoader; ++ friend struct DecodedBodyDataWrap; + class BodyData; + class EncodedBodyData; + class DecodedBodyData; + |