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 f431434b207237f78a041a23472e9a776d166cb9..fec64a5c57f8f656b696ac4a26e8cff4e38ae88f 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.cc |
@@ -11,6 +11,11 @@ LayoutUnit MinAndMaxContentSizes::ShrinkToFit(LayoutUnit available_size) const { |
return std::min(max_content, std::max(min_content, available_size)); |
} |
+bool MinAndMaxContentSizes::operator==( |
+ const MinAndMaxContentSizes& other) const { |
+ return min_content == other.min_content && max_content == other.max_content; |
+} |
+ |
NGPhysicalSize NGLogicalSize::ConvertToPhysical(NGWritingMode mode) const { |
return mode == kHorizontalTopBottom ? NGPhysicalSize(inline_size, block_size) |
: NGPhysicalSize(block_size, inline_size); |