| 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 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void selectSourceURL(ImageLoader::UpdateFromElementBehavior); | 94 void selectSourceURL(ImageLoader::UpdateFromElementBehavior); |
| 95 | 95 |
| 96 virtual RenderObject* createRenderer(RenderStyle*) override; | 96 virtual RenderObject* createRenderer(RenderStyle*) override; |
| 97 | 97 |
| 98 virtual bool canStartSelection() const override; | 98 virtual bool canStartSelection() const override; |
| 99 | 99 |
| 100 virtual bool isURLAttribute(const Attribute&) const override; | 100 virtual bool isURLAttribute(const Attribute&) const override; |
| 101 | 101 |
| 102 virtual void insertedInto(ContainerNode*) override; | 102 virtual void insertedInto(ContainerNode*) override; |
| 103 virtual void removedFrom(ContainerNode*) override; | 103 virtual void removedFrom(ContainerNode*) override; |
| 104 virtual Image* imageContents() override; | |
| 105 | 104 |
| 106 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); | 105 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); |
| 107 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } | 106 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } |
| 108 void notifyViewportChanged(); | 107 void notifyViewportChanged(); |
| 109 void createMediaQueryListIfDoesNotExist(); | 108 void createMediaQueryListIfDoesNotExist(); |
| 110 | 109 |
| 111 OwnPtr<HTMLImageLoader> m_imageLoader; | 110 OwnPtr<HTMLImageLoader> m_imageLoader; |
| 112 RefPtr<ViewportChangeListener> m_listener; | 111 RefPtr<ViewportChangeListener> m_listener; |
| 113 AtomicString m_bestFitImageURL; | 112 AtomicString m_bestFitImageURL; |
| 114 float m_imageDevicePixelRatio; | 113 float m_imageDevicePixelRatio; |
| 115 unsigned m_elementCreatedByParser : 1; | 114 unsigned m_elementCreatedByParser : 1; |
| 116 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 115 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
| 117 unsigned m_intrinsicSizingViewportDependant : 1; | 116 unsigned m_intrinsicSizingViewportDependant : 1; |
| 118 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. | 117 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. |
| 119 unsigned m_effectiveSizeViewportDependant : 1; | 118 unsigned m_effectiveSizeViewportDependant : 1; |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 } // namespace blink | 121 } // namespace blink |
| 123 | 122 |
| 124 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ | 123 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ |
| OLD | NEW |