| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio
= factor; } | 49 inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio
= factor; } |
| 50 float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; } | 50 float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; } |
| 51 | 51 |
| 52 virtual void intrinsicSizeChanged() override; | 52 virtual void intrinsicSizeChanged() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 virtual bool needsPreferredWidthsRecalculation() const override final; | 55 virtual bool needsPreferredWidthsRecalculation() const override final; |
| 56 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override final; | 56 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const override final; |
| 57 | 57 |
| 58 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; | 58 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) final; |
| 59 | 59 |
| 60 void paintIntoRect(GraphicsContext*, const LayoutRect&); | 60 void paintIntoRect(GraphicsContext*, const LayoutRect&); |
| 61 virtual void paint(PaintInfo&, const LayoutPoint&) override final; | 61 virtual void paint(PaintInfo&, const LayoutPoint&) override final; |
| 62 virtual void layout() override; | 62 virtual void layout() override; |
| 63 | 63 |
| 64 virtual const char* renderName() const override { return "RenderImage"; } | 64 virtual const char* renderName() const override { return "RenderImage"; } |
| 65 | 65 |
| 66 virtual bool isImage() const override { return true; } | 66 virtual bool isImage() const override { return true; } |
| 67 virtual bool isRenderImage() const override final { return true; } | 67 virtual bool isRenderImage() const override final { return true; } |
| 68 | 68 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 89 float m_imageDevicePixelRatio; | 89 float m_imageDevicePixelRatio; |
| 90 | 90 |
| 91 friend class RenderImageScaleObserver; | 91 friend class RenderImageScaleObserver; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); | 94 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| 97 | 97 |
| 98 #endif // SKY_ENGINE_CORE_RENDERING_RENDERIMAGE_H_ | 98 #endif // SKY_ENGINE_CORE_RENDERING_RENDERIMAGE_H_ |
| OLD | NEW |