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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #include "core/style/StyleSurroundData.h" | 22 #include "core/style/StyleSurroundData.h" |
23 | 23 |
24 namespace blink { | 24 namespace blink { |
25 | 25 |
26 StyleSurroundData::StyleSurroundData() | 26 StyleSurroundData::StyleSurroundData() |
27 : margin_left_(kFixed), | 27 : margin_left_(kFixed), |
28 margin_right_(kFixed), | 28 margin_right_(kFixed), |
29 margin_top_(kFixed), | 29 margin_top_(kFixed), |
30 margin_bottom_(kFixed), | 30 margin_bottom_(kFixed), |
31 padding_(kFixed) {} | 31 padding_left_(kFixed), |
| 32 padding_right_(kFixed), |
| 33 padding_top_(kFixed), |
| 34 padding_bottom_(kFixed) {} |
32 | 35 |
33 StyleSurroundData::StyleSurroundData(const StyleSurroundData& o) | 36 StyleSurroundData::StyleSurroundData(const StyleSurroundData& o) |
34 : RefCounted<StyleSurroundData>(), | 37 : RefCounted<StyleSurroundData>(), |
35 left_(o.left_), | 38 left_(o.left_), |
36 right_(o.right_), | 39 right_(o.right_), |
37 top_(o.top_), | 40 top_(o.top_), |
38 bottom_(o.bottom_), | 41 bottom_(o.bottom_), |
39 margin_left_(o.margin_left_), | 42 margin_left_(o.margin_left_), |
40 margin_right_(o.margin_right_), | 43 margin_right_(o.margin_right_), |
41 margin_top_(o.margin_top_), | 44 margin_top_(o.margin_top_), |
42 margin_bottom_(o.margin_bottom_), | 45 margin_bottom_(o.margin_bottom_), |
43 padding_(o.padding_), | 46 padding_left_(o.padding_left_), |
| 47 padding_right_(o.padding_right_), |
| 48 padding_top_(o.padding_top_), |
| 49 padding_bottom_(o.padding_bottom_), |
44 border_(o.border_) {} | 50 border_(o.border_) {} |
45 | 51 |
46 bool StyleSurroundData::operator==(const StyleSurroundData& o) const { | 52 bool StyleSurroundData::operator==(const StyleSurroundData& o) const { |
47 return (left_ == o.left_ && right_ == o.right_ && top_ == o.top_ && | 53 return (left_ == o.left_ && right_ == o.right_ && top_ == o.top_ && |
48 bottom_ == o.bottom_) && | 54 bottom_ == o.bottom_) && |
49 (margin_left_ == o.margin_left_ && margin_right_ == o.margin_right_ && | 55 (margin_left_ == o.margin_left_ && margin_right_ == o.margin_right_ && |
50 margin_top_ == o.margin_top_ && margin_bottom_ == o.margin_bottom_) && | 56 margin_top_ == o.margin_top_ && margin_bottom_ == o.margin_bottom_) && |
51 padding_ == o.padding_ && border_ == o.border_; | 57 (padding_left_ == o.padding_left_ && |
| 58 padding_right_ == o.padding_right_ && |
| 59 padding_top_ == o.padding_top_ && |
| 60 padding_bottom_ == o.padding_bottom_) && |
| 61 border_ == o.border_; |
52 } | 62 } |
53 | 63 |
54 } // namespace blink | 64 } // namespace blink |
OLD | NEW |