RESOLVED FIXED 117347
[rendering] Use foreground color to render the overtype caret
https://bugs.webkit.org/show_bug.cgi?id=117347
Summary [rendering] Use foreground color to render the overtype caret
Claudio Saavedra
Reported 2013-06-07 07:18:54 PDT
[rendering] Use foreground color to render the overtype caret
Attachments
Patch (4.46 KB, patch)
2013-06-07 07:22 PDT, Claudio Saavedra
darin: review+
Claudio Saavedra
Comment 1 2013-06-07 07:22:21 PDT
Darin Adler
Comment 2 2013-06-07 07:27:00 PDT
Comment on attachment 204042 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204042&action=review > Source/WebCore/rendering/RenderObject.cpp:1640 > + color = frame()->selection()->isFocusedAndActive() ? > theme()->activeSelectionBackgroundColor() : > theme()->inactiveSelectionBackgroundColor(); WebKit style guide says to put the "?" and ":" at the beginnings of lines, not the ends of lines, or this fits fine on one line, I think. > Source/WebCore/rendering/RenderView.h:344 > + bool m_selectionWasCaret; It would be better to initialize this when in the RenderView constructor, even if the code will work OK with an uninitialized boolean. If nothing else, the uninitialized read it will irritate people using memory tools like valgrind.
Claudio Saavedra
Comment 3 2013-06-07 08:37:08 PDT
Note You need to log in before you can comment on or make changes to this bug.