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

Side by Side Diff: third_party/WebKit/Source/core/dom/Attr.h

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 62 DECLARE_VIRTUAL_TRACE_WRAPPERS();
63 63
64 private: 64 private:
65 Attr(Element&, const QualifiedName&); 65 Attr(Element&, const QualifiedName&);
66 Attr(Document&, const QualifiedName&, const AtomicString& value); 66 Attr(Document&, const QualifiedName&, const AtomicString& value);
67 67
68 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 68 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
69 69
70 String nodeName() const override { return name(); } 70 String nodeName() const override { return name(); }
71 NodeType getNodeType() const override { return ATTRIBUTE_NODE; } 71 NodeType getNodeType() const override { return kAttributeNode; }
72 72
73 String nodeValue() const override { return value(); } 73 String nodeValue() const override { return value(); }
74 void setNodeValue(const String&) override; 74 void setNodeValue(const String&) override;
75 Node* cloneNode(bool deep) override; 75 Node* cloneNode(bool deep) override;
76 76
77 bool isAttributeNode() const override { return true; } 77 bool isAttributeNode() const override { return true; }
78 78
79 // Attr wraps either an element/name, or a name/value pair (when it's a stan dalone Node.) 79 // Attr wraps either an element/name, or a name/value pair (when it's a stan dalone Node.)
80 // Note that m_name is always set, but m_element/m_standaloneValue may be nu ll. 80 // Note that m_name is always set, but m_element/m_standaloneValue may be nu ll.
81 Member<Element> m_element; 81 Member<Element> m_element;
82 QualifiedName m_name; 82 QualifiedName m_name;
83 // Holds the value if it is a standalone Node, or the local name of the 83 // Holds the value if it is a standalone Node, or the local name of the
84 // attribute it is attached to on an Element. The latter may (letter case) 84 // attribute it is attached to on an Element. The latter may (letter case)
85 // differ from m_name's local name. As these two modes are non-overlapping, 85 // differ from m_name's local name. As these two modes are non-overlapping,
86 // use a single field. 86 // use a single field.
87 AtomicString m_standaloneValueOrAttachedLocalName; 87 AtomicString m_standaloneValueOrAttachedLocalName;
88 }; 88 };
89 89
90 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 90 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // Attr_h 94 #endif // Attr_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/ElementRuleCollector.cpp ('k') | third_party/WebKit/Source/core/dom/CDATASection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698