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

Side by Side Diff: Source/core/dom/Element.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 | « Source/core/dom/Attr.h ('k') | Source/core/dom/Node.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-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match es(tagName); } 234 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match es(tagName); }
235 bool hasTagName(const HTMLQualifiedName& tagName) const { return ContainerNo de::hasTagName(tagName); } 235 bool hasTagName(const HTMLQualifiedName& tagName) const { return ContainerNo de::hasTagName(tagName); }
236 bool hasTagName(const SVGQualifiedName& tagName) const { return ContainerNod e::hasTagName(tagName); } 236 bool hasTagName(const SVGQualifiedName& tagName) const { return ContainerNod e::hasTagName(tagName); }
237 237
238 // Should be called only by Document::createElementNS to fix up m_tagName im mediately after construction. 238 // Should be called only by Document::createElementNS to fix up m_tagName im mediately after construction.
239 void setTagNameForCreateElementNS(const QualifiedName&); 239 void setTagNameForCreateElementNS(const QualifiedName&);
240 240
241 // A fast function for checking the local name against another atomic string . 241 // A fast function for checking the local name against another atomic string .
242 bool hasLocalName(const AtomicString& other) const { return m_tagName.localN ame() == other; } 242 bool hasLocalName(const AtomicString& other) const { return m_tagName.localN ame() == other; }
243 243
244 const AtomicString& localName() const final { return m_tagName.localName(); } 244 const AtomicString& localName() const { return m_tagName.localName(); }
245 AtomicString localNameForSelectorMatching() const; 245 AtomicString localNameForSelectorMatching() const;
246 const AtomicString& prefix() const { return m_tagName.prefix(); } 246 const AtomicString& prefix() const { return m_tagName.prefix(); }
247 const AtomicString& namespaceURI() const final { return m_tagName.namespaceU RI(); } 247 const AtomicString& namespaceURI() const { return m_tagName.namespaceURI(); }
248 248
249 const AtomicString& locateNamespacePrefix(const AtomicString& namespaceURI) const; 249 const AtomicString& locateNamespacePrefix(const AtomicString& namespaceURI) const;
250 250
251 String nodeName() const override; 251 String nodeName() const override;
252 252
253 PassRefPtrWillBeRawPtr<Element> cloneElementWithChildren(); 253 PassRefPtrWillBeRawPtr<Element> cloneElementWithChildren();
254 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutChildren(); 254 PassRefPtrWillBeRawPtr<Element> cloneElementWithoutChildren();
255 255
256 void scheduleSVGFilterLayerUpdateHack(); 256 void scheduleSVGFilterLayerUpdateHack();
257 257
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 882 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
883 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 883 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
884 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 884 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
885 { \ 885 { \
886 return adoptRefWillBeNoop(new T(tagName, document)); \ 886 return adoptRefWillBeNoop(new T(tagName, document)); \
887 } 887 }
888 888
889 } // namespace 889 } // namespace
890 890
891 #endif // Element_h 891 #endif // Element_h
OLDNEW
« no previous file with comments | « Source/core/dom/Attr.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698