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, 2009, 2010 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 "config.h" | 22 #include "config.h" |
23 #include "core/rendering/style/StyleRareInheritedData.h" | 23 #include "core/rendering/style/StyleRareInheritedData.h" |
24 | 24 |
25 #include "core/rendering/style/CursorList.h" | 25 #include "core/rendering/style/CursorList.h" |
26 #include "core/rendering/style/QuotesData.h" | 26 #include "core/rendering/style/QuotesData.h" |
27 #include "core/rendering/style/RenderStyle.h" | 27 #include "core/rendering/style/RenderStyle.h" |
28 #include "core/rendering/style/RenderStyleConstants.h" | |
29 #include "core/rendering/style/ShadowList.h" | 28 #include "core/rendering/style/ShadowList.h" |
30 #include "core/rendering/style/StyleImage.h" | 29 #include "core/rendering/style/StyleImage.h" |
| 30 #include "platform/RenderStyleConstants.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { | 34 struct SameSizeAsStyleRareInheritedData : public RefCounted<SameSizeAsStyleRareI
nheritedData> { |
35 void* styleImage; | 35 void* styleImage; |
36 Color firstColor; | 36 Color firstColor; |
37 float firstFloat; | 37 float firstFloat; |
38 Color colors[5]; | 38 Color colors[5]; |
39 void* ownPtrs[1]; | 39 void* ownPtrs[1]; |
40 AtomicString atomicStrings[5]; | 40 AtomicString atomicStrings[5]; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const | 221 bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
o) const |
222 { | 222 { |
223 if ((!textShadow && o.textShadow) || (textShadow && !o.textShadow)) | 223 if ((!textShadow && o.textShadow) || (textShadow && !o.textShadow)) |
224 return false; | 224 return false; |
225 if (textShadow && o.textShadow && (*textShadow != *o.textShadow)) | 225 if (textShadow && o.textShadow && (*textShadow != *o.textShadow)) |
226 return false; | 226 return false; |
227 return true; | 227 return true; |
228 } | 228 } |
229 | 229 |
230 } // namespace WebCore | 230 } // namespace WebCore |
OLD | NEW |