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

Unified Diff: Source/core/platform/graphics/DrawLooper.cpp

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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: Source/core/platform/graphics/DrawLooper.cpp
diff --git a/Source/core/platform/graphics/DrawLooper.cpp b/Source/core/platform/graphics/DrawLooper.cpp
index a1425c6f645cd30b05d2904b423090f99b503209..ef906ae10c1a01e05e7380cbfc64e5129505cdbf 100644
--- a/Source/core/platform/graphics/DrawLooper.cpp
+++ b/Source/core/platform/graphics/DrawLooper.cpp
@@ -53,14 +53,10 @@ void DrawLooper::addShadow(const FloatSize& offset, float blur, const Color& col
ShadowTransformMode shadowTransformMode, ShadowAlphaMode shadowAlphaMode)
{
// Detect when there's no effective shadow.
- if (!color.isValid() || !color.alpha())
+ if (!color.alpha())
return;
- SkColor skColor;
- if (color.isValid())
- skColor = color.rgb();
- else
- skColor = SkColorSetARGB(0xFF / 3, 0, 0, 0); // "std" apple shadow color.
+ SkColor skColor = color.rgb();
SkLayerDrawLooper::LayerInfo info;

Powered by Google App Engine
This is Rietveld 408576698