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 68c50314d995c920476c492b0fa3bb3d65ac5b74..c3c21c28d08ce36ce450430a1c4141a2e6da43de 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.cc |
@@ -171,6 +171,10 @@ NGPhysicalOffset& NGPhysicalOffset::operator-=(const NGPhysicalOffset& other) { |
return *this; |
} |
+bool NGPhysicalOffset::operator==(const NGPhysicalOffset& other) const { |
+ return other.left == left && other.top == top; |
+} |
+ |
bool NGBoxStrut::IsEmpty() const { |
return *this == NGBoxStrut(); |
} |