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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 int x() const; | 70 int x() const; |
71 int y() const; | 71 int y() const; |
72 | 72 |
73 bool complete() const; | 73 bool complete() const; |
74 | 74 |
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 void addClient(ImageLoaderClient* client) { m_imageLoader.addClient(client);
} |
| 80 void removeClient(ImageLoaderClient* client) { m_imageLoader.removeClient(cl
ient); } |
| 81 |
79 protected: | 82 protected: |
80 HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); | 83 HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); |
81 | 84 |
82 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; | 85 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; |
83 | 86 |
84 private: | 87 private: |
85 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 88 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
86 | 89 |
87 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 90 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
88 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 91 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
(...skipping 28 matching lines...) Expand all Loading... |
117 | 120 |
118 inline const HTMLImageElement* toHTMLImageElement(const Node* node) | 121 inline const HTMLImageElement* toHTMLImageElement(const Node* node) |
119 { | 122 { |
120 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::imgTag
)); | 123 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::imgTag
)); |
121 return static_cast<const HTMLImageElement*>(node); | 124 return static_cast<const HTMLImageElement*>(node); |
122 } | 125 } |
123 | 126 |
124 } //namespace | 127 } //namespace |
125 | 128 |
126 #endif | 129 #endif |
OLD | NEW |