This is from the comment https://bugs.webkit.org/show_bug.cgi?id=38688#c18. This change cannot remove type casting in the code, but it is still the right thing to do.
Created attachment 55844 [details] Patch
Comment on attachment 55844 [details] Patch > +#include "HTMLFormControlElement.h" I think a forward declaration of the class will suffice here, instead of including the header.
(In reply to comment #2) > (From update of attachment 55844 [details]) > > +#include "HTMLFormControlElement.h" > > I think a forward declaration of the class will suffice here, instead of including the header. Thanks for your review. I added the header due to problem compiling DOMHTMLLabelElement.mm. Perhaps there was a better way to fix the compile error.
Committed r59248: <http://trac.webkit.org/changeset/59248>