| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/layout/ng/geometry/ng_box_strut.h" | 5 #include "core/layout/ng/geometry/ng_box_strut.h" |
| 6 | 6 |
| 7 #include "wtf/text/WTFString.h" | 7 #include "platform/wtf/text/WTFString.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 bool NGBoxStrut::IsEmpty() const { | 11 bool NGBoxStrut::IsEmpty() const { |
| 12 return *this == NGBoxStrut(); | 12 return *this == NGBoxStrut(); |
| 13 } | 13 } |
| 14 | 14 |
| 15 bool NGBoxStrut::operator==(const NGBoxStrut& other) const { | 15 bool NGBoxStrut::operator==(const NGBoxStrut& other) const { |
| 16 return std::tie(other.inline_start, other.inline_end, other.block_start, | 16 return std::tie(other.inline_start, other.inline_end, other.block_start, |
| 17 other.block_end) == | 17 other.block_end) == |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 return String::Format("Inline: (%d %d) Block: (%d %d)", inline_start.ToInt(), | 47 return String::Format("Inline: (%d %d) Block: (%d %d)", inline_start.ToInt(), |
| 48 inline_end.ToInt(), block_start.ToInt(), | 48 inline_end.ToInt(), block_start.ToInt(), |
| 49 block_end.ToInt()); | 49 block_end.ToInt()); |
| 50 } | 50 } |
| 51 | 51 |
| 52 std::ostream& operator<<(std::ostream& stream, const NGBoxStrut& value) { | 52 std::ostream& operator<<(std::ostream& stream, const NGBoxStrut& value) { |
| 53 return stream << value.ToString(); | 53 return stream << value.ToString(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| OLD | NEW |