| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
| 19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
| 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef StyleRareInheritedData_h | 25 #ifndef StyleRareInheritedData_h |
| 26 #define StyleRareInheritedData_h | 26 #define StyleRareInheritedData_h |
| 27 | 27 |
| 28 #include "core/css/StyleColor.h" | 28 #include "core/css/StyleColor.h" |
| 29 #include "core/rendering/style/DataRef.h" | 29 #include "core/rendering/style/DataRef.h" |
| 30 #include "core/rendering/style/RefVector.h" |
| 30 #include "platform/Length.h" | 31 #include "platform/Length.h" |
| 31 #include "platform/graphics/Color.h" | 32 #include "platform/graphics/Color.h" |
| 32 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
| 33 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
| 34 #include "wtf/text/AtomicString.h" | 35 #include "wtf/text/AtomicString.h" |
| 35 | 36 |
| 36 namespace WebCore { | 37 namespace WebCore { |
| 37 | 38 |
| 39 class AppliedTextDecoration; |
| 38 class CursorList; | 40 class CursorList; |
| 39 class QuotesData; | 41 class QuotesData; |
| 40 class ShadowList; | 42 class ShadowList; |
| 41 class StyleImage; | 43 class StyleImage; |
| 42 | 44 |
| 45 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; |
| 46 |
| 43 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. | 47 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. |
| 44 // By grouping them together, we save space, and only allocate this object when
someone | 48 // By grouping them together, we save space, and only allocate this object when
someone |
| 45 // actually uses one of these properties. | 49 // actually uses one of these properties. |
| 46 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> { | 50 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> { |
| 47 public: | 51 public: |
| 48 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } | 52 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } |
| 49 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } | 53 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } |
| 50 ~StyleRareInheritedData(); | 54 ~StyleRareInheritedData(); |
| 51 | 55 |
| 52 bool operator==(const StyleRareInheritedData& o) const; | 56 bool operator==(const StyleRareInheritedData& o) const; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 136 |
| 133 AtomicString locale; | 137 AtomicString locale; |
| 134 | 138 |
| 135 AtomicString textEmphasisCustomMark; | 139 AtomicString textEmphasisCustomMark; |
| 136 RefPtr<QuotesData> quotes; | 140 RefPtr<QuotesData> quotes; |
| 137 | 141 |
| 138 unsigned m_tabSize; | 142 unsigned m_tabSize; |
| 139 | 143 |
| 140 Color tapHighlightColor; | 144 Color tapHighlightColor; |
| 141 | 145 |
| 146 RefPtr<AppliedTextDecorationList> appliedTextDecorations; |
| 147 |
| 142 private: | 148 private: |
| 143 StyleRareInheritedData(); | 149 StyleRareInheritedData(); |
| 144 StyleRareInheritedData(const StyleRareInheritedData&); | 150 StyleRareInheritedData(const StyleRareInheritedData&); |
| 145 }; | 151 }; |
| 146 | 152 |
| 147 } // namespace WebCore | 153 } // namespace WebCore |
| 148 | 154 |
| 149 #endif // StyleRareInheritedData_h | 155 #endif // StyleRareInheritedData_h |
| OLD | NEW |