Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: third_party/WebKit/Source/core/paint/TextPainter.cpp

Issue 2027653004: Adjust color for printing list-item markers as we do for text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/TextPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TextPainter.cpp b/third_party/WebKit/Source/core/paint/TextPainter.cpp
index 4b0bd92e84eed5819695f9596aa77cdbe99f2daf..307a9069756254092752d05e4c19b2e70e08fcfb 100644
--- a/third_party/WebKit/Source/core/paint/TextPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TextPainter.cpp
@@ -109,7 +109,7 @@ void TextPainter::updateGraphicsContext(GraphicsContext& context, const Style& t
}
}
-static Color textColorForWhiteBackground(Color textColor)
+Color TextPainter::textColorForWhiteBackground(Color textColor)
{
int distanceFromWhite = differenceSquared(textColor, Color::white);
// semi-arbitrarily chose 65025 (255^2) value here after a few tests;

Powered by Google App Engine
This is Rietveld 408576698