-
antti@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=123794 Reviewed by Andreas Kling. HTMLCollection and NodeList are unrelated types in DOM yet our HTMLCollection inherits NodeList for code sharing reasons. While some code does get shared the types are sufficiently different that this results in lots of unnecessary branches, complexity and general awkwardness. Code sharing can be better achieved by means other than inheritance. This patch splits HTMLCollection from NodeList by copy-pasting and eliminating resulting redundancies. Sharing comes later. * dom/Attr.cpp: (WebCore::Attr::setValue): (WebCore::Attr::childrenChanged): * dom/ClassNodeList.cpp: (WebCore::ClassNodeList::~ClassNodeList): * dom/ContainerNode.cpp: (WebCore::ContainerNode::childrenChanged): (WebCore::ContainerNode::getElementsByTagName): (WebCore::ContainerNode::getElementsByName): (WebCore::ContainerNode::getElementsByClassName): (WebCore::ContainerNode::radioNodeList): * dom/Document.cpp: (WebCor...
ac464094