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
3 // found in the LICENSE file.
6 #include "core/rendering/style/AppliedTextDecoration.h"
10 AppliedTextDecoration::AppliedTextDecoration(TextDecoration line, TextDecorationStyle style, StyleColor color)
17 AppliedTextDecoration::AppliedTextDecoration(TextDecoration line)
19 , m_style(TextDecorationStyleSolid)
20 , m_color(StyleColor::currentColor())
24 AppliedTextDecoration::AppliedTextDecoration()
25 : m_line(TextDecorationUnderline)
26 , m_style(TextDecorationStyleSolid)
27 , m_color(StyleColor::currentColor())
31 bool AppliedTextDecoration::operator==(const AppliedTextDecoration& o) const
33 return m_color == o.m_color && m_line == o.m_line && m_style == o.m_style;