diff options
Diffstat (limited to 'WebCore/html/HTMLImageElement.h')
-rw-r--r-- | WebCore/html/HTMLImageElement.h | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/WebCore/html/HTMLImageElement.h b/WebCore/html/HTMLImageElement.h index 61faa39..62d315c 100644 --- a/WebCore/html/HTMLImageElement.h +++ b/WebCore/html/HTMLImageElement.h @@ -35,21 +35,11 @@ class HTMLFormElement; class HTMLImageElement : public HTMLElement { friend class HTMLFormElement; public: + static PassRefPtr<HTMLImageElement> create(Document*); + static PassRefPtr<HTMLImageElement> create(const QualifiedName&, Document*, HTMLFormElement*); static PassRefPtr<HTMLImageElement> createForJSConstructor(Document*, const int* optionalWidth, const int* optionalHeight); - HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); - ~HTMLImageElement(); - - virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; } - virtual int tagPriority() const { return 0; } - - virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const; - virtual void parseMappedAttribute(Attribute*); - - virtual void attach(); - virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); - - virtual bool canStartSelection() const { return false; } + virtual ~HTMLImageElement(); int width(bool ignorePendingStylesheets = false) const; int height(bool ignorePendingStylesheets = false) const; @@ -61,8 +51,6 @@ public: String altText() const; - virtual bool isURLAttribute(Attribute*) const; - CompositeOperator compositeOperator() const { return m_compositeOperator; } CachedImage* cachedImage() const { return m_imageLoader.image(); } @@ -72,8 +60,6 @@ public: const AtomicString& alt() const; - virtual bool draggable() const; - void setHeight(int); int hspace() const; @@ -103,12 +89,29 @@ public: bool haveFiredLoadEvent() const { return m_imageLoader.haveFiredLoadEvent(); } - virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; - protected: + HTMLImageElement(const QualifiedName&, Document*, HTMLFormElement* = 0); + virtual void willMoveToNewOwnerDocument(); private: + virtual HTMLTagStatus endTagRequirement() const { return TagStatusForbidden; } + virtual int tagPriority() const { return 0; } + + virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const; + virtual void parseMappedAttribute(Attribute*); + + virtual void attach(); + virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); + + virtual bool canStartSelection() const { return false; } + + virtual bool isURLAttribute(Attribute*) const; + + virtual bool draggable() const; + + virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; + virtual void insertedIntoDocument(); virtual void removedFromDocument(); virtual void insertedIntoTree(bool deep); |