diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
commit | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch) | |
tree | 9f47ee47c31a0f13f9496879cd88a1042550aa81 /www-client/chromium/files/chromium-82-gcc-constexpr.patch | |
parent | 53cba99042fa967e2a93da9f8db806fe2d035543 (diff) |
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'www-client/chromium/files/chromium-82-gcc-constexpr.patch')
-rw-r--r-- | www-client/chromium/files/chromium-82-gcc-constexpr.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-82-gcc-constexpr.patch b/www-client/chromium/files/chromium-82-gcc-constexpr.patch new file mode 100644 index 000000000000..139b458c1969 --- /dev/null +++ b/www-client/chromium/files/chromium-82-gcc-constexpr.patch @@ -0,0 +1,34 @@ +From 5812cd9bc2c15a034db24e0d2a43cc923d8a66cc Mon Sep 17 00:00:00 2001 +From: Jose Dapena Paz <jdapena@igalia.com> +Date: Thu, 20 Feb 2020 13:00:16 +0100 +Subject: [PATCH] GCC: DOMRect constexpr equal operator depends on non constexpr operators + +Make accessors of DOMRectReadOnly constexpr so the equal operator can be +also constexpr. + +../../third_party/blink/renderer/core/geometry/dom_rect.h: In function ‘constexpr bool blink::operator==(const blink::DOMRect&, const blink::DOMRect&)’: +../../third_party/blink/renderer/core/geometry/dom_rect.h:38:15: error: call to non-‘constexpr’ function ‘double blink::DOMRectReadOnly::x() const’ + +Bug: 819294 +Change-Id: Ic1fed89c5480ce4eedaaf7add2779d000b77cc48 +--- + +diff --git a/third_party/blink/renderer/core/geometry/dom_rect_read_only.h b/third_party/blink/renderer/core/geometry/dom_rect_read_only.h +index 77398f0..dda1f33 100644 +--- a/third_party/blink/renderer/core/geometry/dom_rect_read_only.h ++++ b/third_party/blink/renderer/core/geometry/dom_rect_read_only.h +@@ -30,10 +30,10 @@ + + DOMRectReadOnly(double x, double y, double width, double height); + +- double x() const { return x_; } +- double y() const { return y_; } +- double width() const { return width_; } +- double height() const { return height_; } ++ constexpr double x() const { return x_; } ++ constexpr double y() const { return y_; } ++ constexpr double width() const { return width_; } ++ constexpr double height() const { return height_; } + + double top() const { return std::min(y_, y_ + height_); } + double right() const { return std::max(x_, x_ + width_); } |