FrameSelection::textWasReplaced and setSelectedRange shouldn't trigger synchronous...
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Feb 2014 22:35:14 +0000 (22:35 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Feb 2014 22:35:14 +0000 (22:35 +0000)
commit3f8c9d5df619ec48d9c371cc126c39905e22f9f3
tree3ed7583a9136de7bfca49e3077671118cd04be96
parent656f6b49829a50dbb8b2be45c4c2fe1e10ca41ba
FrameSelection::textWasReplaced and setSelectedRange shouldn't trigger synchronous layout
https://bugs.webkit.org/show_bug.cgi?id=128951

Reviewed by Antti Koivisto.

Cleanup.

* editing/FrameSelection.cpp:
(WebCore::FrameSelection::textWasReplaced): Don't call updateLayout. It's totally unnecessarily.
(WebCore::FrameSelection::setSelectedRange): Ditto. Also removed the code to set affinity only when
range is collapsed since VisibleSelection::validate already does this.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/editing/FrameSelection.cpp