| 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 19 matching lines...) Expand all Loading... |
| 30 #include "sky/engine/platform/Length.h" | 30 #include "sky/engine/platform/Length.h" |
| 31 #include "sky/engine/platform/graphics/Color.h" | 31 #include "sky/engine/platform/graphics/Color.h" |
| 32 #include "sky/engine/wtf/PassRefPtr.h" | 32 #include "sky/engine/wtf/PassRefPtr.h" |
| 33 #include "sky/engine/wtf/RefCounted.h" | 33 #include "sky/engine/wtf/RefCounted.h" |
| 34 #include "sky/engine/wtf/RefVector.h" | 34 #include "sky/engine/wtf/RefVector.h" |
| 35 #include "sky/engine/wtf/text/AtomicString.h" | 35 #include "sky/engine/wtf/text/AtomicString.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class AppliedTextDecoration; | 39 class AppliedTextDecoration; |
| 40 class CursorData; | |
| 41 class QuotesData; | 40 class QuotesData; |
| 42 class ShadowList; | 41 class ShadowList; |
| 43 class StyleImage; | 42 class StyleImage; |
| 44 | 43 |
| 45 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; | 44 typedef RefVector<AppliedTextDecoration> AppliedTextDecorationList; |
| 46 typedef RefVector<CursorData> CursorList; | |
| 47 | 45 |
| 48 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. | 46 // This struct is for rarely used inherited CSS3, CSS2, and WebKit-specific prop
erties. |
| 49 // By grouping them together, we save space, and only allocate this object when
someone | 47 // By grouping them together, we save space, and only allocate this object when
someone |
| 50 // actually uses one of these properties. | 48 // actually uses one of these properties. |
| 51 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> { | 49 class StyleRareInheritedData : public RefCounted<StyleRareInheritedData> { |
| 52 public: | 50 public: |
| 53 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } | 51 static PassRefPtr<StyleRareInheritedData> create() { return adoptRef(new Sty
leRareInheritedData); } |
| 54 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } | 52 PassRefPtr<StyleRareInheritedData> copy() const { return adoptRef(new StyleR
areInheritedData(*this)); } |
| 55 ~StyleRareInheritedData(); | 53 ~StyleRareInheritedData(); |
| 56 | 54 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 73 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c
olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor(
); } | 71 void setTextEmphasisColor(const StyleColor& color) { m_textEmphasisColor = c
olor.resolve(Color()); m_textEmphasisColorIsCurrentColor = color.isCurrentColor(
); } |
| 74 | 72 |
| 75 Color m_textStrokeColor; | 73 Color m_textStrokeColor; |
| 76 float textStrokeWidth; | 74 float textStrokeWidth; |
| 77 Color m_textFillColor; | 75 Color m_textFillColor; |
| 78 Color m_textEmphasisColor; | 76 Color m_textEmphasisColor; |
| 79 | 77 |
| 80 RefPtr<ShadowList> textShadow; // Our text shadow information for shadowed t
ext drawing. | 78 RefPtr<ShadowList> textShadow; // Our text shadow information for shadowed t
ext drawing. |
| 81 AtomicString highlight; // Apple-specific extension for custom highlight ren
dering. | 79 AtomicString highlight; // Apple-specific extension for custom highlight ren
dering. |
| 82 | 80 |
| 83 RefPtr<CursorList> cursorData; | |
| 84 Length indent; | 81 Length indent; |
| 85 | 82 |
| 86 // Paged media properties. | 83 // Paged media properties. |
| 87 short widows; | 84 short widows; |
| 88 short orphans; | 85 short orphans; |
| 89 unsigned m_hasAutoWidows : 1; | 86 unsigned m_hasAutoWidows : 1; |
| 90 unsigned m_hasAutoOrphans : 1; | 87 unsigned m_hasAutoOrphans : 1; |
| 91 | 88 |
| 92 unsigned m_textStrokeColorIsCurrentColor : 1; | 89 unsigned m_textStrokeColorIsCurrentColor : 1; |
| 93 unsigned m_textFillColorIsCurrentColor : 1; | 90 unsigned m_textFillColorIsCurrentColor : 1; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 RefPtr<AppliedTextDecorationList> appliedTextDecorations; | 132 RefPtr<AppliedTextDecorationList> appliedTextDecorations; |
| 136 | 133 |
| 137 private: | 134 private: |
| 138 StyleRareInheritedData(); | 135 StyleRareInheritedData(); |
| 139 StyleRareInheritedData(const StyleRareInheritedData&); | 136 StyleRareInheritedData(const StyleRareInheritedData&); |
| 140 }; | 137 }; |
| 141 | 138 |
| 142 } // namespace blink | 139 } // namespace blink |
| 143 | 140 |
| 144 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERAREINHERITEDDATA_H_ | 141 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERAREINHERITEDDATA_H_ |
| OLD | NEW |