| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 return adoptPtr(new RenderImageResourceStyleImage(styleImage)); | 43 return adoptPtr(new RenderImageResourceStyleImage(styleImage)); |
| 44 } | 44 } |
| 45 virtual void initialize(RenderObject*) OVERRIDE; | 45 virtual void initialize(RenderObject*) OVERRIDE; |
| 46 virtual void shutdown() OVERRIDE; | 46 virtual void shutdown() OVERRIDE; |
| 47 | 47 |
| 48 virtual bool hasImage() const OVERRIDE { return true; } | 48 virtual bool hasImage() const OVERRIDE { return true; } |
| 49 virtual PassRefPtr<Image> image(int width = 0, int height = 0) const OVERRID
E; | 49 virtual PassRefPtr<Image> image(int width = 0, int height = 0) const OVERRID
E; |
| 50 virtual bool errorOccurred() const OVERRIDE { return m_styleImage->errorOccu
rred(); } | 50 virtual bool errorOccurred() const OVERRIDE { return m_styleImage->errorOccu
rred(); } |
| 51 | 51 |
| 52 virtual void setContainerSizeForRenderer(const IntSize&) OVERRIDE; | 52 virtual void setContainerSizeForRenderer(const IntSize&) OVERRIDE; |
| 53 virtual bool usesImageContainerSize() const OVERRIDE { return m_styleImage->
usesImageContainerSize(); } | |
| 54 virtual bool imageHasRelativeWidth() const OVERRIDE { return m_styleImage->i
mageHasRelativeWidth(); } | 53 virtual bool imageHasRelativeWidth() const OVERRIDE { return m_styleImage->i
mageHasRelativeWidth(); } |
| 55 virtual bool imageHasRelativeHeight() const OVERRIDE { return m_styleImage->
imageHasRelativeHeight(); } | 54 virtual bool imageHasRelativeHeight() const OVERRIDE { return m_styleImage->
imageHasRelativeHeight(); } |
| 56 | 55 |
| 57 virtual LayoutSize imageSize(float multiplier) const OVERRIDE { return m_sty
leImage->imageSize(m_renderer, multiplier); } | 56 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); } | 57 virtual LayoutSize intrinsicSize(float multiplier) const OVERRIDE { return m
_styleImage->imageSize(m_renderer, multiplier); } |
| 59 | 58 |
| 60 virtual WrappedImagePtr imagePtr() const OVERRIDE { return m_styleImage->dat
a(); } | 59 virtual WrappedImagePtr imagePtr() const OVERRIDE { return m_styleImage->dat
a(); } |
| 61 | 60 |
| 62 private: | 61 private: |
| 63 RenderImageResourceStyleImage(StyleImage*); | 62 RenderImageResourceStyleImage(StyleImage*); |
| 64 RefPtr<StyleImage> m_styleImage; | 63 RefPtr<StyleImage> m_styleImage; |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace blink | 66 } // namespace blink |
| 68 | 67 |
| 69 #endif // RenderImageStyleImage_h | 68 #endif // RenderImageStyleImage_h |
| OLD | NEW |