12014-04-24 Darin Adler <darin@apple.com>
2
3 REGRESSION (r164133): Selection doesn't paint when scrolling some pages
4 https://bugs.webkit.org/show_bug.cgi?id=132172
5 rdar://problem/16719473
6
7 Reviewed by NOBODY (OOPS!).
8
9 Tests: fast/dynamic/remove-invisible-node-inside-selection.html
10 fast/dynamic/remove-node-inside-selection.html
11
12 * editing/FrameSelection.cpp:
13 (WebCore::clearRenderViewSelection): Changed to take a Node& because having
14 this take a Position& was unnecessary and strange, when really it just needs
15 to take a document as an argument.
16 (WebCore::DragCaretController::nodeWillBeRemoved): Updated for the above.
17 (WebCore::FrameSelection::respondToNodeModification): Added code to set the
18 m_pendingSelectionUpdate flag and call RenderView::setNeedsLayout so the
19 selection will be recomputed after it's temporarily cleared when one of
20 the selected nodes is removed.
21