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

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

Issue 2912383002: Add support for Element.getAttributeNames() (Closed)
Patch Set: rebased Created 3 years, 6 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-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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 const StylePropertySet* PresentationAttributeStyle(); 361 const StylePropertySet* PresentationAttributeStyle();
362 virtual bool IsPresentationAttribute(const QualifiedName&) const { 362 virtual bool IsPresentationAttribute(const QualifiedName&) const {
363 return false; 363 return false;
364 } 364 }
365 virtual void CollectStyleForPresentationAttribute(const QualifiedName&, 365 virtual void CollectStyleForPresentationAttribute(const QualifiedName&,
366 const AtomicString&, 366 const AtomicString&,
367 MutableStylePropertySet*) {} 367 MutableStylePropertySet*) {}
368 368
369 // For exposing to DOM only. 369 // For exposing to DOM only.
370 NamedNodeMap* attributesForBindings() const; 370 NamedNodeMap* attributesForBindings() const;
371 Vector<AtomicString> getAttributeNames() const;
371 372
372 enum class AttributeModificationReason { kDirectly, kByParser, kByCloning }; 373 enum class AttributeModificationReason { kDirectly, kByParser, kByCloning };
373 struct AttributeModificationParams { 374 struct AttributeModificationParams {
374 STACK_ALLOCATED(); 375 STACK_ALLOCATED();
375 AttributeModificationParams(const QualifiedName& qname, 376 AttributeModificationParams(const QualifiedName& qname,
376 const AtomicString& old_value, 377 const AtomicString& old_value,
377 const AtomicString& new_value, 378 const AtomicString& new_value,
378 AttributeModificationReason reason) 379 AttributeModificationReason reason)
379 : name(qname), 380 : name(qname),
380 old_value(old_value), 381 old_value(old_value),
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1240 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1240 static T* Create(const QualifiedName&, Document&) 1241 static T* Create(const QualifiedName&, Document&)
1241 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1242 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1242 T* T::Create(const QualifiedName& tagName, Document& document) { \ 1243 T* T::Create(const QualifiedName& tagName, Document& document) { \
1243 return new T(tagName, document); \ 1244 return new T(tagName, document); \
1244 } 1245 }
1245 1246
1246 } // namespace blink 1247 } // namespace blink
1247 1248
1248 #endif // Element_h 1249 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698