| 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 * (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 Loading... |
| 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) |
| 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 Loading... |
| 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 } |
| OLD | NEW |