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

Unified Diff: Source/core/platform/graphics/GraphicsContext.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/GraphicsContext.cpp
diff --git a/Source/core/platform/graphics/GraphicsContext.cpp b/Source/core/platform/graphics/GraphicsContext.cpp
index c3a16acfc74f9936115294104a6a160a0960f33a..98dbcaab925be63c7edcc6523059a801e41af4d9 100644
--- a/Source/core/platform/graphics/GraphicsContext.cpp
+++ b/Source/core/platform/graphics/GraphicsContext.cpp
@@ -277,7 +277,7 @@ void GraphicsContext::setShadow(const FloatSize& offset, float blur, const Color
if (paintingDisabled())
return;
- if (!color.isValid() || !color.alpha() || (!offset.width() && !offset.height() && !blur)) {
+ if (!color.alpha() || (!offset.width() && !offset.height() && !blur)) {
clearShadow();
return;
}

Powered by Google App Engine
This is Rietveld 408576698