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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const RenderImageResource* imageResource() const { return m_imageResource.ge
t(); } | 51 const RenderImageResource* imageResource() const { return m_imageResource.ge
t(); } |
52 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc
e->cachedImage() : 0; } | 52 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc
e->cachedImage() : 0; } |
53 | 53 |
54 bool setImageSizeForAltText(ImageResource* newImage = 0); | 54 bool setImageSizeForAltText(ImageResource* newImage = 0); |
55 | 55 |
56 void updateAltText(); | 56 void updateAltText(); |
57 | 57 |
58 HTMLMapElement* imageMap() const; | 58 HTMLMapElement* imageMap() const; |
59 void areaElementFocusChanged(HTMLAreaElement*); | 59 void areaElementFocusChanged(HTMLAreaElement*); |
60 | 60 |
61 void highQualityRepaintTimerFired(Timer<RenderImage>*); | |
62 | |
63 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g
enerated; } | 61 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g
enerated; } |
64 | 62 |
65 bool isGeneratedContent() const { return m_isGeneratedContent; } | 63 bool isGeneratedContent() const { return m_isGeneratedContent; } |
66 | 64 |
67 String altText() const { return m_altText; } | 65 String altText() const { return m_altText; } |
68 | 66 |
69 inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio
= factor; } | 67 inline void setImageDevicePixelRatio(float factor) { m_imageDevicePixelRatio
= factor; } |
70 float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; } | 68 float imageDevicePixelRatio() const { return m_imageDevicePixelRatio; } |
71 | 69 |
72 virtual void intrinsicSizeChanged() OVERRIDE | 70 virtual void intrinsicSizeChanged() OVERRIDE |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 float m_imageDevicePixelRatio; | 116 float m_imageDevicePixelRatio; |
119 | 117 |
120 friend class RenderImageScaleObserver; | 118 friend class RenderImageScaleObserver; |
121 }; | 119 }; |
122 | 120 |
123 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); | 121 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); |
124 | 122 |
125 } // namespace blink | 123 } // namespace blink |
126 | 124 |
127 #endif // RenderImage_h | 125 #endif // RenderImage_h |
OLD | NEW |