diff options
author | Moonchild <moonchild@palemoon.org> | 2020-10-20 09:47:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 09:47:00 +0000 |
commit | 23a30020df8a4be6a96fd514fe870260b64a96a1 (patch) | |
tree | eb7ca4ae3da96bf3049c3da41fc511ff3154515e /layout/style/nsStyleStruct.cpp | |
parent | 87c4c77ad79f346d9104d9586c9928f30a500632 (diff) | |
parent | 95b4e5084b7fbe62609cfe9680eed5db135a57c8 (diff) | |
download | UXP-23a30020df8a4be6a96fd514fe870260b64a96a1.tar UXP-23a30020df8a4be6a96fd514fe870260b64a96a1.tar.gz UXP-23a30020df8a4be6a96fd514fe870260b64a96a1.tar.lz UXP-23a30020df8a4be6a96fd514fe870260b64a96a1.tar.xz UXP-23a30020df8a4be6a96fd514fe870260b64a96a1.zip |
Merge pull request #1670 from athenian200/caret_color
Implement CSS caret-color
Diffstat (limited to 'layout/style/nsStyleStruct.cpp')
-rw-r--r-- | layout/style/nsStyleStruct.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index cb70f03a3..c0ea9c256 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -4023,6 +4023,7 @@ nsStyleUserInterface::nsStyleUserInterface(StyleStructContext aContext) , mUserFocus(StyleUserFocus::None) , mPointerEvents(NS_STYLE_POINTER_EVENTS_AUTO) , mCursor(NS_STYLE_CURSOR_AUTO) + , mCaretColor(StyleComplexColor::Auto()) { MOZ_COUNT_CTOR(nsStyleUserInterface); } @@ -4034,6 +4035,7 @@ nsStyleUserInterface::nsStyleUserInterface(const nsStyleUserInterface& aSource) , mPointerEvents(aSource.mPointerEvents) , mCursor(aSource.mCursor) , mCursorImages(aSource.mCursorImages) + , mCaretColor(aSource.mCaretColor) { MOZ_COUNT_CTOR(nsStyleUserInterface); } @@ -4082,6 +4084,10 @@ nsStyleUserInterface::CalcDifference(const nsStyleUserInterface& aNewData) const hint |= nsChangeHint_NeutralChange; } + if (mCaretColor != aNewData.mCaretColor) { + hint |= nsChangeHint_RepaintFrame; + } + return hint; } |