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

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

Issue 1254243002: Remove Node.localName and Node.namespaceURI (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test failure Created 5 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
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/dom/Element.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void setValue(const AtomicString&); 46 void setValue(const AtomicString&);
47 47
48 const AtomicString& valueForBindings() const; 48 const AtomicString& valueForBindings() const;
49 void setValueForBindings(const AtomicString&); 49 void setValueForBindings(const AtomicString&);
50 50
51 const QualifiedName qualifiedName() const; 51 const QualifiedName qualifiedName() const;
52 52
53 void attachToElement(Element*, const AtomicString&); 53 void attachToElement(Element*, const AtomicString&);
54 void detachFromElementWithValue(const AtomicString&); 54 void detachFromElementWithValue(const AtomicString&);
55 55
56 const AtomicString& localName() const override { return m_name.localName(); } 56 const AtomicString& localName() const { return m_name.localName(); }
57 const AtomicString& namespaceURI() const override { return m_name.namespaceU RI(); } 57 const AtomicString& namespaceURI() const { return m_name.namespaceURI(); }
58 const AtomicString& prefix() const { return m_name.prefix(); } 58 const AtomicString& prefix() const { return m_name.prefix(); }
59 59
60 DECLARE_VIRTUAL_TRACE(); 60 DECLARE_VIRTUAL_TRACE();
61 61
62 private: 62 private:
63 Attr(Element&, const QualifiedName&); 63 Attr(Element&, const QualifiedName&);
64 Attr(Document&, const QualifiedName&, const AtomicString& value); 64 Attr(Document&, const QualifiedName&, const AtomicString& value);
65 65
66 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 66 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
67 67
(...skipping 15 matching lines...) Expand all
83 // differ from m_name's local name. As these two modes are non-overlapping, 83 // differ from m_name's local name. As these two modes are non-overlapping,
84 // use a single field. 84 // use a single field.
85 AtomicString m_standaloneValueOrAttachedLocalName; 85 AtomicString m_standaloneValueOrAttachedLocalName;
86 }; 86 };
87 87
88 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 88 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // Attr_h 92 #endif // Attr_h
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698