Skip to content
  • darin@apple.com's avatar
    WebCore: · e2948901
    darin@apple.com authored
    2009-06-20  Darin Adler  <darin@apple.com>
    
            Reviewed by Dan Bernstein.
    
            Bug 26528: REGRESSION (r44674): Assertion in TextIterator::pushFullyClippedState while counting matches for "a" on apple.com
            https://bugs.webkit.org/show_bug.cgi?id=26528
            rdar://problem/6985329
    
            * editing/TextIterator.cpp:
            (WebCore::TextIterator::handleReplacedElement): When entering a text control,
            start at the top of the shadow tree (by calling shadowTreeRootNode). Also
            remove assumption that innerTextElement will never be 0 since RenderTextControl
            doesn't really guarantee this.
    
    LayoutTests:
    
    2009-06-20  Darin Adler  <darin@apple.com>
    
            Reviewed by Dan Bernstein.
    
            Bug 26528: REGRESSION (r44674): Assertion in TextIterator::pushFullyClippedState while counting matches for "a" on apple.com
            https://bugs.webkit.org/show_bug.cgi?id=26528
            rdar://problem/6985329
    
            * editing/selection/find-in-text-control-expected.txt: Updated to expect
            finding text in <input type="text"> and <input type="search">, but not
            in <input type="password">.
    
            * editing/selection/find-in-text-control.html: Added tests for <input>
            elements as well as <textarea> elements. Also tweaked result output
            format to accomodate multiple text nodes.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e2948901