OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll <knoll@kde.org> | 2 * Copyright (C) 1999 Lars Knoll <knoll@kde.org> |
3 * Copyright (C) 1999 Antti Koivisto <koivisto@kde.org> | 3 * Copyright (C) 1999 Antti Koivisto <koivisto@kde.org> |
4 * Copyright (C) 2006 Allan Sandfeld Jensen <kde@carewolf.com> | 4 * Copyright (C) 2006 Allan Sandfeld Jensen <kde@carewolf.com> |
5 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 5 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 7 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual bool hasImage() const { return true; } | 48 virtual bool hasImage() const { return true; } |
49 virtual PassRefPtr<Image> image(int width = 0, int height = 0) const; | 49 virtual PassRefPtr<Image> image(int width = 0, int height = 0) const; |
50 virtual bool errorOccurred() const { return m_styleImage->errorOccurred(); } | 50 virtual bool errorOccurred() const { return m_styleImage->errorOccurred(); } |
51 | 51 |
52 virtual void setContainerSizeForRenderer(const IntSize&); | 52 virtual void setContainerSizeForRenderer(const IntSize&); |
53 virtual bool usesImageContainerSize() const { return m_styleImage->usesImage
ContainerSize(); } | 53 virtual bool usesImageContainerSize() const { return m_styleImage->usesImage
ContainerSize(); } |
54 virtual bool imageHasRelativeWidth() const { return m_styleImage->imageHasRe
lativeWidth(); } | 54 virtual bool imageHasRelativeWidth() const { return m_styleImage->imageHasRe
lativeWidth(); } |
55 virtual bool imageHasRelativeHeight() const { return m_styleImage->imageHasR
elativeHeight(); } | 55 virtual bool imageHasRelativeHeight() const { return m_styleImage->imageHasR
elativeHeight(); } |
56 | 56 |
57 virtual LayoutSize imageSize(float multiplier) const OVERRIDE { return m_sty
leImage->imageSize(m_renderer, multiplier); } | 57 virtual LayoutSize imageSize(float multiplier) const OVERRIDE { return m_sty
leImage->imageSize(m_renderer, multiplier); } |
| 58 virtual LayoutSize intrinsicSize(float multiplier) const OVERRIDE { return m
_styleImage->imageSize(m_renderer, multiplier); } |
58 | 59 |
59 virtual WrappedImagePtr imagePtr() const { return m_styleImage->data(); } | 60 virtual WrappedImagePtr imagePtr() const { return m_styleImage->data(); } |
60 | 61 |
61 private: | 62 private: |
62 RenderImageResourceStyleImage(StyleImage*); | 63 RenderImageResourceStyleImage(StyleImage*); |
63 RefPtr<StyleImage> m_styleImage; | 64 RefPtr<StyleImage> m_styleImage; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace WebCore | 67 } // namespace WebCore |
67 | 68 |
68 #endif // RenderImageStyleImage_h | 69 #endif // RenderImageStyleImage_h |
OLD | NEW |