HTMLOptionsCollection is always rooted at a HTMLSelectElement.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Nov 2013 06:54:12 +0000 (06:54 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Nov 2013 06:54:12 +0000 (06:54 +0000)
commitf644a997a4dd5df9ad93df3a2f423dd208738cba
tree547a5b63a0713df26e5be3adabce88e60b1dca0f
parent2458c24f48f33394b39510be981eac4676b8fde9
HTMLOptionsCollection is always rooted at a HTMLSelectElement.
<https://webkit.org/b/123719>

Tighten up HTMLOptionsCollection by making the constructor take
a HTMLSelectElement& and adding a HTMLSelectElement& getter instead
of casting all over the place. Removed now-pointless assertions.

Reviewed by Sam Weinig.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/NodeRareData.h
Source/WebCore/html/HTMLOptionsCollection.cpp
Source/WebCore/html/HTMLOptionsCollection.h
Source/WebCore/html/HTMLSelectElement.h