| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_unpositioned_float.h" | 5 #include "core/layout/ng/ng_unpositioned_float.h" |
| 6 | 6 |
| 7 #include "core/style/ComputedStyle.h" | 7 #include "core/style/ComputedStyle.h" |
| 8 #include "core/style/ComputedStyleConstants.h" | |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 bool NGUnpositionedFloat::IsLeft() const { | 11 bool NGUnpositionedFloat::IsLeft() const { |
| 13 return node->Style().Floating() == EFloat::kLeft; | 12 return node->Style().Floating() == EFloat::kLeft; |
| 14 } | 13 } |
| 15 | 14 |
| 16 bool NGUnpositionedFloat::IsRight() const { | 15 bool NGUnpositionedFloat::IsRight() const { |
| 17 return node->Style().Floating() == EFloat::kRight; | 16 return node->Style().Floating() == EFloat::kRight; |
| 18 } | 17 } |
| 19 | 18 |
| 19 EClear NGUnpositionedFloat::ClearType() const { |
| 20 return node->Style().Clear(); |
| 21 } |
| 22 |
| 20 } // namespace blink | 23 } // namespace blink |
| OLD | NEW |