| 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 23 matching lines...) Expand all Loading... |
| 34 #include "sky/engine/core/rendering/style/NinePieceImage.h" | 34 #include "sky/engine/core/rendering/style/NinePieceImage.h" |
| 35 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" | 35 #include "sky/engine/core/rendering/style/RenderStyleConstants.h" |
| 36 #include "sky/engine/core/rendering/style/ShapeValue.h" | 36 #include "sky/engine/core/rendering/style/ShapeValue.h" |
| 37 #include "sky/engine/platform/LengthPoint.h" | 37 #include "sky/engine/platform/LengthPoint.h" |
| 38 #include "sky/engine/wtf/OwnPtr.h" | 38 #include "sky/engine/wtf/OwnPtr.h" |
| 39 #include "sky/engine/wtf/PassRefPtr.h" | 39 #include "sky/engine/wtf/PassRefPtr.h" |
| 40 #include "sky/engine/wtf/Vector.h" | 40 #include "sky/engine/wtf/Vector.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class CSSAnimationData; | |
| 45 class CSSTransitionData; | |
| 46 class LengthSize; | 44 class LengthSize; |
| 47 class ShadowList; | 45 class ShadowList; |
| 48 class StyleFilterData; | 46 class StyleFilterData; |
| 49 class StyleFlexibleBoxData; | 47 class StyleFlexibleBoxData; |
| 50 class StyleTransformData; | 48 class StyleTransformData; |
| 51 class StyleWillChangeData; | |
| 52 | 49 |
| 53 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific
properties. | 50 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific
properties. |
| 54 // By grouping them together, we save space, and only allocate this object when
someone | 51 // By grouping them together, we save space, and only allocate this object when
someone |
| 55 // actually uses one of these properties. | 52 // actually uses one of these properties. |
| 56 class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> { | 53 class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> { |
| 57 public: | 54 public: |
| 58 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new
StyleRareNonInheritedData); } | 55 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new
StyleRareNonInheritedData); } |
| 59 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty
leRareNonInheritedData(*this)); } | 56 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty
leRareNonInheritedData(*this)); } |
| 60 ~StyleRareNonInheritedData(); | 57 ~StyleRareNonInheritedData(); |
| 61 | 58 |
| 62 bool operator==(const StyleRareNonInheritedData&) const; | 59 bool operator==(const StyleRareNonInheritedData&) const; |
| 63 bool operator!=(const StyleRareNonInheritedData& o) const { return !(*this =
= o); } | 60 bool operator!=(const StyleRareNonInheritedData& o) const { return !(*this =
= o); } |
| 64 | 61 |
| 65 bool counterDataEquivalent(const StyleRareNonInheritedData&) const; | 62 bool counterDataEquivalent(const StyleRareNonInheritedData&) const; |
| 66 bool shadowDataEquivalent(const StyleRareNonInheritedData&) const; | 63 bool shadowDataEquivalent(const StyleRareNonInheritedData&) const; |
| 67 bool animationDataEquivalent(const StyleRareNonInheritedData&) const; | |
| 68 bool transitionDataEquivalent(const StyleRareNonInheritedData&) const; | |
| 69 bool hasFilters() const; | 64 bool hasFilters() const; |
| 70 bool hasOpacity() const { return opacity < 1; } | 65 bool hasOpacity() const { return opacity < 1; } |
| 71 | 66 |
| 72 float opacity; // Whether or not we're transparent. | 67 float opacity; // Whether or not we're transparent. |
| 73 | 68 |
| 74 float m_aspectRatioDenominator; | 69 float m_aspectRatioDenominator; |
| 75 float m_aspectRatioNumerator; | 70 float m_aspectRatioNumerator; |
| 76 | 71 |
| 77 float m_perspective; | 72 float m_perspective; |
| 78 Length m_perspectiveOriginX; | 73 Length m_perspectiveOriginX; |
| 79 Length m_perspectiveOriginY; | 74 Length m_perspectiveOriginY; |
| 80 | 75 |
| 81 DataRef<StyleFlexibleBoxData> m_flexibleBox; | 76 DataRef<StyleFlexibleBoxData> m_flexibleBox; |
| 82 DataRef<StyleTransformData> m_transform; // Transform properties (rotate, sc
ale, skew, etc.) | 77 DataRef<StyleTransformData> m_transform; // Transform properties (rotate, sc
ale, skew, etc.) |
| 83 DataRef<StyleWillChangeData> m_willChange; // CSS Will Change | |
| 84 | 78 |
| 85 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e
tc.) | 79 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e
tc.) |
| 86 | 80 |
| 87 OwnPtr<CounterDirectiveMap> m_counterDirectives; | 81 OwnPtr<CounterDirectiveMap> m_counterDirectives; |
| 88 | 82 |
| 89 RefPtr<ShadowList> m_boxShadow; | 83 RefPtr<ShadowList> m_boxShadow; |
| 90 | 84 |
| 91 OwnPtr<CSSAnimationData> m_animations; | |
| 92 OwnPtr<CSSTransitionData> m_transitions; | |
| 93 | |
| 94 RefPtr<ClipPathOperation> m_clipPath; | 85 RefPtr<ClipPathOperation> m_clipPath; |
| 95 | 86 |
| 96 StyleColor m_textDecorationColor; | 87 StyleColor m_textDecorationColor; |
| 97 | 88 |
| 98 int m_order; | 89 int m_order; |
| 99 | 90 |
| 100 LengthPoint m_objectPosition; | 91 LengthPoint m_objectPosition; |
| 101 | 92 |
| 102 unsigned m_transformStyle3D : 1; // ETransformStyle3D | 93 unsigned m_transformStyle3D : 1; // ETransformStyle3D |
| 103 | 94 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 130 unsigned m_justifySelfOverflowAlignment : 2; // OverflowAlignment | 121 unsigned m_justifySelfOverflowAlignment : 2; // OverflowAlignment |
| 131 | 122 |
| 132 private: | 123 private: |
| 133 StyleRareNonInheritedData(); | 124 StyleRareNonInheritedData(); |
| 134 StyleRareNonInheritedData(const StyleRareNonInheritedData&); | 125 StyleRareNonInheritedData(const StyleRareNonInheritedData&); |
| 135 }; | 126 }; |
| 136 | 127 |
| 137 } // namespace blink | 128 } // namespace blink |
| 138 | 129 |
| 139 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERARENONINHERITEDDATA_H_ | 130 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERARENONINHERITEDDATA_H_ |
| OLD | NEW |