Text caret changes to color of text in Mail and Notes
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Sep 2014 00:55:07 +0000 (00:55 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Sep 2014 00:55:07 +0000 (00:55 +0000)
commit9b5a9197829464a13e177cdf5539a63988843756
treed279e08e1b5ed250c5dd3c81a799a5bee69ec629
parent40e81e47b30f5f99b577c5ce508f2f27581c9a51
Text caret changes to color of text in Mail and Notes
https://bugs.webkit.org/show_bug.cgi?id=135904

Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2014-09-03
Reviewed by Simon Fraser.

Source/WebCore:

Consult with the background color of spans inside editable divs to determine what color
the caret should be.

Test: editing/caret/color-span-inside-editable.html

* editing/FrameSelection.cpp:
(WebCore::CaretBase::paintCaret):

LayoutTests:

Make sure the caret is the correct color.

* editing/caret/color-span-inside-editable-expected.html: Added.
* editing/caret/color-span-inside-editable.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/caret/color-span-inside-editable-expected.html [new file with mode: 0644]
LayoutTests/editing/caret/color-span-inside-editable.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/FrameSelection.cpp