summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-82-gcc-constexpr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/chromium/files/chromium-82-gcc-constexpr.patch')
-rw-r--r--www-client/chromium/files/chromium-82-gcc-constexpr.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/www-client/chromium/files/chromium-82-gcc-constexpr.patch b/www-client/chromium/files/chromium-82-gcc-constexpr.patch
index 139b458c1969..30a83395d087 100644
--- a/www-client/chromium/files/chromium-82-gcc-constexpr.patch
+++ b/www-client/chromium/files/chromium-82-gcc-constexpr.patch
@@ -14,10 +14,10 @@ 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
+index 0c3f84c..71f193e 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 @@
+@@ -31,10 +31,10 @@ class CORE_EXPORT DOMRectReadOnly : public ScriptWrappable {
DOMRectReadOnly(double x, double y, double width, double height);
@@ -30,5 +30,5 @@ index 77398f0..dda1f33 100644
+ 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_); }
+ double top() const { return geometry_util::NanSafeMin(y_, y_ + height_); }
+ double right() const { return geometry_util::NanSafeMax(x_, x_ + width_); }