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

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

Issue 1876843002: Introduce few const getters for dom classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 694
695 QualifiedName m_tagName; 695 QualifiedName m_tagName;
696 696
697 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); 697 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName);
698 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); 698 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName);
699 699
700 void createUniqueElementData(); 700 void createUniqueElementData();
701 701
702 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); 702 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
703 703
704 ElementRareData* maybeElementRareData() const;
704 ElementRareData* elementRareData() const; 705 ElementRareData* elementRareData() const;
705 ElementRareData& ensureElementRareData(); 706 ElementRareData& ensureElementRareData();
706 707
707 AttrNodeList& ensureAttrNodeList(); 708 AttrNodeList& ensureAttrNodeList();
708 void removeAttrNodeList(); 709 void removeAttrNodeList();
709 void detachAllAttrNodesFromElement(); 710 void detachAllAttrNodesFromElement();
710 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); 711 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
711 void detachAttrNodeAtIndex(Attr*, size_t index); 712 void detachAttrNodeAtIndex(Attr*, size_t index);
712 713
713 v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext); 714 v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 static T* create(const QualifiedName&, Document&) 953 static T* create(const QualifiedName&, Document&)
953 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 954 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
954 T* T::create(const QualifiedName& tagName, Document& document) \ 955 T* T::create(const QualifiedName& tagName, Document& document) \
955 { \ 956 { \
956 return new T(tagName, document); \ 957 return new T(tagName, document); \
957 } 958 }
958 959
959 } // namespace blink 960 } // namespace blink
960 961
961 #endif // Element_h 962 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698