Changeset 83816 in webkit
- Timestamp:
- Apr 13, 2011 10:44:29 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83814 r83816 1 2011-04-13 Roland Steiner <rolandsteiner@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Bug 58460 - childTypeAllowed() should be const 6 https://bugs.webkit.org/show_bug.cgi?id=58460 7 8 Made childTypeAllowed const. 9 10 No new tests. (minor refactoring). 11 12 * dom/Attr.cpp: 13 (WebCore::Attr::childTypeAllowed): 14 * dom/Attr.h: 15 * dom/CDATASection.cpp: 16 (WebCore::CDATASection::childTypeAllowed): 17 * dom/CDATASection.h: 18 * dom/Comment.cpp: 19 (WebCore::Comment::childTypeAllowed): 20 * dom/Comment.h: 21 * dom/Document.cpp: 22 (WebCore::Document::childTypeAllowed): 23 * dom/Document.h: 24 * dom/DocumentFragment.cpp: 25 (WebCore::DocumentFragment::childTypeAllowed): 26 * dom/DocumentFragment.h: 27 * dom/Element.cpp: 28 (WebCore::Element::childTypeAllowed): 29 * dom/Element.h: 30 * dom/Node.h: 31 (WebCore::Node::childTypeAllowed): 32 * dom/Notation.cpp: 33 (WebCore::Notation::childTypeAllowed): 34 * dom/Notation.h: 35 * dom/ProcessingInstruction.cpp: 36 (WebCore::ProcessingInstruction::childTypeAllowed): 37 * dom/ProcessingInstruction.h: 38 * dom/Text.cpp: 39 (WebCore::Text::childTypeAllowed): 40 * dom/Text.h: 41 1 42 2011-04-13 Jon Lee <jonlee@apple.com> 2 43 -
trunk/Source/WebCore/dom/Attr.cpp
r79810 r83816 153 153 154 154 // DOM Section 1.1.1 155 bool Attr::childTypeAllowed(NodeType type) 155 bool Attr::childTypeAllowed(NodeType type) const 156 156 { 157 157 switch (type) { -
trunk/Source/WebCore/dom/Attr.h
r68096 r83816 80 80 81 81 virtual bool isAttributeNode() const { return true; } 82 virtual bool childTypeAllowed(NodeType) ;82 virtual bool childTypeAllowed(NodeType) const; 83 83 84 84 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); -
trunk/Source/WebCore/dom/CDATASection.cpp
r47313 r83816 52 52 } 53 53 54 bool CDATASection::childTypeAllowed(NodeType) 54 bool CDATASection::childTypeAllowed(NodeType) const 55 55 { 56 56 return false; -
trunk/Source/WebCore/dom/CDATASection.h
r47313 r83816 38 38 virtual NodeType nodeType() const; 39 39 virtual PassRefPtr<Node> cloneNode(bool deep); 40 virtual bool childTypeAllowed(NodeType) ;40 virtual bool childTypeAllowed(NodeType) const; 41 41 virtual PassRefPtr<Text> virtualCreate(const String&); 42 42 }; -
trunk/Source/WebCore/dom/Comment.cpp
r58914 r83816 52 52 } 53 53 54 bool Comment::childTypeAllowed(NodeType) 54 bool Comment::childTypeAllowed(NodeType) const 55 55 { 56 56 return false; -
trunk/Source/WebCore/dom/Comment.h
r58914 r83816 38 38 virtual NodeType nodeType() const; 39 39 virtual PassRefPtr<Node> cloneNode(bool deep); 40 virtual bool childTypeAllowed(NodeType) ;40 virtual bool childTypeAllowed(NodeType) const; 41 41 }; 42 42 -
trunk/Source/WebCore/dom/Document.cpp
r83349 r83816 2734 2734 2735 2735 // DOM Section 1.1.1 2736 bool Document::childTypeAllowed(NodeType type) 2736 bool Document::childTypeAllowed(NodeType type) const 2737 2737 { 2738 2738 switch (type) { -
trunk/Source/WebCore/dom/Document.h
r83773 r83816 1125 1125 virtual String nodeName() const; 1126 1126 virtual NodeType nodeType() const; 1127 virtual bool childTypeAllowed(NodeType) ;1127 virtual bool childTypeAllowed(NodeType) const; 1128 1128 virtual PassRefPtr<Node> cloneNode(bool deep); 1129 1129 virtual bool canReplaceChild(Node* newChild, Node* oldChild); -
trunk/Source/WebCore/dom/DocumentFragment.cpp
r83256 r83816 53 53 } 54 54 55 bool DocumentFragment::childTypeAllowed(NodeType type) 55 bool DocumentFragment::childTypeAllowed(NodeType type) const 56 56 { 57 57 switch (type) { -
trunk/Source/WebCore/dom/DocumentFragment.h
r83796 r83816 44 44 virtual NodeType nodeType() const; 45 45 virtual PassRefPtr<Node> cloneNode(bool deep); 46 virtual bool childTypeAllowed(NodeType) ;46 virtual bool childTypeAllowed(NodeType) const; 47 47 }; 48 48 -
trunk/Source/WebCore/dom/Element.cpp
r83699 r83816 1194 1194 } 1195 1195 1196 bool Element::childTypeAllowed(NodeType type) 1196 bool Element::childTypeAllowed(NodeType type) const 1197 1197 { 1198 1198 switch (type) { -
trunk/Source/WebCore/dom/Element.h
r83256 r83816 377 377 virtual void setPrefix(const AtomicString&, ExceptionCode&); 378 378 virtual NodeType nodeType() const; 379 virtual bool childTypeAllowed(NodeType) ;379 virtual bool childTypeAllowed(NodeType) const; 380 380 381 381 virtual PassRefPtr<Attribute> createAttribute(const QualifiedName&, const AtomicString& value); -
trunk/Source/WebCore/dom/Node.h
r83349 r83816 373 373 374 374 bool isReadOnlyNode() const { return nodeType() == ENTITY_REFERENCE_NODE; } 375 virtual bool childTypeAllowed(NodeType) { return false; }375 virtual bool childTypeAllowed(NodeType) const { return false; } 376 376 unsigned childNodeCount() const; 377 377 Node* childNode(unsigned index) const; -
trunk/Source/WebCore/dom/Notation.cpp
r58925 r83816 50 50 } 51 51 52 bool Notation::childTypeAllowed(NodeType) 52 bool Notation::childTypeAllowed(NodeType) const 53 53 { 54 54 return false; -
trunk/Source/WebCore/dom/Notation.h
r47313 r83816 40 40 virtual NodeType nodeType() const; 41 41 virtual PassRefPtr<Node> cloneNode(bool deep); 42 virtual bool childTypeAllowed(NodeType) ;42 virtual bool childTypeAllowed(NodeType) const; 43 43 44 44 String m_name; -
trunk/Source/WebCore/dom/ProcessingInstruction.cpp
r79244 r83816 102 102 103 103 // DOM Section 1.1.1 104 bool ProcessingInstruction::childTypeAllowed(NodeType) 104 bool ProcessingInstruction::childTypeAllowed(NodeType) const 105 105 { 106 106 return false; -
trunk/Source/WebCore/dom/ProcessingInstruction.h
r79244 r83816 62 62 virtual void setNodeValue(const String&, ExceptionCode&); 63 63 virtual PassRefPtr<Node> cloneNode(bool deep); 64 virtual bool childTypeAllowed(NodeType) ;64 virtual bool childTypeAllowed(NodeType) const; 65 65 virtual bool offsetInCharacters() const; 66 66 virtual int maxCharacterOffset() const; -
trunk/Source/WebCore/dom/Text.cpp
r80526 r83816 293 293 } 294 294 295 bool Text::childTypeAllowed(NodeType) 295 bool Text::childTypeAllowed(NodeType) const 296 296 { 297 297 return false; -
trunk/Source/WebCore/dom/Text.h
r80526 r83816 57 57 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 58 58 virtual void recalcStyle(StyleChange = NoChange); 59 virtual bool childTypeAllowed(NodeType) ;59 virtual bool childTypeAllowed(NodeType) const; 60 60 61 61 virtual PassRefPtr<Text> virtualCreate(const String&);
Note: See TracChangeset
for help on using the changeset viewer.