| 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 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class ShadowList; | 45 class ShadowList; |
| 46 class StyleImage; | 46 class StyleImage; |
| 47 class StyleVariableData; | 47 class StyleVariableData; |
| 48 | 48 |
| 49 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; | 49 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; |
| 50 typedef HeapVector<CursorData> CursorList; | 50 typedef HeapVector<CursorData> CursorList; |
| 51 | 51 |
| 52 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. | 52 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. |
| 53 // By grouping them together, we save space, and only allocate this object when
someone | 53 // By grouping them together, we save space, and only allocate this object when
someone |
| 54 // actually uses one of these properties. | 54 // actually uses one of these properties. |
| 55 // TODO(sashab): Move this into a private class on ComputedStyle, and remove |
| 56 // all methods on it, merging them into copy/creation methods on ComputedStyle |
| 57 // instead. Keep the allocation logic, only allocating a new object if needed. |
| 55 class CORE_EXPORT StyleRareInheritedData : public RefCounted<StyleRareInheritedD
ata> { | 58 class CORE_EXPORT StyleRareInheritedData : public RefCounted<StyleRareInheritedD
ata> { |
| 56 public: | 59 public: |
| 57 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } | 60 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } |
| 58 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } | 61 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } |
| 59 ~StyleRareInheritedData(); | 62 ~StyleRareInheritedData(); |
| 60 | 63 |
| 61 bool operator==(const StyleRareInheritedData&) const; | 64 bool operator==(const StyleRareInheritedData&) const; |
| 62 bool operator!=(const StyleRareInheritedData& o) const | 65 bool operator!=(const StyleRareInheritedData& o) const |
| 63 { | 66 { |
| 64 return !(*this == o); | 67 return !(*this == o); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 TextSizeAdjust m_textSizeAdjust; | 164 TextSizeAdjust m_textSizeAdjust; |
| 162 | 165 |
| 163 private: | 166 private: |
| 164 StyleRareInheritedData(); | 167 StyleRareInheritedData(); |
| 165 StyleRareInheritedData(const StyleRareInheritedData&); | 168 StyleRareInheritedData(const StyleRareInheritedData&); |
| 166 }; | 169 }; |
| 167 | 170 |
| 168 } // namespace blink | 171 } // namespace blink |
| 169 | 172 |
| 170 #endif // StyleRareInheritedData_h | 173 #endif // StyleRareInheritedData_h |
| OLD | NEW |