WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Claudio Saavedra
Comment 1
2013-06-07 07:22:21 PDT
Created
attachment 204042
[details]
Patch
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
Committed
r151322
: <
http://trac.webkit.org/changeset/151322
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug