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

Unified Diff: Source/core/platform/graphics/ShadowBlur.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/ShadowBlur.cpp
diff --git a/Source/core/platform/graphics/ShadowBlur.cpp b/Source/core/platform/graphics/ShadowBlur.cpp
index 652d13a1dcc080773f835414a5a6586e65ce6693..9f2ee076c5de4f90690648a48882a916abd72862 100644
--- a/Source/core/platform/graphics/ShadowBlur.cpp
+++ b/Source/core/platform/graphics/ShadowBlur.cpp
@@ -55,7 +55,7 @@ void ShadowBlur::updateShadowBlurValues()
m_blurRadius = m_blurRadius.shrunkTo(FloatSize(128, 128));
// The type of shadow is decided by the blur radius, shadow offset, and shadow color.
- if (!m_color.isValid() || !m_color.alpha()) {
+ if (!m_color.alpha()) {
// Can't paint the shadow with invalid or invisible color.
m_type = NoShadow;
} else if (m_blurRadius.width() > 0 || m_blurRadius.height() > 0) {

Powered by Google App Engine
This is Rietveld 408576698