| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL; | 69 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL; |
| 70 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE FINAL; | 70 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE FINAL; |
| 71 | 71 |
| 72 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE FI
NAL; | 72 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE FI
NAL; |
| 73 | 73 |
| 74 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); | 74 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); |
| 75 | 75 |
| 76 void paintIntoRect(GraphicsContext*, const LayoutRect&); | 76 void paintIntoRect(GraphicsContext*, const LayoutRect&); |
| 77 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; | 77 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; |
| 78 virtual void layout(); | 78 virtual void layout(); |
| 79 virtual void didLayout(ResourceLoadPriorityOptimizer&); |
| 80 virtual void didScroll(ResourceLoadPriorityOptimizer&); |
| 81 void updateImageLoadingPriority(ResourceLoadPriorityOptimizer&); |
| 79 | 82 |
| 80 virtual void intrinsicSizeChanged() | 83 virtual void intrinsicSizeChanged() |
| 81 { | 84 { |
| 82 if (m_imageResource) | 85 if (m_imageResource) |
| 83 imageChanged(m_imageResource->imagePtr()); | 86 imageChanged(m_imageResource->imagePtr()); |
| 84 } | 87 } |
| 85 | 88 |
| 86 private: | 89 private: |
| 87 virtual const char* renderName() const { return "RenderImage"; } | 90 virtual const char* renderName() const { return "RenderImage"; } |
| 88 | 91 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 118 float m_imageDevicePixelRatio; | 121 float m_imageDevicePixelRatio; |
| 119 | 122 |
| 120 friend class RenderImageScaleObserver; | 123 friend class RenderImageScaleObserver; |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); | 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); |
| 124 | 127 |
| 125 } // namespace WebCore | 128 } // namespace WebCore |
| 126 | 129 |
| 127 #endif // RenderImage_h | 130 #endif // RenderImage_h |
| OLD | NEW |