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

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

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 * (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 27 matching lines...) Expand all
38 } else { \ 38 } else { \
39 unsigned bufferLength = std::min(uMaxMatchLength, source.length()); \ 39 unsigned bufferLength = std::min(uMaxMatchLength, source.length()); \
40 const LChar* characters8 = source.characters8(); \ 40 const LChar* characters8 = source.characters8(); \
41 for (unsigned i = 0; i < bufferLength; ++i) \ 41 for (unsigned i = 0; i < bufferLength; ++i) \
42 characterBuffer[i] = characters8[i]; \ 42 characterBuffer[i] = characters8[i]; \
43 name = characterBuffer; \ 43 name = characterBuffer; \
44 } 44 }
45 45
46 using namespace HTMLNames; 46 using namespace HTMLNames;
47 47
48 inline HTMLMetaElement::HTMLMetaElement(const QualifiedName& tagName, Document& document) 48 inline HTMLMetaElement::HTMLMetaElement(Document& document)
49 : HTMLElement(tagName, document) 49 : HTMLElement(metaTag, document)
50 { 50 {
51 ASSERT(hasTagName(metaTag));
52 ScriptWrappable::init(this); 51 ScriptWrappable::init(this);
53 } 52 }
54 53
55 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(Document& document) 54 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(Document& document)
56 { 55 {
57 return adoptRef(new HTMLMetaElement(metaTag, document)); 56 return adoptRef(new HTMLMetaElement(document));
58 }
59
60 PassRefPtr<HTMLMetaElement> HTMLMetaElement::create(const QualifiedName& tagName , Document& document)
61 {
62 return adoptRef(new HTMLMetaElement(tagName, document));
63 } 57 }
64 58
65 static bool isInvalidSeparator(UChar c) 59 static bool isInvalidSeparator(UChar c)
66 { 60 {
67 return c == ';'; 61 return c == ';';
68 } 62 }
69 63
70 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't. 64 // Though isspace() considers \t and \v to be whitespace, Win IE doesn't.
71 static bool isSeparator(UChar c) 65 static bool isSeparator(UChar c)
72 { 66 {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 { 480 {
487 return getAttribute(http_equivAttr); 481 return getAttribute(http_equivAttr);
488 } 482 }
489 483
490 String HTMLMetaElement::name() const 484 String HTMLMetaElement::name() const
491 { 485 {
492 return getNameAttribute(); 486 return getNameAttribute();
493 } 487 }
494 488
495 } 489 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698