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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool hasPendingActivity() const { return m_imageLoader.hasPendingActivity();
} | 75 bool hasPendingActivity() const { return m_imageLoader.hasPendingActivity();
} |
76 | 76 |
77 virtual bool canContainRangeEndPoint() const { return false; } | 77 virtual bool canContainRangeEndPoint() const { return false; } |
78 | 78 |
79 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 79 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
80 | 80 |
81 protected: | 81 protected: |
82 HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); | 82 HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); |
83 | 83 |
84 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; | 84 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; |
| 85 void updateResources(); |
85 | 86 |
| 87 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
86 private: | 88 private: |
87 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 89 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
88 | 90 |
89 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | |
90 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 91 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
91 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 92 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
92 | 93 |
93 virtual void attach(); | 94 virtual void attach(); |
94 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 95 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
95 | 96 |
96 virtual bool canStartSelection() const; | 97 virtual bool canStartSelection() const; |
97 | 98 |
98 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 99 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
99 | 100 |
100 virtual bool draggable() const; | 101 virtual bool draggable() const; |
101 | 102 |
102 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; | 103 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
103 | 104 |
104 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 105 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
105 virtual void removedFrom(ContainerNode*) OVERRIDE; | 106 virtual void removedFrom(ContainerNode*) OVERRIDE; |
106 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } | 107 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } |
107 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} | 108 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} |
108 | 109 |
109 HTMLImageLoader m_imageLoader; | 110 HTMLImageLoader m_imageLoader; |
110 HTMLFormElement* m_form; | 111 HTMLFormElement* m_form; |
111 CompositeOperator m_compositeOperator; | 112 CompositeOperator m_compositeOperator; |
112 }; | 113 }; |
113 | 114 |
114 } //namespace | 115 } //namespace |
115 | 116 |
116 #endif | 117 #endif |
OLD | NEW |