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

Unified Diff: sky/engine/platform/graphics/Color.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/platform/graphics/Color.h ('k') | sky/tests/clipping/background-opaque-clipped-gradients.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/Color.cpp
diff --git a/sky/engine/platform/graphics/Color.cpp b/sky/engine/platform/graphics/Color.cpp
index 44221a850ed7d9bc953eb2d6da69e4a87fc787cf..2e2fde5a0eb5933ecf2d09e62bb505797d7f4e95 100644
--- a/sky/engine/platform/graphics/Color.cpp
+++ b/sky/engine/platform/graphics/Color.cpp
@@ -167,14 +167,6 @@ bool Color::parseHexColor(const String& name, RGBA32& rgb)
return parseHexColor(name.characters16(), name.length(), rgb);
}
-int differenceSquared(const Color& c1, const Color& c2)
-{
- int dR = c1.red() - c2.red();
- int dG = c1.green() - c2.green();
- int dB = c1.blue() - c2.blue();
- return dR * dR + dG * dG + dB * dB;
-}
-
bool Color::setFromString(const String& name)
{
if (name[0] != '#')
« no previous file with comments | « sky/engine/platform/graphics/Color.h ('k') | sky/tests/clipping/background-opaque-clipped-gradients.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698