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

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

Issue 202633009: Add Element::subResourceAttributeName() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | Source/core/dom/Element.cpp » ('j') | Source/core/dom/Element.cpp » ('J')
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 enum AttributeModificationReason { 303 enum AttributeModificationReason {
304 ModifiedDirectly, 304 ModifiedDirectly,
305 ModifiedByCloning 305 ModifiedByCloning
306 }; 306 };
307 307
308 // This method is called whenever an attribute is added, changed or removed. 308 // This method is called whenever an attribute is added, changed or removed.
309 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly); 309 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly);
310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { } 310 virtual void parseAttribute(const QualifiedName&, const AtomicString&) { }
311 311
312 virtual bool hasLegalLinkAttribute(const QualifiedName&) const; 312 virtual bool hasLegalLinkAttribute(const QualifiedName&) const;
313 virtual const QualifiedName* subResourceAttributeName() const;
313 314
314 // Only called by the parser immediately after element construction. 315 // Only called by the parser immediately after element construction.
315 void parserSetAttributes(const Vector<Attribute>&); 316 void parserSetAttributes(const Vector<Attribute>&);
316 317
317 // Remove attributes that might introduce scripting from the vector leaving the element unchanged. 318 // Remove attributes that might introduce scripting from the vector leaving the element unchanged.
318 void stripScriptingAttributes(Vector<Attribute>&) const; 319 void stripScriptingAttributes(Vector<Attribute>&) const;
319 320
320 const ElementData* elementData() const { return m_elementData.get(); } 321 const ElementData* elementData() const { return m_elementData.get(); }
321 UniqueElementData& ensureUniqueElementData(); 322 UniqueElementData& ensureUniqueElementData();
322 323
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \ 931 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return element.predicate; } \
931 DEFINE_NODE_TYPE_CASTS(thisType, predicate) 932 DEFINE_NODE_TYPE_CASTS(thisType, predicate)
932 933
933 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ 934 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \
934 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \ 935 template <> inline bool isElementOfType<const thisType>(const Element& eleme nt) { return is##thisType(element); } \
935 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) 936 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType)
936 937
937 } // namespace 938 } // namespace
938 939
939 #endif 940 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698