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

Unified Diff: Source/core/rendering/style/ShadowData.cpp

Issue 23241010: Support subpixel values for text-shadow and box-shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed review comments Created 6 years, 11 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 | « Source/core/rendering/style/ShadowData.h ('k') | Source/core/rendering/style/ShadowList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/ShadowData.cpp
diff --git a/Source/core/rendering/style/ShadowData.cpp b/Source/core/rendering/style/ShadowData.cpp
index 7f81d909f6bd37d52a1a0ad6f1d6171e2223fff4..d89b03e74e893f30ef04d5954d97d0af7ec741dc 100644
--- a/Source/core/rendering/style/ShadowData.cpp
+++ b/Source/core/rendering/style/ShadowData.cpp
@@ -41,7 +41,7 @@ ShadowData ShadowData::blend(const ShadowData& from, double progress) const
return *this;
return ShadowData(WebCore::blend(from.location(), location(), progress),
- clampTo<int>(WebCore::blend(from.blur(), blur(), progress), 0),
+ clampTo(WebCore::blend(from.blur(), blur(), progress), 0.0f),
WebCore::blend(from.spread(), spread(), progress),
style(),
WebCore::blend(from.color(), color(), progress));
« no previous file with comments | « Source/core/rendering/style/ShadowData.h ('k') | Source/core/rendering/style/ShadowList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698