[rendering] Use foreground color to render the overtype caret
Created attachment 204042 [details]
Comment on attachment 204042 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=204042&action=review
> + color = frame()->selection()->isFocusedAndActive() ?
> theme()->activeSelectionBackgroundColor() :
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.
> + 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.
Committed r151322: <http://trac.webkit.org/changeset/151322>