| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 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 | 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, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "core/style/StyleInheritedData.h" | 22 #include "core/style/StyleInheritedData.h" |
| 23 | 23 |
| 24 #include "core/style/ComputedStyle.h" | 24 #include "core/style/ComputedStyle.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 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() {} | 37 StyleInheritedData::~StyleInheritedData() {} |
| 38 | 38 |
| 39 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) | 39 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) |
| 40 : RefCounted<StyleInheritedData>(), | 40 : RefCounted<StyleInheritedData>(), |
| 41 horizontal_border_spacing(o.horizontal_border_spacing), | 41 horizontal_border_spacing_(o.horizontal_border_spacing_), |
| 42 vertical_border_spacing(o.vertical_border_spacing), | 42 vertical_border_spacing_(o.vertical_border_spacing_), |
| 43 line_height(o.line_height), | 43 line_height_(o.line_height_), |
| 44 font(o.font), | 44 font_(o.font_), |
| 45 color(o.color), | 45 color_(o.color_), |
| 46 visited_link_color(o.visited_link_color), | 46 visited_link_color_(o.visited_link_color_), |
| 47 text_autosizing_multiplier(o.text_autosizing_multiplier) {} | 47 text_autosizing_multiplier_(o.text_autosizing_multiplier_) {} |
| 48 | 48 |
| 49 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { | 49 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { |
| 50 return line_height == o.line_height && font == o.font && color == o.color && | 50 return line_height_ == o.line_height_ && font_ == o.font_ && |
| 51 visited_link_color == o.visited_link_color && | 51 color_ == o.color_ && visited_link_color_ == o.visited_link_color_ && |
| 52 horizontal_border_spacing == o.horizontal_border_spacing && | 52 horizontal_border_spacing_ == o.horizontal_border_spacing_ && |
| 53 text_autosizing_multiplier == o.text_autosizing_multiplier && | 53 text_autosizing_multiplier_ == o.text_autosizing_multiplier_ && |
| 54 vertical_border_spacing == o.vertical_border_spacing; | 54 vertical_border_spacing_ == o.vertical_border_spacing_; |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| OLD | NEW |