Title: [174931] trunk/Source/WebCore
- Revision
- 174931
- Author
- zandober...@gmail.com
- Date
- 2014-10-21 01:24:45 -0700 (Tue, 21 Oct 2014)
Log Message
[Cairo] Make dashPattern, dotPattern in GraphicsContext::setPlatformStrokeStyle() const
https://bugs.webkit.org/show_bug.cgi?id=137912
Reviewed by Carlos Garcia Campos.
* platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::setPlatformStrokeStyle): Make the two static variables
constants since their value doesn't change after initialization.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (174930 => 174931)
--- trunk/Source/WebCore/ChangeLog 2014-10-21 08:05:28 UTC (rev 174930)
+++ trunk/Source/WebCore/ChangeLog 2014-10-21 08:24:45 UTC (rev 174931)
@@ -1,3 +1,14 @@
+2014-10-21 Zan Dobersek <zdober...@igalia.com>
+
+ [Cairo] Make dashPattern, dotPattern in GraphicsContext::setPlatformStrokeStyle() const
+ https://bugs.webkit.org/show_bug.cgi?id=137912
+
+ Reviewed by Carlos Garcia Campos.
+
+ * platform/graphics/cairo/GraphicsContextCairo.cpp:
+ (WebCore::GraphicsContext::setPlatformStrokeStyle): Make the two static variables
+ constants since their value doesn't change after initialization.
+
2014-10-21 Carlos Garcia Campos <cgar...@igalia.com>
[GTK] Several labels are white instead of black
Modified: trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp (174930 => 174931)
--- trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp 2014-10-21 08:05:28 UTC (rev 174930)
+++ trunk/Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp 2014-10-21 08:24:45 UTC (rev 174931)
@@ -742,8 +742,8 @@
void GraphicsContext::setPlatformStrokeStyle(StrokeStyle strokeStyle)
{
- static double dashPattern[] = {5.0, 5.0};
- static double dotPattern[] = {1.0, 1.0};
+ static const double dashPattern[] = { 5.0, 5.0 };
+ static const double dotPattern[] = { 1.0, 1.0 };
if (paintingDisabled())
return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes