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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 CSSReflectionDirection Direction() const { return direction_; } | 47 CSSReflectionDirection Direction() const { return direction_; } |
48 Length Offset() const { return offset_; } | 48 Length Offset() const { return offset_; } |
49 const NinePieceImage& Mask() const { return mask_; } | 49 const NinePieceImage& Mask() const { return mask_; } |
50 | 50 |
51 void SetDirection(CSSReflectionDirection dir) { direction_ = dir; } | 51 void SetDirection(CSSReflectionDirection dir) { direction_ = dir; } |
52 void SetOffset(const Length& length) { offset_ = length; } | 52 void SetOffset(const Length& length) { offset_ = length; } |
53 void SetMask(const NinePieceImage& image) { mask_ = image; } | 53 void SetMask(const NinePieceImage& image) { mask_ = image; } |
54 | 54 |
55 private: | 55 private: |
56 StyleReflection() : direction_(kReflectionBelow), offset_(0, kFixed) { | 56 StyleReflection() |
57 mask_.SetMaskDefaults(); | 57 : direction_(kReflectionBelow), |
58 } | 58 offset_(0, kFixed), |
| 59 mask_(NinePieceImage::MaskDefaults()) {} |
59 | 60 |
60 CSSReflectionDirection direction_; | 61 CSSReflectionDirection direction_; |
61 Length offset_; | 62 Length offset_; |
62 NinePieceImage mask_; | 63 NinePieceImage mask_; |
63 }; | 64 }; |
64 | 65 |
65 } // namespace blink | 66 } // namespace blink |
66 | 67 |
67 #endif // StyleReflection_h | 68 #endif // StyleReflection_h |
OLD | NEW |