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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/HTMLNoEmbedElement.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('k') | Source/core/html/HTMLNoEmbedElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698