diff options
author | athenian200 <athenian200@outlook.com> | 2020-09-29 11:31:46 -0500 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-10-24 10:36:47 +0000 |
commit | c1ef9546792e8d5881c9516d8e51de3cd6999f79 (patch) | |
tree | f9c493220c5af9df81cd6c1938d1d35a4a0eb1d5 /layout/generic/nsFrame.cpp | |
parent | eac19e335655e462c5a100b64d9016094cdbe34a (diff) | |
download | UXP-c1ef9546792e8d5881c9516d8e51de3cd6999f79.tar UXP-c1ef9546792e8d5881c9516d8e51de3cd6999f79.tar.gz UXP-c1ef9546792e8d5881c9516d8e51de3cd6999f79.tar.lz UXP-c1ef9546792e8d5881c9516d8e51de3cd6999f79.tar.xz UXP-c1ef9546792e8d5881c9516d8e51de3cd6999f79.zip |
Issue #1668 - Part 1: Implement support for caret-color property.
This CSS property allows input carets (that blinking input cursor you see in text fields), to be given a custom color. This was implemented in Firefox 53, and it was such a minor feature that no one ever missed it, but I don't see any harm in implementing this.
https://bugzilla.mozilla.org/show_bug.cgi?id=1063162
Diffstat (limited to 'layout/generic/nsFrame.cpp')
-rw-r--r-- | layout/generic/nsFrame.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index cb70f8b1e..71f882b17 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1833,8 +1833,7 @@ nsIFrame::DisplayCaret(nsDisplayListBuilder* aBuilder, nscolor nsIFrame::GetCaretColorAt(int32_t aOffset) { - // Use text color. - return StyleColor()->mColor; + return StyleColor()->CalcComplexColor(StyleUserInterface()->mCaretColor); } bool |