Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: Source/core/html/HTMLImageElement.h

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 18 matching lines...) Expand all
29 #include "platform/graphics/GraphicsTypes.h" 29 #include "platform/graphics/GraphicsTypes.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class HTMLFormElement; 33 class HTMLFormElement;
34 34
35 class HTMLImageElement FINAL : public HTMLElement { 35 class HTMLImageElement FINAL : public HTMLElement {
36 friend class HTMLFormElement; 36 friend class HTMLFormElement;
37 public: 37 public:
38 static PassRefPtr<HTMLImageElement> create(Document&); 38 static PassRefPtr<HTMLImageElement> create(Document&);
39 static PassRefPtr<HTMLImageElement> create(const QualifiedName&, Document&, HTMLFormElement*); 39 static PassRefPtr<HTMLImageElement> create(Document&, HTMLFormElement*);
40 static PassRefPtr<HTMLImageElement> createForJSConstructor(Document&, int wi dth, int height); 40 static PassRefPtr<HTMLImageElement> createForJSConstructor(Document&, int wi dth, int height);
41 41
42 virtual ~HTMLImageElement(); 42 virtual ~HTMLImageElement();
43 43
44 int width(bool ignorePendingStylesheets = false); 44 int width(bool ignorePendingStylesheets = false);
45 int height(bool ignorePendingStylesheets = false); 45 int height(bool ignorePendingStylesheets = false);
46 46
47 int naturalWidth() const; 47 int naturalWidth() const;
48 int naturalHeight() const; 48 int naturalHeight() const;
49 49
(...skipping 25 matching lines...) Expand all
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); } 79 void addClient(ImageLoaderClient* client) { m_imageLoader.addClient(client); }
80 void removeClient(ImageLoaderClient* client) { m_imageLoader.removeClient(cl ient); } 80 void removeClient(ImageLoaderClient* client) { m_imageLoader.removeClient(cl ient); }
81 81
82 virtual const AtomicString imageSourceURL() const OVERRIDE; 82 virtual const AtomicString imageSourceURL() const OVERRIDE;
83 83
84 protected: 84 protected:
85 HTMLImageElement(const QualifiedName&, Document&, HTMLFormElement* = 0); 85 explicit HTMLImageElement(Document&, HTMLFormElement* = 0);
86 86
87 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 87 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
88 88
89 private: 89 private:
90 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 90 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
91 91
92 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 92 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
93 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 93 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
94 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 94 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
95 95
(...skipping 20 matching lines...) Expand all
116 CompositeOperator m_compositeOperator; 116 CompositeOperator m_compositeOperator;
117 AtomicString m_bestFitImageURL; 117 AtomicString m_bestFitImageURL;
118 float m_imageDevicePixelRatio; 118 float m_imageDevicePixelRatio;
119 }; 119 };
120 120
121 DEFINE_NODE_TYPE_CASTS(HTMLImageElement, hasTagName(HTMLNames::imgTag)); 121 DEFINE_NODE_TYPE_CASTS(HTMLImageElement, hasTagName(HTMLNames::imgTag));
122 122
123 } //namespace 123 } //namespace
124 124
125 #endif 125 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698