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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 bool clipOccludesNextLayers(bool firstLayer) const; | 176 bool clipOccludesNextLayers(bool firstLayer) const; |
177 | 177 |
178 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } | 178 EFillLayerType type() const { return static_cast<EFillLayerType>(m_type); } |
179 | 179 |
180 void fillUnsetProperties(); | 180 void fillUnsetProperties(); |
181 void cullEmptyLayers(); | 181 void cullEmptyLayers(); |
182 | 182 |
183 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll
BackgroundAttachment; } | 183 static EFillAttachment initialFillAttachment(EFillLayerType) { return Scroll
BackgroundAttachment; } |
184 static EFillBox initialFillClip(EFillLayerType) { return BorderFillBox; } | 184 static EFillBox initialFillClip(EFillLayerType) { return BorderFillBox; } |
185 static EFillBox initialFillOrigin(EFillLayerType type) { return type == Back
groundFillLayer ? PaddingFillBox : BorderFillBox; } | 185 static EFillBox initialFillOrigin(EFillLayerType type) { return type == Back
groundFillLayer ? PaddingFillBox : BorderFillBox; } |
186 static EFillRepeat initialFillRepeatX(EFillLayerType) { return RepeatFill; } | 186 static EFillRepeat initialFillRepeatX(EFillLayerType) { return NoRepeatFill;
} |
187 static EFillRepeat initialFillRepeatY(EFillLayerType) { return RepeatFill; } | 187 static EFillRepeat initialFillRepeatY(EFillLayerType) { return NoRepeatFill;
} |
188 static CompositeOperator initialFillComposite(EFillLayerType) { return Compo
siteSourceOver; } | 188 static CompositeOperator initialFillComposite(EFillLayerType) { return Compo
siteSourceOver; } |
189 static WebBlendMode initialFillBlendMode(EFillLayerType) { return WebBlendMo
deNormal; } | 189 static WebBlendMode initialFillBlendMode(EFillLayerType) { return WebBlendMo
deNormal; } |
190 static EFillSizeType initialFillSizeType(EFillLayerType) { return SizeLength
; } | 190 static EFillSizeType initialFillSizeType(EFillLayerType) { return SizeLength
; } |
191 static LengthSize initialFillSizeLength(EFillLayerType) { return LengthSize(
); } | 191 static LengthSize initialFillSizeLength(EFillLayerType) { return LengthSize(
); } |
192 static FillSize initialFillSize(EFillLayerType type) { return FillSize(initi
alFillSizeType(type), initialFillSizeLength(type)); } | 192 static FillSize initialFillSize(EFillLayerType type) { return FillSize(initi
alFillSizeType(type), initialFillSizeLength(type)); } |
193 static Length initialFillXPosition(EFillLayerType) { return Length(0.0, Perc
ent); } | 193 static Length initialFillXPosition(EFillLayerType) { return Length(0.0, Perc
ent); } |
194 static Length initialFillYPosition(EFillLayerType) { return Length(0.0, Perc
ent); } | 194 static Length initialFillYPosition(EFillLayerType) { return Length(0.0, Perc
ent); } |
195 static StyleImage* initialFillImage(EFillLayerType) { return 0; } | 195 static StyleImage* initialFillImage(EFillLayerType) { return 0; } |
196 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma
skAlpha; } | 196 static EMaskSourceType initialFillMaskSourceType(EFillLayerType) { return Ma
skAlpha; } |
197 | 197 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 unsigned m_maskSourceTypeSet : 1; | 238 unsigned m_maskSourceTypeSet : 1; |
239 | 239 |
240 unsigned m_type : 1; // EFillLayerType | 240 unsigned m_type : 1; // EFillLayerType |
241 | 241 |
242 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this
to bottom layer | 242 mutable unsigned m_clipMax : 2; // EFillBox, maximum m_clip value from this
to bottom layer |
243 }; | 243 }; |
244 | 244 |
245 } // namespace blink | 245 } // namespace blink |
246 | 246 |
247 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_FILLLAYER_H_ | 247 #endif // SKY_ENGINE_CORE_RENDERING_STYLE_FILLLAYER_H_ |
OLD | NEW |