• 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
            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:
    2010-05-20  James Robinson  <jamesr@chromium.org>
            Reviewed by Eric Seidel.
            Tests putting focus into a textarea and setting display:none
            * 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
ChangeLog 1.09 MB