From 59201188169f51645159ebb2cf0cd52619915c16 Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Sun, 24 Feb 2019 22:49:16 -0700 Subject: Add chromium-72 patches from debian project Collect a number of patches, specifically, `fixes` and `gcc6` patches for compiling chromium-72. [0]: https://salsa.debian.org/chromium-team/chromium/tree/master/debian/patches Signed-off-by: Kenny Ballou --- .../chromium-72.0.3626.96/constexpr.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 patches/www-client/chromium-72.0.3626.96/constexpr.patch (limited to 'patches/www-client/chromium-72.0.3626.96/constexpr.patch') diff --git a/patches/www-client/chromium-72.0.3626.96/constexpr.patch b/patches/www-client/chromium-72.0.3626.96/constexpr.patch new file mode 100644 index 0000000..a9d7416 --- /dev/null +++ b/patches/www-client/chromium-72.0.3626.96/constexpr.patch @@ -0,0 +1,25 @@ +description: add constexpr to methods where it is required +author: Michael Gilbert + +--- a/third_party/blink/renderer/core/animation/animation_time_delta.h ++++ b/third_party/blink/renderer/core/animation/animation_time_delta.h +@@ -53,7 +53,7 @@ class CORE_EXPORT AnimationTimeDelta { + return AnimationTimeDelta(std::numeric_limits::infinity()); + } + +- double InSecondsF() const { return delta_; } ++ constexpr double InSecondsF() const { return delta_; } + double InMillisecondsF() const { return delta_ * 1000; } + + bool is_max() const { +--- a/third_party/blink/renderer/core/layout/ng/inline/ng_baseline.cc ++++ b/third_party/blink/renderer/core/layout/ng/inline/ng_baseline.cc +@@ -11,7 +11,7 @@ + namespace blink { + + const unsigned NGBaselineRequest::kTypeIdCount; +-const LayoutUnit NGBaselineList::kEmptyOffset; ++constexpr LayoutUnit NGBaselineList::kEmptyOffset; + + bool NGBaselineRequest::operator==(const NGBaselineRequest& other) const { + return algorithm_type_ == other.algorithm_type_ && -- cgit v1.2.1