https://bugs.webkit.org/show_bug.cgi?id=140372
<rdar://problem/
19426485>
Reviewed by Eric Carlson.
No new tests because there is no visible behavior change.
* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::setPlatformStrokeThickness):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178306
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-01-12 Myles C. Maxfield <mmaxfield@apple.com>
+
+ [Apple] Squelch stderr log regarding negative stroke thickness
+ https://bugs.webkit.org/show_bug.cgi?id=140372
+ <rdar://problem/19426485>
+
+ Reviewed by Eric Carlson.
+
+ No new tests because there is no visible behavior change.
+
+ * platform/graphics/cg/GraphicsContextCG.cpp:
+ (WebCore::GraphicsContext::setPlatformStrokeThickness):
+
2015-01-12 Timothy Horton <timothy_horton@apple.com>
Get rid of unnecessary reimplementations of CGFloor/Ceiling
{
if (paintingDisabled())
return;
- CGContextSetLineWidth(platformContext(), thickness);
+ CGContextSetLineWidth(platformContext(), std::max(thickness, 0.f));
}
void GraphicsContext::setPlatformFillColor(const Color& color, ColorSpace colorSpace)