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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL; | 76 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL; |
77 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const OVERRIDE FINAL; | 77 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub
le& intrinsicRatio) const OVERRIDE FINAL; |
78 | 78 |
79 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; | 79 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; |
80 | 80 |
81 void paintIntoRect(GraphicsContext*, const LayoutRect&); | 81 void paintIntoRect(GraphicsContext*, const LayoutRect&); |
82 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; | 82 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; |
83 virtual void layout() OVERRIDE; | 83 virtual void layout() OVERRIDE; |
84 virtual bool updateImageLoadingPriorities() OVERRIDE FINAL; | 84 virtual bool updateImageLoadingPriorities() OVERRIDE FINAL; |
85 | 85 |
| 86 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type ==
RenderObjectRenderImage || RenderReplaced::isOfType(type); } |
| 87 |
86 private: | 88 private: |
87 virtual const char* renderName() const OVERRIDE { return "RenderImage"; } | 89 virtual const char* renderName() const OVERRIDE { return "RenderImage"; } |
88 | 90 |
89 virtual bool isImage() const OVERRIDE { return true; } | 91 virtual bool isImage() const OVERRIDE { return true; } |
90 virtual bool isRenderImage() const OVERRIDE FINAL { return true; } | |
91 | 92 |
92 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE; | 93 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE; |
93 | 94 |
94 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const OVERRIDE FINAL; | 95 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const OVERRIDE FINAL; |
95 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL; | 96 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL; |
96 | 97 |
97 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE; | 98 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE; |
98 | 99 |
99 virtual void notifyFinished(Resource*) OVERRIDE FINAL; | 100 virtual void notifyFinished(Resource*) OVERRIDE FINAL; |
100 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; | 101 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; |
(...skipping 16 matching lines...) Expand all Loading... |
117 float m_imageDevicePixelRatio; | 118 float m_imageDevicePixelRatio; |
118 | 119 |
119 friend class RenderImageScaleObserver; | 120 friend class RenderImageScaleObserver; |
120 }; | 121 }; |
121 | 122 |
122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); | 123 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); |
123 | 124 |
124 } // namespace blink | 125 } // namespace blink |
125 | 126 |
126 #endif // RenderImage_h | 127 #endif // RenderImage_h |
OLD | NEW |