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 * | 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 11 matching lines...) Expand all Loading... |
22 */ | 22 */ |
23 | 23 |
24 #ifndef StyleImage_h | 24 #ifndef StyleImage_h |
25 #define StyleImage_h | 25 #define StyleImage_h |
26 | 26 |
27 #include "core/CoreExport.h" | 27 #include "core/CoreExport.h" |
28 #include "core/css/CSSValue.h" | 28 #include "core/css/CSSValue.h" |
29 #include "platform/geometry/IntSize.h" | 29 #include "platform/geometry/IntSize.h" |
30 #include "platform/geometry/LayoutSize.h" | 30 #include "platform/geometry/LayoutSize.h" |
31 #include "platform/graphics/Image.h" | 31 #include "platform/graphics/Image.h" |
32 #include "wtf/PassRefPtr.h" | 32 #include "wtf/Forward.h" |
33 #include "wtf/RefCounted.h" | |
34 #include "wtf/RefPtr.h" | |
35 | 33 |
36 namespace blink { | 34 namespace blink { |
37 | 35 |
38 class ImageResource; | 36 class ImageResource; |
39 class CSSValue; | 37 class CSSValue; |
40 class LayoutObject; | 38 class LayoutObject; |
41 class SVGImage; | 39 class SVGImage; |
42 | 40 |
43 typedef void* WrappedImagePtr; | 41 typedef void* WrappedImagePtr; |
44 | 42 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 LayoutSize imageSizeForSVGImage(SVGImage*, float multiplier, const LayoutSiz
e& defaultObjectSize) const; | 99 LayoutSize imageSizeForSVGImage(SVGImage*, float multiplier, const LayoutSiz
e& defaultObjectSize) const; |
102 }; | 100 }; |
103 | 101 |
104 #define DEFINE_STYLE_IMAGE_TYPE_CASTS(thisType, function) \ | 102 #define DEFINE_STYLE_IMAGE_TYPE_CASTS(thisType, function) \ |
105 DEFINE_TYPE_CASTS(thisType, StyleImage, styleImage, styleImage->function, st
yleImage.function); \ | 103 DEFINE_TYPE_CASTS(thisType, StyleImage, styleImage, styleImage->function, st
yleImage.function); \ |
106 inline thisType* to##thisType(const Member<StyleImage>& styleImage) { return
to##thisType(styleImage.get()); } \ | 104 inline thisType* to##thisType(const Member<StyleImage>& styleImage) { return
to##thisType(styleImage.get()); } \ |
107 typedef int NeedsSemiColonAfterDefineStyleImageTypeCasts | 105 typedef int NeedsSemiColonAfterDefineStyleImageTypeCasts |
108 | 106 |
109 } // namespace blink | 107 } // namespace blink |
110 #endif | 108 #endif |
OLD | NEW |