-
antti@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=120430 Reviewed by Andreas Kling This patch adds const-correct DOM tree traversal iterators. It also uses them in a few places. Some const_casts have been applied where constness breaks. * dom/ChildIterator.h: (WebCore::::ChildConstIterator): (WebCore::::operator): (WebCore::=): (WebCore::::ChildConstIteratorAdapter): (WebCore::::begin): (WebCore::::end): (WebCore::elementChildren): (WebCore::childrenOfType): * dom/DescendantIterator.h: (WebCore::::DescendantConstIterator): (WebCore::::operator): (WebCore::=): (WebCore::::DescendantConstIteratorAdapter): (WebCore::::begin): (WebCore::::end): (WebCore::elementDescendants): (WebCore::descendantsOfType): * dom/Node.cpp: (WebCore::Node::numberOfScopedHTMLStyleChildren): * html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::legend): * html/HTMLFieldSetElement.h: * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::finishParsingChildren): * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::containsJavaApplet): * svg/SVGElement.cpp: (WebCore::SVGElement::title): * svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::collectIntersectionOrEnclosureList): (WebCore::SVGSVGElement::checkIntersection): (WebCore::SVGSVGElement::checkEnclosure): (WebCore::SVGSVGElement::getElementById): * svg/SVGSVGElement.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6005794d