diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h b/chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h index 35436292847..8c8a236c58c 100644 --- a/chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h +++ b/chromium/third_party/blink/renderer/core/layout/geometry/physical_rect.h @@ -5,6 +5,7 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_GEOMETRY_PHYSICAL_RECT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_GEOMETRY_PHYSICAL_RECT_H_ +#include "base/compiler_specific.h" #include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/layout/geometry/physical_offset.h" #include "third_party/blink/renderer/core/layout/geometry/physical_rect.h" @@ -97,8 +98,8 @@ struct CORE_EXPORT PhysicalRect { return Contains(point.left, point.top); } - bool Intersects(const PhysicalRect&) const; - bool IntersectsInclusively(const PhysicalRect&) const; + WARN_UNUSED_RESULT bool Intersects(const PhysicalRect&) const; + WARN_UNUSED_RESULT bool IntersectsInclusively(const PhysicalRect&) const; // Whether all edges of the rect are at full-pixel boundaries. // i.e.: EnclosingIntRect(this)) == this @@ -107,10 +108,6 @@ struct CORE_EXPORT PhysicalRect { !size.width.HasFraction() && !size.height.HasFraction(); } - PhysicalRect operator+(const PhysicalOffset&) const { - return {this->offset + offset, size}; - } - void Unite(const PhysicalRect&); void UniteIfNonZero(const PhysicalRect&); void UniteEvenIfEmpty(const PhysicalRect&); |