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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. |
7 * All rights reserved. | 7 * All rights reserved. |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 ~LayoutImage() override; | 55 ~LayoutImage() override; |
56 | 56 |
57 static LayoutImage* createAnonymous(Document*); | 57 static LayoutImage* createAnonymous(Document*); |
58 | 58 |
59 void setImageResource(LayoutImageResource*); | 59 void setImageResource(LayoutImageResource*); |
60 | 60 |
61 LayoutImageResource* imageResource() { return m_imageResource.get(); } | 61 LayoutImageResource* imageResource() { return m_imageResource.get(); } |
62 const LayoutImageResource* imageResource() const { | 62 const LayoutImageResource* imageResource() const { |
63 return m_imageResource.get(); | 63 return m_imageResource.get(); |
64 } | 64 } |
65 ImageResource* cachedImage() const { | 65 ImageResourceContent* cachedImage() const { |
66 return m_imageResource ? m_imageResource->cachedImage() : 0; | 66 return m_imageResource ? m_imageResource->cachedImage() : 0; |
67 } | 67 } |
68 | 68 |
69 HTMLMapElement* imageMap() const; | 69 HTMLMapElement* imageMap() const; |
70 void areaElementFocusChanged(HTMLAreaElement*); | 70 void areaElementFocusChanged(HTMLAreaElement*); |
71 | 71 |
72 void setIsGeneratedContent(bool generated = true) { | 72 void setIsGeneratedContent(bool generated = true) { |
73 m_isGeneratedContent = generated; | 73 m_isGeneratedContent = generated; |
74 } | 74 } |
75 | 75 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; | 110 void paintReplaced(const PaintInfo&, const LayoutPoint&) const override; |
111 | 111 |
112 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, | 112 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, |
113 unsigned maxDepthToTest) const final; | 113 unsigned maxDepthToTest) const final; |
114 bool computeBackgroundIsKnownToBeObscured() const final; | 114 bool computeBackgroundIsKnownToBeObscured() const final; |
115 | 115 |
116 bool backgroundShouldAlwaysBeClipped() const override { return true; } | 116 bool backgroundShouldAlwaysBeClipped() const override { return true; } |
117 | 117 |
118 LayoutUnit minimumReplacedHeight() const override; | 118 LayoutUnit minimumReplacedHeight() const override; |
119 | 119 |
120 void imageNotifyFinished(ImageResource*) final; | 120 void imageNotifyFinished(ImageResourceContent*) final; |
121 bool nodeAtPoint(HitTestResult&, | 121 bool nodeAtPoint(HitTestResult&, |
122 const HitTestLocation& locationInContainer, | 122 const HitTestLocation& locationInContainer, |
123 const LayoutPoint& accumulatedOffset, | 123 const LayoutPoint& accumulatedOffset, |
124 HitTestAction) final; | 124 HitTestAction) final; |
125 | 125 |
126 void invalidatePaintAndMarkForLayoutIfNeeded(); | 126 void invalidatePaintAndMarkForLayoutIfNeeded(); |
127 void updateIntrinsicSizeIfNeeded(const LayoutSize&); | 127 void updateIntrinsicSizeIfNeeded(const LayoutSize&); |
128 | 128 |
129 // This member wraps the associated decoded image. | 129 // This member wraps the associated decoded image. |
130 // | 130 // |
(...skipping 10 matching lines...) Expand all Loading... |
141 // This field stores whether this image is generated with 'content'. | 141 // This field stores whether this image is generated with 'content'. |
142 bool m_isGeneratedContent; | 142 bool m_isGeneratedContent; |
143 float m_imageDevicePixelRatio; | 143 float m_imageDevicePixelRatio; |
144 }; | 144 }; |
145 | 145 |
146 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); | 146 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
149 | 149 |
150 #endif // LayoutImage_h | 150 #endif // LayoutImage_h |
OLD | NEW |