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

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

Issue 121793005: Mark localName() / prefix() / namespaceURI() virtual methods as FINAL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | 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, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 String tagName() const { return nodeName(); } 222 String tagName() const { return nodeName(); }
223 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match es(tagName); } 223 bool hasTagName(const QualifiedName& tagName) const { return m_tagName.match es(tagName); }
224 224
225 // Should be called only by Document::createElementNS to fix up m_tagName im mediately after construction. 225 // Should be called only by Document::createElementNS to fix up m_tagName im mediately after construction.
226 void setTagNameForCreateElementNS(const QualifiedName&); 226 void setTagNameForCreateElementNS(const QualifiedName&);
227 227
228 // A fast function for checking the local name against another atomic string . 228 // A fast function for checking the local name against another atomic string .
229 bool hasLocalName(const AtomicString& other) const { return m_tagName.localN ame() == other; } 229 bool hasLocalName(const AtomicString& other) const { return m_tagName.localN ame() == other; }
230 bool hasLocalName(const QualifiedName& other) const { return m_tagName.local Name() == other.localName(); } 230 bool hasLocalName(const QualifiedName& other) const { return m_tagName.local Name() == other.localName(); }
231 231
232 virtual const AtomicString& localName() const OVERRIDE { return m_tagName.lo calName(); } 232 virtual const AtomicString& localName() const OVERRIDE FINAL { return m_tagN ame.localName(); }
233 virtual const AtomicString& prefix() const OVERRIDE { return m_tagName.prefi x(); } 233 virtual const AtomicString& prefix() const OVERRIDE FINAL { return m_tagName .prefix(); }
234 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_tagName .namespaceURI(); } 234 virtual const AtomicString& namespaceURI() const OVERRIDE FINAL { return m_t agName.namespaceURI(); }
235 235
236 virtual KURL baseURI() const OVERRIDE FINAL; 236 virtual KURL baseURI() const OVERRIDE FINAL;
237 237
238 virtual String nodeName() const; 238 virtual String nodeName() const;
239 239
240 PassRefPtr<Element> cloneElementWithChildren(); 240 PassRefPtr<Element> cloneElementWithChildren();
241 PassRefPtr<Element> cloneElementWithoutChildren(); 241 PassRefPtr<Element> cloneElementWithoutChildren();
242 242
243 void scheduleLayerUpdate(); 243 void scheduleLayerUpdate();
244 244
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } 896 }
897 897
898 inline bool isShadowHost(const Element* element) 898 inline bool isShadowHost(const Element* element)
899 { 899 {
900 return element && element->shadow(); 900 return element && element->shadow();
901 } 901 }
902 902
903 } // namespace 903 } // namespace
904 904
905 #endif 905 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698