| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 using namespace HTMLNames; | 46 using namespace HTMLNames; |
| 47 | 47 |
| 48 inline HTMLMetaElement::HTMLMetaElement(Document& document) | 48 inline HTMLMetaElement::HTMLMetaElement(Document& document) |
| 49 : HTMLElement(metaTag, document) | 49 : HTMLElement(metaTag, document) |
| 50 { | 50 { |
| 51 ScriptWrappable::init(this); | 51 ScriptWrappable::init(this); |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<HTMLMetaElement> HTMLMetaElement::create(Document& docume
nt) | 54 DEFINE_NODE_FACTORY(HTMLMetaElement) |
| 55 { | |
| 56 return adoptRefWillBeRefCountedGarbageCollected(new HTMLMetaElement(document
)); | |
| 57 } | |
| 58 | 55 |
| 59 static bool isInvalidSeparator(UChar c) | 56 static bool isInvalidSeparator(UChar c) |
| 60 { | 57 { |
| 61 return c == ';'; | 58 return c == ';'; |
| 62 } | 59 } |
| 63 | 60 |
| 64 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't. | 61 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't. |
| 65 static bool isSeparator(UChar c) | 62 static bool isSeparator(UChar c) |
| 66 { | 63 { |
| 67 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == '
,' || c == '\0'; | 64 return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '=' || c == '
,' || c == '\0'; |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 { | 488 { |
| 492 return getAttribute(http_equivAttr); | 489 return getAttribute(http_equivAttr); |
| 493 } | 490 } |
| 494 | 491 |
| 495 const AtomicString& HTMLMetaElement::name() const | 492 const AtomicString& HTMLMetaElement::name() const |
| 496 { | 493 { |
| 497 return getNameAttribute(); | 494 return getNameAttribute(); |
| 498 } | 495 } |
| 499 | 496 |
| 500 } | 497 } |
| OLD | NEW |