OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 StyleInheritedData::StyleInheritedData() | 28 StyleInheritedData::StyleInheritedData() |
29 : horizontal_border_spacing_( | 29 : horizontal_border_spacing_( |
30 ComputedStyle::InitialHorizontalBorderSpacing()), | 30 ComputedStyle::InitialHorizontalBorderSpacing()), |
31 vertical_border_spacing_(ComputedStyle::InitialVerticalBorderSpacing()), | 31 vertical_border_spacing_(ComputedStyle::InitialVerticalBorderSpacing()), |
32 line_height_(ComputedStyle::InitialLineHeight()), | 32 line_height_(ComputedStyle::InitialLineHeight()), |
33 color_(ComputedStyle::InitialColor()), | 33 color_(ComputedStyle::InitialColor()), |
34 visited_link_color_(ComputedStyle::InitialColor()), | 34 visited_link_color_(ComputedStyle::InitialColor()), |
35 text_autosizing_multiplier_(1) {} | 35 text_autosizing_multiplier_(1) {} |
36 | 36 |
37 StyleInheritedData::~StyleInheritedData() {} | |
38 | |
39 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) | |
40 : RefCounted<StyleInheritedData>(), | |
41 horizontal_border_spacing_(o.horizontal_border_spacing_), | |
42 vertical_border_spacing_(o.vertical_border_spacing_), | |
43 line_height_(o.line_height_), | |
44 font_(o.font_), | |
45 color_(o.color_), | |
46 visited_link_color_(o.visited_link_color_), | |
47 text_autosizing_multiplier_(o.text_autosizing_multiplier_) {} | |
48 | |
49 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { | 37 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { |
50 return line_height_ == o.line_height_ && font_ == o.font_ && | 38 return line_height_ == o.line_height_ && font_ == o.font_ && |
51 color_ == o.color_ && visited_link_color_ == o.visited_link_color_ && | 39 color_ == o.color_ && visited_link_color_ == o.visited_link_color_ && |
52 horizontal_border_spacing_ == o.horizontal_border_spacing_ && | 40 horizontal_border_spacing_ == o.horizontal_border_spacing_ && |
53 text_autosizing_multiplier_ == o.text_autosizing_multiplier_ && | 41 text_autosizing_multiplier_ == o.text_autosizing_multiplier_ && |
54 vertical_border_spacing_ == o.vertical_border_spacing_; | 42 vertical_border_spacing_ == o.vertical_border_spacing_; |
55 } | 43 } |
56 | 44 |
57 } // namespace blink | 45 } // namespace blink |
OLD | NEW |