| Index: third_party/WebKit/Source/core/layout/ng/ng_units.cc | 
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.cc b/third_party/WebKit/Source/core/layout/ng/ng_units.cc | 
| index 5537f4b37d567414e58bb74a1b4396480b7bf67a..ac763e530bd01282623aa027b0387d95aa7f0ab7 100644 | 
| --- a/third_party/WebKit/Source/core/layout/ng/ng_units.cc | 
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_units.cc | 
| @@ -28,6 +28,13 @@ bool NGLogicalRect::IsEmpty() const { | 
| return *this == NGLogicalRect(); | 
| } | 
|  | 
| +bool NGLogicalRect::IsWithin(const NGLogicalRect& other) const { | 
| +  return !(InlineEndOffset() <= other.InlineStartOffset() || | 
| +           BlockEndOffset() <= other.BlockStartOffset() || | 
| +           InlineStartOffset() >= other.InlineEndOffset() || | 
| +           BlockStartOffset() >= other.BlockEndOffset()); | 
| +} | 
| + | 
| bool NGLogicalRect::operator==(const NGLogicalRect& other) const { | 
| return std::tie(other.offset, other.size) == std::tie(offset, size); | 
| } | 
|  |