summaryrefslogtreecommitdiff
path: root/patches/www-client/chromium-72.0.3626.121/constexpr.patch
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2019-03-08 21:44:56 -0700
committerKenny Ballou <kballou@devnulllabs.io>2019-03-08 21:44:56 -0700
commit3d8c0621df66b34d78334c6cacd9990c6222bf79 (patch)
treea77ae3a7c7cae65882d3bdb9f784732b75960596 /patches/www-client/chromium-72.0.3626.121/constexpr.patch
parent59201188169f51645159ebb2cf0cd52619915c16 (diff)
downloadgentoo.patches-3d8c0621df66b34d78334c6cacd9990c6222bf79.tar.gz
gentoo.patches-3d8c0621df66b34d78334c6cacd9990c6222bf79.tar.xz
Update chromium version
Rename patches, applying for chromium-72-0.3626.121. Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'patches/www-client/chromium-72.0.3626.121/constexpr.patch')
-rw-r--r--patches/www-client/chromium-72.0.3626.121/constexpr.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/www-client/chromium-72.0.3626.121/constexpr.patch b/patches/www-client/chromium-72.0.3626.121/constexpr.patch
new file mode 100644
index 0000000..a9d7416
--- /dev/null
+++ b/patches/www-client/chromium-72.0.3626.121/constexpr.patch
@@ -0,0 +1,25 @@
+description: add constexpr to methods where it is required
+author: Michael Gilbert <mgilbert@debian.org>
+
+--- 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<double>::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_ &&