| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 92 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 93 | 93 |
| 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 InsertionNotificationRequest 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; | 104 virtual Image* imageContents() override; |
| 105 | 105 |
| 106 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); | 106 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); |
| 107 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } | 107 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } |
| 108 void notifyViewportChanged(); | 108 void notifyViewportChanged(); |
| 109 void createMediaQueryListIfDoesNotExist(); | 109 void createMediaQueryListIfDoesNotExist(); |
| 110 | 110 |
| 111 OwnPtr<HTMLImageLoader> m_imageLoader; | 111 OwnPtr<HTMLImageLoader> m_imageLoader; |
| 112 RefPtr<ViewportChangeListener> m_listener; | 112 RefPtr<ViewportChangeListener> m_listener; |
| 113 AtomicString m_bestFitImageURL; | 113 AtomicString m_bestFitImageURL; |
| 114 float m_imageDevicePixelRatio; | 114 float m_imageDevicePixelRatio; |
| 115 unsigned m_elementCreatedByParser : 1; | 115 unsigned m_elementCreatedByParser : 1; |
| 116 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 116 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
| 117 unsigned m_intrinsicSizingViewportDependant : 1; | 117 unsigned m_intrinsicSizingViewportDependant : 1; |
| 118 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. | 118 // Effective size is viewport dependant if the sizes attribute's effective s
ize used v* length units. |
| 119 unsigned m_effectiveSizeViewportDependant : 1; | 119 unsigned m_effectiveSizeViewportDependant : 1; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| 123 | 123 |
| 124 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ | 124 #endif // SKY_ENGINE_CORE_HTML_HTMLIMAGEELEMENT_H_ |
| OLD | NEW |