[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198
simon.fraser at apple.com
simon.fraser at apple.com
Mon Feb 21 00:29:45 UTC 2011
The following commit has been merged in the webkit-1.3 branch:
commit 56546e818fe62d388a3a12a6355872b61798ee15
Author: simon.fraser at apple.com <simon.fraser at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Feb 1 05:33:08 2011 +0000
2011-01-31 Simon Fraser <simon.fraser at apple.com>
Fix according to reviewer comments: can just use Color::black now.
* platform/graphics/ShadowBlur.cpp:
(WebCore::ShadowBlur::drawInsetShadow):
(WebCore::ShadowBlur::drawRectShadowWithoutTiling):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77215 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 707d119..03a7a2e 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,5 +1,13 @@
2011-01-31 Simon Fraser <simon.fraser at apple.com>
+ Fix according to reviewer comments: can just use Color::black now.
+
+ * platform/graphics/ShadowBlur.cpp:
+ (WebCore::ShadowBlur::drawInsetShadow):
+ (WebCore::ShadowBlur::drawRectShadowWithoutTiling):
+
+2011-01-31 Simon Fraser <simon.fraser at apple.com>
+
Reviewed by Sam Weinig.
Clean up ShadowBlur
diff --git a/Source/WebCore/platform/graphics/ShadowBlur.cpp b/Source/WebCore/platform/graphics/ShadowBlur.cpp
index 1863587..c397c7f 100644
--- a/Source/WebCore/platform/graphics/ShadowBlur.cpp
+++ b/Source/WebCore/platform/graphics/ShadowBlur.cpp
@@ -409,7 +409,7 @@ void ShadowBlur::drawInsetShadow(GraphicsContext* graphicsContext, const FloatRe
path.addRoundedRect(holeRect, holeRadii.topLeft(), holeRadii.topRight(), holeRadii.bottomLeft(), holeRadii.bottomRight());
shadowContext->setFillRule(RULE_EVENODD);
- shadowContext->setFillColor(Color(.0f, .0f, .0f, 1.f), ColorSpaceDeviceRGB);
+ shadowContext->setFillColor(Color::black, ColorSpaceDeviceRGB);
shadowContext->fillPath(path);
endShadowLayer(graphicsContext);
@@ -424,7 +424,7 @@ void ShadowBlur::drawRectShadowWithoutTiling(GraphicsContext* graphicsContext, c
Path path;
path.addRoundedRect(shadowedRect, radii.topLeft(), radii.topRight(), radii.bottomLeft(), radii.bottomRight());
- shadowContext->setFillColor(Color(.0f, .0f, .0f, 1.f), ColorSpaceDeviceRGB);
+ shadowContext->setFillColor(Color::black, ColorSpaceDeviceRGB);
shadowContext->fillPath(path);
endShadowLayer(graphicsContext);
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list