| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/style/AppliedTextDecoration.h" | 5 #include "core/style/AppliedTextDecoration.h" |
| 6 | 6 |
| 7 namespace blink { | 7 namespace blink { |
| 8 | 8 |
| 9 AppliedTextDecoration::AppliedTextDecoration(TextDecoration line, | 9 AppliedTextDecoration::AppliedTextDecoration(TextDecoration line, |
| 10 TextDecorationStyle style, | 10 TextDecorationStyle style, |
| 11 Color color) | 11 Color color) |
| 12 : lines_(line), style_(style), color_(color) {} | 12 : lines_(static_cast<unsigned>(line)), style_(style), color_(color) {} |
| 13 | 13 |
| 14 bool AppliedTextDecoration::operator==(const AppliedTextDecoration& o) const { | 14 bool AppliedTextDecoration::operator==(const AppliedTextDecoration& o) const { |
| 15 return color_ == o.color_ && lines_ == o.lines_ && style_ == o.style_; | 15 return color_ == o.color_ && lines_ == o.lines_ && style_ == o.style_; |
| 16 } | 16 } |
| 17 | 17 |
| 18 } // namespace blink | 18 } // namespace blink |
| OLD | NEW |