diff options
author | athenian200 <athenian200@outlook.com> | 2020-09-29 11:31:46 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-10-18 10:04:12 -0500 |
commit | 8e3832bacbbef4a549f64df5c978a5672e47ff2e (patch) | |
tree | 6a3afb705aa7ae2a9f2be65cd6f5628fcc72131a /layout/style/nsComputedDOMStyle.cpp | |
parent | 5ad0a15f6a60e24fb260e4a0d0d8050e42c33114 (diff) | |
download | UXP-8e3832bacbbef4a549f64df5c978a5672e47ff2e.tar UXP-8e3832bacbbef4a549f64df5c978a5672e47ff2e.tar.gz UXP-8e3832bacbbef4a549f64df5c978a5672e47ff2e.tar.lz UXP-8e3832bacbbef4a549f64df5c978a5672e47ff2e.tar.xz UXP-8e3832bacbbef4a549f64df5c978a5672e47ff2e.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/style/nsComputedDOMStyle.cpp')
-rw-r--r-- | layout/style/nsComputedDOMStyle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 1032be651..c0cc0f84b 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -4189,6 +4189,14 @@ nsComputedDOMStyle::DoGetUnicodeBidi() } already_AddRefed<CSSValue> +nsComputedDOMStyle::DoGetCaretColor() +{ + RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue; + SetValueFromComplexColor(val, StyleUserInterface()->mCaretColor); + return val.forget(); +} + +already_AddRefed<CSSValue> nsComputedDOMStyle::DoGetCursor() { RefPtr<nsDOMCSSValueList> valueList = GetROCSSValueList(true); |