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

Unified Diff: Source/core/svg/ColorDistance.h

Issue 112653005: Cleanup ColorDistance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 12 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
« no previous file with comments | « no previous file | Source/core/svg/ColorDistance.cpp » ('j') | Source/core/svg/SVGAnimatedColor.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/ColorDistance.h
diff --git a/Source/core/svg/ColorDistance.h b/Source/core/svg/ColorDistance.h
index 470effb7598e78833267dbcf63478987e25d34a9..0eddc28daa2bf9c8b001d5ab45668781a51418f4 100644
--- a/Source/core/svg/ColorDistance.h
+++ b/Source/core/svg/ColorDistance.h
@@ -26,20 +26,10 @@ class Color;
class ColorDistance {
public:
- ColorDistance();
- ColorDistance(const Color& fromColor, const Color& toColor);
- ColorDistance(int redDiff, int blueDiff, int greenDiff);
-
static Color addColors(const Color&, const Color&);
- static Color clampColor(int red, int green, int blue, int alpha);
-
- float distance() const;
-
-private:
- int m_redDiff;
- int m_greenDiff;
- int m_blueDiff;
+ static float distance(const Color& fromColor, const Color& toColor);
};
+
}
#endif // ColorDistance_h
« no previous file with comments | « no previous file | Source/core/svg/ColorDistance.cpp » ('j') | Source/core/svg/SVGAnimatedColor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698