RESOLVED FIXED 135625
Add the ability to force text to render in white, not just black
https://bugs.webkit.org/show_bug.cgi?id=135625
Summary Add the ability to force text to render in white, not just black
Peyton Randolph
Reported 2014-08-05 15:32:32 PDT
One of the paint behavior options is PaintBehaviorForceBlackText. I'd like to add a corresponding behavior for forcing white text.
Attachments
Patch (13.00 KB, patch)
2014-08-05 15:41 PDT, Peyton Randolph
no flags
Patch (13.27 KB, patch)
2014-08-05 16:03 PDT, Peyton Randolph
no flags
Peyton Randolph
Comment 1 2014-08-05 15:41:00 PDT
Simon Fraser (smfr)
Comment 2 2014-08-05 15:52:58 PDT
Comment on attachment 236057 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=236057&action=review > Source/WebCore/rendering/InlineTextBox.cpp:631 > + const ShadowData* textShadow = (paintInfo.forceTextColor()) ? 0 : lineStyle.textShadow(); 0 -> nullptr > Source/WebCore/rendering/PaintPhase.h:63 > + PaintBehaviorForceWhiteText = 1 << 6, Please put this under PaintBehaviorForceBlackText and change the numbers. > Source/WebCore/rendering/TextPaintStyle.cpp:142 > + const ShadowData* shadow = paintInfo.forceTextColor() ? 0 : pseudoStyle->textShadow(); 0 -> nullptr
Peyton Randolph
Comment 3 2014-08-05 16:02:22 PDT
(In reply to comment #2) > (From update of attachment 236057 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=236057&action=review > > > Source/WebCore/rendering/InlineTextBox.cpp:631 > > + const ShadowData* textShadow = (paintInfo.forceTextColor()) ? 0 : lineStyle.textShadow(); > > 0 -> nullptr Done. > > > Source/WebCore/rendering/PaintPhase.h:63 > > + PaintBehaviorForceWhiteText = 1 << 6, > > Please put this under PaintBehaviorForceBlackText and change the numbers. Done. > > > Source/WebCore/rendering/TextPaintStyle.cpp:142 > > + const ShadowData* shadow = paintInfo.forceTextColor() ? 0 : pseudoStyle->textShadow(); > > 0 -> nullptr Done.
Peyton Randolph
Comment 4 2014-08-05 16:03:36 PDT
Beth Dakin
Comment 5 2014-08-05 16:07:10 PDT
Comment on attachment 236061 [details] Patch Re-doing Simon's r+ and adding cq+
Sam Weinig
Comment 6 2014-08-05 16:08:13 PDT
Instead of having both Black and white hard coded, should we instead just allow specifying a specific color?
WebKit Commit Bot
Comment 7 2014-08-05 16:40:40 PDT
Comment on attachment 236061 [details] Patch Clearing flags on attachment: 236061 Committed r172110: <http://trac.webkit.org/changeset/172110>
WebKit Commit Bot
Comment 8 2014-08-05 16:40:44 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.