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

Unified Diff: sky/engine/core/rendering/EllipsisBox.cpp

Issue 756183004: Get rid of background-clip:text and PaintBehaviorForceBlackText. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove forceBlackText Created 6 years 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
« no previous file with comments | « sky/engine/core/css/CSSPrimitiveValueMappings.h ('k') | sky/engine/core/rendering/InlineTextBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/EllipsisBox.cpp
diff --git a/sky/engine/core/rendering/EllipsisBox.cpp b/sky/engine/core/rendering/EllipsisBox.cpp
index 86e63d1e8d32ce3a911cd0190297c8c281ef1558..47147a96921f84ca2081e19f8d71a0f3f643da15 100644
--- a/sky/engine/core/rendering/EllipsisBox.cpp
+++ b/sky/engine/core/rendering/EllipsisBox.cpp
@@ -53,7 +53,7 @@ void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La
paintSelection(context, boxOrigin, style, font);
// Select the correct color for painting the text.
- Color foreground = paintInfo.forceBlackText() ? Color::black : renderer().selectionForegroundColor();
+ Color foreground = renderer().selectionForegroundColor();
if (foreground != styleTextColor)
context->setFillColor(foreground);
}
« no previous file with comments | « sky/engine/core/css/CSSPrimitiveValueMappings.h ('k') | sky/engine/core/rendering/InlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698