diff options
author | athenian200 <athenian200@outlook.com> | 2020-10-18 10:12:53 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-10-18 10:12:53 -0500 |
commit | 1fc996152b7a1b0f61287c85ddc1698013ea63c0 (patch) | |
tree | 1c5df7412fb07f6cff2bb5785c8663b38e5b8f64 /layout/generic/nsFrame.cpp | |
parent | 8e3832bacbbef4a549f64df5c978a5672e47ff2e (diff) | |
download | uxp-1fc996152b7a1b0f61287c85ddc1698013ea63c0.tar.gz |
Issue #1668 - Part 2: Visited color and auto support for caret-color property.
Mozilla's original implementation of this failed a couple of tests, but this seems to solve all the problems. Basically, the caret-color wasn't able to be set differently based on whether a link was visited, and the auto value implementation was incomplete. The only test we fail now is the one where you have grey text on a grey background and the caret is supposed to be visible, but I think that may have been removed from the spec. Even if it wasn't, no other browser supports it anyway.
Diffstat (limited to 'layout/generic/nsFrame.cpp')
-rw-r--r-- | layout/generic/nsFrame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 7f67c7d684..a9e6354abe 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1831,7 +1831,7 @@ nsIFrame::DisplayCaret(nsDisplayListBuilder* aBuilder, nscolor nsIFrame::GetCaretColorAt(int32_t aOffset) { - return StyleColor()->CalcComplexColor(StyleUserInterface()->mCaretColor); + return nsLayoutUtils::GetColor(this, eCSSProperty_caret_color); } bool |