| 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/ng_exclusion.h" | 5 #include "core/layout/ng/ng_exclusion.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 NGExclusion::operator==(const NGExclusion& other) const { | 11 bool NGExclusion::operator==(const NGExclusion& other) const { |
| 12 return std::tie(other.rect, other.type) == std::tie(rect, type); | 12 return std::tie(other.rect, other.type) == std::tie(rect, type); |
| 13 } | 13 } |
| 14 | 14 |
| 15 String NGExclusion::ToString() const { | 15 String NGExclusion::ToString() const { |
| 16 return String::Format("Rect: %s Type: %d", rect.ToString().Ascii().Data(), | 16 return String::Format("Rect: %s Type: %d", rect.ToString().Ascii().Data(), |
| 17 type); | 17 type); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 inline NGExclusions& NGExclusions::operator=(const NGExclusions& other) { | 69 inline NGExclusions& NGExclusions::operator=(const NGExclusions& other) { |
| 70 storage.Clear(); | 70 storage.Clear(); |
| 71 last_left_float = nullptr; | 71 last_left_float = nullptr; |
| 72 last_right_float = nullptr; | 72 last_right_float = nullptr; |
| 73 for (const auto& exclusion : other.storage) | 73 for (const auto& exclusion : other.storage) |
| 74 Add(*exclusion); | 74 Add(*exclusion); |
| 75 return *this; | 75 return *this; |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| OLD | NEW |