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

Unified Diff: Source/core/html/HTMLElement.h

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLDivElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.h
diff --git a/Source/core/html/HTMLElement.h b/Source/core/html/HTMLElement.h
index 40eafa300ef356ccabd5395ee1654938eb69e833..97d8104d176d13066b2a22650c785bf9216af1f1 100644
--- a/Source/core/html/HTMLElement.h
+++ b/Source/core/html/HTMLElement.h
@@ -40,7 +40,7 @@ enum TranslateAttributeMode {
class HTMLElement : public Element {
public:
- static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document*);
+ static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document&);
virtual String title() const OVERRIDE FINAL;
@@ -96,7 +96,7 @@ public:
virtual void defaultEventHandler(Event*) OVERRIDE;
protected:
- HTMLElement(const QualifiedName& tagName, Document*, ConstructionType);
+ HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
void addHTMLLengthToStyle(MutableStylePropertySet*, CSSPropertyID, const String& value);
void addHTMLColorToStyle(MutableStylePropertySet*, CSSPropertyID, const String& color);
@@ -150,8 +150,8 @@ inline const HTMLElement* toHTMLElement(const Node* node)
// This will catch anyone doing an unnecessary cast.
void toHTMLElement(const HTMLElement*);
-inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document* document, ConstructionType type = CreateHTMLElement)
- : Element(tagName, document, type)
+inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document, ConstructionType type = CreateHTMLElement)
+ : Element(tagName, &document, type)
{
ASSERT(tagName.localName().impl());
ScriptWrappable::init(this);
« no previous file with comments | « Source/core/html/HTMLDivElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698