Skip to content
  • adele@apple.com's avatar
    2008-07-09 Michelangelo De Simone <m.des@mac.com> · f8491e23
    adele@apple.com authored
            Reviewed by Adele.
    
            Added the virtual function Node::isTextControl() in order to simplify text field and textarea checks.
    
            * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
            Clean up in PseudoReadOnly and PseudoReadWrite cases removing unnecessary checks and casts in favor of the sole isTextControl() check.
            * dom/Node.h: Added base isTextControl().
            * html/HTMLInputElement.h: Added isTextControl() which wraps HTMLInputElement::isTextField().
            * html/HTMLTextAreaElement.h: Added isTextControl().
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f8491e23