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

Side by Side Diff: Source/core/html/HTMLMetaElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('k') | Source/core/html/HTMLMeterElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2010 Apple 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 12 matching lines...) Expand all
23 #include "config.h" 23 #include "config.h"
24 #include "core/html/HTMLMetaElement.h" 24 #include "core/html/HTMLMetaElement.h"
25 25
26 #include "HTMLNames.h" 26 #include "HTMLNames.h"
27 #include "core/dom/Document.h" 27 #include "core/dom/Document.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 using namespace HTMLNames; 31 using namespace HTMLNames;
32 32
33 inline HTMLMetaElement::HTMLMetaElement(const QualifiedName& tagName, Document* document) 33 inline HTMLMetaElement::HTMLMetaElement(const QualifiedName& tagName, Document& document)
kenneth.r.christiansen 2013/09/03 10:01:55 This is great especially as the class uses Documen
34 : HTMLElement(tagName, document) 34 : HTMLElement(tagName, document)
35 { 35 {
36 ASSERT(hasTagName(metaTag)); 36 ASSERT(hasTagName(metaTag));
37 ScriptWrappable::init(this); 37 ScriptWrappable::init(this);
38 } 38 }
39 39
40 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(Document* document) 40 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(Document& document)
41 { 41 {
42 return adoptRef(new HTMLMetaElement(metaTag, document)); 42 return adoptRef(new HTMLMetaElement(metaTag, document));
43 } 43 }
44 44
45 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(const QualifiedName& tagName , Document* document) 45 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(const QualifiedName& tagName , Document& document)
46 { 46 {
47 return adoptRef(new HTMLMetaElement(tagName, document)); 47 return adoptRef(new HTMLMetaElement(tagName, document));
48 } 48 }
49 49
50 void HTMLMetaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 50 void HTMLMetaElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
51 { 51 {
52 if (name == http_equivAttr) 52 if (name == http_equivAttr)
53 process(); 53 process();
54 else if (name == contentAttr) 54 else if (name == contentAttr)
55 process(); 55 process();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { 101 {
102 return getAttribute(http_equivAttr); 102 return getAttribute(http_equivAttr);
103 } 103 }
104 104
105 String HTMLMetaElement::name() const 105 String HTMLMetaElement::name() const
106 { 106 {
107 return getNameAttribute(); 107 return getNameAttribute();
108 } 108 }
109 109
110 } 110 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('k') | Source/core/html/HTMLMeterElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698