| 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, 2013 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv
ed. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #ifndef NinePieceImage_h | 24 #ifndef NinePieceImage_h |
| 25 #define NinePieceImage_h | 25 #define NinePieceImage_h |
| 26 | 26 |
| 27 #include "core/CoreExport.h" | 27 #include "core/CoreExport.h" |
| 28 #include "core/style/BorderImageLengthBox.h" | 28 #include "core/style/BorderImageLengthBox.h" |
| 29 #include "core/style/DataRef.h" | 29 #include "core/style/DataRef.h" |
| 30 #include "core/style/StyleImage.h" | 30 #include "core/style/StyleImage.h" |
| 31 #include "platform/LayoutUnit.h" | 31 #include "platform/LayoutUnit.h" |
| 32 #include "platform/LengthBox.h" | 32 #include "platform/LengthBox.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "wtf/Allocator.h" |
| 34 #include "wtf/RefCounted.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 enum ENinePieceImageRule { | 38 enum ENinePieceImageRule { |
| 38 StretchImageRule, RoundImageRule, SpaceImageRule, RepeatImageRule | 39 StretchImageRule, RoundImageRule, SpaceImageRule, RepeatImageRule |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 class CORE_EXPORT NinePieceImageData : public RefCounted<NinePieceImageData> { | 42 class CORE_EXPORT NinePieceImageData : public RefCounted<NinePieceImageData> { |
| 42 public: | 43 public: |
| 43 static PassRefPtr<NinePieceImageData> create() { return adoptRef(new NinePie
ceImageData); } | 44 static PassRefPtr<NinePieceImageData> create() { return adoptRef(new NinePie
ceImageData); } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 return LayoutUnit(outsetSide.length().value()); | 128 return LayoutUnit(outsetSide.length().value()); |
| 128 } | 129 } |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 DataRef<NinePieceImageData> m_data; | 132 DataRef<NinePieceImageData> m_data; |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace blink | 135 } // namespace blink |
| 135 | 136 |
| 136 #endif // NinePieceImage_h | 137 #endif // NinePieceImage_h |
| OLD | NEW |