OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 struct SameSizeAsFillLayer { | 27 struct SameSizeAsFillLayer { |
28 FillLayer* m_next; | 28 FillLayer* m_next; |
29 | 29 |
30 RefPtr<StyleImage> m_image; | 30 RefPtr<StyleImage> m_image; |
31 | 31 |
32 Length m_xPosition; | 32 Length m_xPosition; |
33 Length m_yPosition; | 33 Length m_yPosition; |
34 | 34 |
35 LengthSize m_sizeLength; | 35 LengthSize m_sizeLength; |
36 | 36 |
37 unsigned m_bitfields: 32; | 37 unsigned m_bitfields1; |
38 unsigned m_bitfields2: 1; | 38 unsigned m_bitfields2; |
39 }; | 39 }; |
40 | 40 |
41 COMPILE_ASSERT(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), FillLayer_shoul
d_stay_small); | 41 COMPILE_ASSERT(sizeof(FillLayer) == sizeof(SameSizeAsFillLayer), FillLayer_shoul
d_stay_small); |
42 | 42 |
43 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues) | 43 FillLayer::FillLayer(EFillLayerType type, bool useInitialValues) |
44 : m_next(0) | 44 : m_next(0) |
45 , m_image(FillLayer::initialFillImage(type)) | 45 , m_image(FillLayer::initialFillImage(type)) |
46 , m_xPosition(FillLayer::initialFillXPosition(type)) | 46 , m_xPosition(FillLayer::initialFillXPosition(type)) |
47 , m_yPosition(FillLayer::initialFillYPosition(type)) | 47 , m_yPosition(FillLayer::initialFillYPosition(type)) |
48 , m_sizeLength(FillLayer::initialFillSizeLength(type)) | 48 , m_sizeLength(FillLayer::initialFillSizeLength(type)) |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 return false; | 370 return false; |
371 } | 371 } |
372 | 372 |
373 bool FillLayer::hasRepeatXY() const | 373 bool FillLayer::hasRepeatXY() const |
374 { | 374 { |
375 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; | 375 return m_repeatX == RepeatFill && m_repeatY == RepeatFill; |
376 } | 376 } |
377 | 377 |
378 } // namespace WebCore | 378 } // namespace WebCore |
OLD | NEW |