зеркало из https://github.com/mozilla/gecko-dev.git
9092695677
IME (e.g., fcitx) may refer selection colors of widget under window which is associated with IM context to support any colored widget. So, IME expects good selection colors which have sufficient contrast between foreground and background, and also selection background color and widget background color like GtkTextView. However, some desktop themes set our widget to different selection colors from GtkTextView which may be unreadable. nsTextFrame (which paints composition string) expects that composition string colors coming from IME are sufficiently readable and background color of composition string and background color of our editor's default style (coming from LookAndFeel) have sufficient contrast because nsTextFrame assmes that composition string colors coming from IME are decided for the default style. Therefore, this patch creates SelectionStyleProvider which overwrites selection style of our widget with selection style of GtkTextView so that IME can refer selection colors of GtkTextView via our widget. MozReview-Commit-ID: 5vdcSgoEYv0 --HG-- extra : rebase_source : edf375ac393a72d3e44839a76d5c44b6db12dc63 |
||
---|---|---|
.. | ||
gtk2 | ||
gtk3 | ||
stub | ||
moz.build | ||
mozgtk.c |