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 14 matching lines...) Expand all Loading... |
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 visitedLinkColor(ComputedStyle::initialColor()), | 34 visitedLinkColor(ComputedStyle::initialColor()), |
35 textAutosizingMultiplier(1) {} | 35 textAutosizingMultiplier(1), |
| 36 textAutosizingFingerprint(0) {} |
36 | 37 |
37 StyleInheritedData::~StyleInheritedData() {} | 38 StyleInheritedData::~StyleInheritedData() {} |
38 | 39 |
39 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) | 40 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o) |
40 : RefCounted<StyleInheritedData>(), | 41 : RefCounted<StyleInheritedData>(), |
41 horizontal_border_spacing(o.horizontal_border_spacing), | 42 horizontal_border_spacing(o.horizontal_border_spacing), |
42 vertical_border_spacing(o.vertical_border_spacing), | 43 vertical_border_spacing(o.vertical_border_spacing), |
43 line_height(o.line_height), | 44 line_height(o.line_height), |
44 font(o.font), | 45 font(o.font), |
45 color(o.color), | 46 color(o.color), |
46 visitedLinkColor(o.visitedLinkColor), | 47 visitedLinkColor(o.visitedLinkColor), |
47 textAutosizingMultiplier(o.textAutosizingMultiplier) {} | 48 textAutosizingMultiplier(o.textAutosizingMultiplier), |
| 49 textAutosizingFingerprint(o.textAutosizingFingerprint) {} |
48 | 50 |
49 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { | 51 bool StyleInheritedData::operator==(const StyleInheritedData& o) const { |
50 return line_height == o.line_height && font == o.font && color == o.color && | 52 return line_height == o.line_height && font == o.font && color == o.color && |
51 visitedLinkColor == o.visitedLinkColor && | 53 visitedLinkColor == o.visitedLinkColor && |
52 horizontal_border_spacing == o.horizontal_border_spacing && | 54 horizontal_border_spacing == o.horizontal_border_spacing && |
53 textAutosizingMultiplier == o.textAutosizingMultiplier && | 55 textAutosizingMultiplier == o.textAutosizingMultiplier && |
54 vertical_border_spacing == o.vertical_border_spacing; | 56 vertical_border_spacing == o.vertical_border_spacing && |
| 57 textAutosizingFingerprint == o.textAutosizingFingerprint; |
55 } | 58 } |
56 | 59 |
57 } // namespace blink | 60 } // namespace blink |
OLD | NEW |