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