| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class CSSAnimationData; | 44 class CSSAnimationData; |
| 45 class CSSTransitionData; | 45 class CSSTransitionData; |
| 46 class LengthSize; | 46 class LengthSize; |
| 47 class ShadowList; | 47 class ShadowList; |
| 48 class StyleFilterData; | 48 class StyleFilterData; |
| 49 class StyleFlexibleBoxData; | 49 class StyleFlexibleBoxData; |
| 50 class StyleTransformData; | 50 class StyleTransformData; |
| 51 class StyleWillChangeData; | 51 class StyleWillChangeData; |
| 52 | 52 |
| 53 // Page size type. | |
| 54 // StyleRareNonInheritedData::m_pageSize is meaningful only when | |
| 55 // StyleRareNonInheritedData::m_pageSizeType is PAGE_SIZE_RESOLVED. | |
| 56 enum PageSizeType { | |
| 57 PAGE_SIZE_AUTO, // size: auto | |
| 58 PAGE_SIZE_AUTO_LANDSCAPE, // size: landscape | |
| 59 PAGE_SIZE_AUTO_PORTRAIT, // size: portrait | |
| 60 PAGE_SIZE_RESOLVED // Size is fully resolved. | |
| 61 }; | |
| 62 | |
| 63 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific
properties. | 53 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific
properties. |
| 64 // By grouping them together, we save space, and only allocate this object when
someone | 54 // By grouping them together, we save space, and only allocate this object when
someone |
| 65 // actually uses one of these properties. | 55 // actually uses one of these properties. |
| 66 class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> { | 56 class StyleRareNonInheritedData : public RefCounted<StyleRareNonInheritedData> { |
| 67 public: | 57 public: |
| 68 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new
StyleRareNonInheritedData); } | 58 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new
StyleRareNonInheritedData); } |
| 69 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty
leRareNonInheritedData(*this)); } | 59 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty
leRareNonInheritedData(*this)); } |
| 70 ~StyleRareNonInheritedData(); | 60 ~StyleRareNonInheritedData(); |
| 71 | 61 |
| 72 bool operator==(const StyleRareNonInheritedData&) const; | 62 bool operator==(const StyleRareNonInheritedData&) const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 94 | 84 |
| 95 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e
tc.) | 85 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e
tc.) |
| 96 | 86 |
| 97 OwnPtr<CounterDirectiveMap> m_counterDirectives; | 87 OwnPtr<CounterDirectiveMap> m_counterDirectives; |
| 98 | 88 |
| 99 RefPtr<ShadowList> m_boxShadow; | 89 RefPtr<ShadowList> m_boxShadow; |
| 100 | 90 |
| 101 OwnPtr<CSSAnimationData> m_animations; | 91 OwnPtr<CSSAnimationData> m_animations; |
| 102 OwnPtr<CSSTransitionData> m_transitions; | 92 OwnPtr<CSSTransitionData> m_transitions; |
| 103 | 93 |
| 104 LengthSize m_pageSize; | |
| 105 | |
| 106 RefPtr<ClipPathOperation> m_clipPath; | 94 RefPtr<ClipPathOperation> m_clipPath; |
| 107 | 95 |
| 108 StyleColor m_textDecorationColor; | 96 StyleColor m_textDecorationColor; |
| 109 | 97 |
| 110 int m_order; | 98 int m_order; |
| 111 | 99 |
| 112 LengthPoint m_objectPosition; | 100 LengthPoint m_objectPosition; |
| 113 | 101 |
| 114 unsigned m_pageSizeType : 2; // PageSizeType | |
| 115 unsigned m_transformStyle3D : 1; // ETransformStyle3D | 102 unsigned m_transformStyle3D : 1; // ETransformStyle3D |
| 116 unsigned m_backfaceVisibility : 1; // EBackfaceVisibility | 103 unsigned m_backfaceVisibility : 1; // EBackfaceVisibility |
| 117 | 104 |
| 118 unsigned m_alignContent : 3; // EAlignContent | 105 unsigned m_alignContent : 3; // EAlignContent |
| 119 unsigned m_alignItems : 4; // ItemPosition | 106 unsigned m_alignItems : 4; // ItemPosition |
| 120 unsigned m_alignItemsOverflowAlignment : 2; // OverflowAlignment | 107 unsigned m_alignItemsOverflowAlignment : 2; // OverflowAlignment |
| 121 unsigned m_alignSelf : 4; // ItemPosition | 108 unsigned m_alignSelf : 4; // ItemPosition |
| 122 unsigned m_alignSelfOverflowAlignment : 2; // OverflowAlignment | 109 unsigned m_alignSelfOverflowAlignment : 2; // OverflowAlignment |
| 123 unsigned m_justifyContent : 3; // EJustifyContent | 110 unsigned m_justifyContent : 3; // EJustifyContent |
| 124 | 111 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 145 unsigned m_justifySelfOverflowAlignment : 2; // OverflowAlignment | 132 unsigned m_justifySelfOverflowAlignment : 2; // OverflowAlignment |
| 146 | 133 |
| 147 private: | 134 private: |
| 148 StyleRareNonInheritedData(); | 135 StyleRareNonInheritedData(); |
| 149 StyleRareNonInheritedData(const StyleRareNonInheritedData&); | 136 StyleRareNonInheritedData(const StyleRareNonInheritedData&); |
| 150 }; | 137 }; |
| 151 | 138 |
| 152 } // namespace blink | 139 } // namespace blink |
| 153 | 140 |
| 154 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERARENONINHERITEDDATA_H_ | 141 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_STYLERARENONINHERITEDDATA_H_ |
| OLD | NEW |