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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { m_backgroundYOrigin
= origin; m_backgroundYOriginSet = true; } | 117 void setBackgroundYOrigin(BackgroundEdgeOrigin origin) { m_backgroundYOrigin
= origin; m_backgroundYOriginSet = true; } |
118 void setAttachment(EFillAttachment attachment) { ASSERT(!m_cachedPropertiesC
omputed); m_attachment = attachment; m_attachmentSet = true; } | 118 void setAttachment(EFillAttachment attachment) { ASSERT(!m_cachedPropertiesC
omputed); m_attachment = attachment; m_attachmentSet = true; } |
119 void setClip(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_clip = b;
m_clipSet = true; } | 119 void setClip(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_clip = b;
m_clipSet = true; } |
120 void setOrigin(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_origin =
b; m_originSet = true; } | 120 void setOrigin(EFillBox b) { ASSERT(!m_cachedPropertiesComputed); m_origin =
b; m_originSet = true; } |
121 void setRepeatX(EFillRepeat r) { m_repeatX = r; m_repeatXSet = true; } | 121 void setRepeatX(EFillRepeat r) { m_repeatX = r; m_repeatXSet = true; } |
122 void setRepeatY(EFillRepeat r) { m_repeatY = r; m_repeatYSet = true; } | 122 void setRepeatY(EFillRepeat r) { m_repeatY = r; m_repeatYSet = true; } |
123 void setComposite(CompositeOperator c) { m_composite = c; m_compositeSet = t
rue; } | 123 void setComposite(CompositeOperator c) { m_composite = c; m_compositeSet = t
rue; } |
124 void setBlendMode(WebBlendMode b) { m_blendMode = b; m_blendModeSet = true;
} | 124 void setBlendMode(WebBlendMode b) { m_blendMode = b; m_blendModeSet = true;
} |
125 void setSizeType(EFillSizeType b) { m_sizeType = b; } | 125 void setSizeType(EFillSizeType b) { m_sizeType = b; } |
126 void setSizeLength(const LengthSize& length) { m_sizeLength = length; } | 126 void setSizeLength(const LengthSize& length) { m_sizeLength = length; } |
127 void setSize(FillSize f) { m_sizeType = f.type; m_sizeLength = f.size; } | 127 void setSize(const FillSize& f) { m_sizeType = f.type; m_sizeLength = f.size
; } |
128 void setMaskSourceType(EMaskSourceType m) { m_maskSourceType = m; m_maskSour
ceTypeSet = true; } | 128 void setMaskSourceType(EMaskSourceType m) { m_maskSourceType = m; m_maskSour
ceTypeSet = true; } |
129 | 129 |
130 void clearImage() { m_image.clear(); m_imageSet = false; } | 130 void clearImage() { m_image.clear(); m_imageSet = false; } |
131 void clearXPosition() | 131 void clearXPosition() |
132 { | 132 { |
133 m_xPosSet = false; | 133 m_xPosSet = false; |
134 m_backgroundXOriginSet = false; | 134 m_backgroundXOriginSet = false; |
135 } | 135 } |
136 void clearYPosition() | 136 void clearYPosition() |
137 { | 137 { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip
value from this to bottom layer | 251 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip
value from this to bottom layer |
252 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this
or subsequent layers has content-box clip or origin. | 252 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this
or subsequent layers has content-box clip or origin. |
253 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o
f this or subsequent layers has local attachment. | 253 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o
f this or subsequent layers has local attachment. |
254 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov
e is accessed. The layers will be frozen thereafter. | 254 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov
e is accessed. The layers will be frozen thereafter. |
255 }; | 255 }; |
256 | 256 |
257 } // namespace blink | 257 } // namespace blink |
258 | 258 |
259 #endif // FillLayer_h | 259 #endif // FillLayer_h |
OLD | NEW |