diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-03-18 16:38:17 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-03-24 18:33:26 -0700 |
commit | 61710008750f03f1f66ce0b24ea92c2b0286e0e0 (patch) | |
tree | ca9565958734bdba5210691aae2f8da477685b1a /components/layout/inline.rs | |
parent | f2f05869d6ccd445df9b73e2e8d038c6cfa9e687 (diff) | |
download | servo-61710008750f03f1f66ce0b24ea92c2b0286e0e0.tar.gz servo-61710008750f03f1f66ce0b24ea92c2b0286e0e0.zip |
Highlight selected text in input fields
Fixes #9993. This does not yet allow stylesheets to set the selection colors;
instead it uses a hard-coded orange background and white foreground.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index 8784728d808..6f102f268fa 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -354,6 +354,7 @@ impl LineBreaker { let need_to_merge = match (&mut result.specific, &candidate.specific) { (&mut SpecificFragmentInfo::ScannedText(ref mut result_info), &SpecificFragmentInfo::ScannedText(ref candidate_info)) => { + result_info.selected == candidate_info.selected && util::arc_ptr_eq(&result_info.run, &candidate_info.run) && inline_contexts_are_equal(&result.inline_context, &candidate.inline_context) |