• jamesr@google.com's avatar
    2010-05-20 James Robinson <jamesr@chromium.org> · 3ba18e88
    jamesr@google.com authored
            Reviewed by Eric Seidel.
    
            Ensures styles are up-to-date before determining selection
            https://bugs.webkit.org/show_bug.cgi?id=39389
    
            This adds a call to document::updateStyleIfNeeded() to
            Frame::notifyRendererOfSelectionChange(). Without this call, if there
            is a pending style update that will detach part of the DOM and the
            the selection is within that part of the DOM when
            notifyRendererOfSeletionChange is called, the rootEditableElement
            algorithm ends up walking through detached parts of the render tree.
    
            Test: editing/selection/focus-and-display-none.html
    
            * page/Frame.cpp:
            (WebCore::Frame::notifyRendererOfSelectionChange):
    2010-05-20  James Robinson  <jamesr@chromium.org>
    
            Reviewed by Eric Seidel.
    
            Tests putting focus into a textarea and setting display:none
            https://bugs.webkit.org/show_bug.cgi?id=39389
    
            * editing/selection/focus-and-display-none-expected.txt: Added.
            * editing/selection/focus-and-display-none.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3ba18e88
ChangeLog 1.09 MB