| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void reattachFallbackContent(); | 105 void reattachFallbackContent(); |
| 106 void setUseFallbackContent(); | 106 void setUseFallbackContent(); |
| 107 void setIsFallbackImage() { m_isFallbackImage = true; } | 107 void setIsFallbackImage() { m_isFallbackImage = true; } |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 explicit HTMLImageElement(Document&, HTMLFormElement* = 0, bool createdByPar
ser = false); | 110 explicit HTMLImageElement(Document&, HTMLFormElement* = 0, bool createdByPar
ser = false); |
| 111 | 111 |
| 112 virtual void didMoveToNewDocument(Document& oldDocument) override; | 112 virtual void didMoveToNewDocument(Document& oldDocument) override; |
| 113 virtual bool useFallbackContent() const { return m_useFallbackContent; } | 113 virtual bool useFallbackContent() const { return m_useFallbackContent; } |
| 114 | 114 |
| 115 virtual void didAddUserAgentShadowRoot(ShadowRoot&) override; | 115 virtual void didAddClosedShadowRoot(ShadowRoot&) override; |
| 116 virtual PassRefPtr<LayoutStyle> customStyleForRenderer() override; | 116 virtual PassRefPtr<LayoutStyle> customStyleForRenderer() override; |
| 117 private: | 117 private: |
| 118 virtual bool areAuthorShadowsAllowed() const override { return false; } | 118 virtual bool areAuthorShadowsAllowed() const override { return false; } |
| 119 | 119 |
| 120 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 120 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
| 121 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 121 virtual bool isPresentationAttribute(const QualifiedName&) const override; |
| 122 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 122 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; |
| 123 | 123 |
| 124 virtual void attach(const AttachContext& = AttachContext()) override; | 124 virtual void attach(const AttachContext& = AttachContext()) override; |
| 125 virtual LayoutObject* createRenderer(const LayoutStyle&) override; | 125 virtual LayoutObject* createRenderer(const LayoutStyle&) override; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 unsigned m_elementCreatedByParser : 1; | 159 unsigned m_elementCreatedByParser : 1; |
| 160 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. | 160 // Intrinsic sizing is viewport dependant if the 'w' descriptor was used for
the picked resource. |
| 161 unsigned m_intrinsicSizingViewportDependant : 1; | 161 unsigned m_intrinsicSizingViewportDependant : 1; |
| 162 unsigned m_useFallbackContent : 1; | 162 unsigned m_useFallbackContent : 1; |
| 163 unsigned m_isFallbackImage : 1; | 163 unsigned m_isFallbackImage : 1; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| 167 | 167 |
| 168 #endif // HTMLImageElement_h | 168 #endif // HTMLImageElement_h |
| OLD | NEW |