OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | |
4 * | |
5 * This library is free software; you can redistribute it and/or | |
6 * modify it under the terms of the GNU Library General Public | |
7 * License as published by the Free Software Foundation; either | |
8 * version 2 of the License, or (at your option) any later version. | |
9 * | |
10 * This library is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 * Library General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Library General Public License | |
16 * along with this library; see the file COPYING.LIB. If not, write to | |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
18 * Boston, MA 02110-1301, USA. | |
19 * | |
20 */ | |
21 | |
22 #include "core/style/StyleInheritedData.h" | |
23 | |
24 #include "core/style/ComputedStyle.h" | |
25 | |
26 namespace blink { | |
27 | |
28 StyleInheritedData::StyleInheritedData() | |
29 : horizontal_border_spacing_( | |
30 ComputedStyle::InitialHorizontalBorderSpacing()), | |
31 vertical_border_spacing_(ComputedStyle::InitialVerticalBorderSpacing()), | |
32 line_height_(ComputedStyle::InitialLineHeight()), | |
33 color_(ComputedStyle::InitialColor()), | |
34 visited_link_color_(ComputedStyle::InitialColor()), | |
35 text_autosizing_multiplier_(1) {} | |
36 | |
37 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { | |
38 return line_height_ == o.line_height_ && font_ == o.font_ && | |
39 color_ == o.color_ && visited_link_color_ == o.visited_link_color_ && | |
40 horizontal_border_spacing_ == o.horizontal_border_spacing_ && | |
41 text_autosizing_multiplier_ == o.text_autosizing_multiplier_ && | |
42 vertical_border_spacing_ == o.vertical_border_spacing_; | |
43 } | |
44 | |
45 } // namespace blink | |
OLD | NEW |