Commit 00383f31 authored by pkotwicz@chromium.org's avatar pkotwicz@chromium.org

Upon calling RenderText::SelectRange, the selection style should be applied.

The layout is generated via IsCursorablePosition, however it seems as if it needs to be regenerated once the selection model is set.

The bug manifests itself as the text selected text being the wrong color when the omnibox text is selected via Ctrl-L

BUG=105893
TEST=None


Review URL: http://codereview.chromium.org/8761005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112704 0039d316-1c4b-4281-b951-d872f2087c98
parent 39c90bbd
......@@ -511,6 +511,7 @@ void RenderText::SetSelectionModel(const SelectionModel& model) {
selection_model_.set_caret_placement(model.caret_placement());
cached_bounds_and_offset_valid_ = false;
UpdateLayout();
}
size_t RenderText::GetIndexOfPreviousGrapheme(size_t position) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment