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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 2711983002: Paint dotted borders using circular dots (Closed)
Patch Set: Review comments. Created 3 years, 10 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: third_party/WebKit/Source/platform/graphics/GraphicsContext.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
index 3c164c746c9a52cb2cf0974cf5c6f17fd1b87ae9..4cf8dd5d692fad3535c9dad91c20b8c09cbf2398 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -411,6 +411,11 @@ class PLATFORM_EXPORT GraphicsContext {
const FloatRoundedRect& roundedHoleRect,
const Color&);
+ // Determine whether a stroked line should be drawn using dashes. In practice,
+ // we draw dashes when a dashed stroke is specified or when a dotted stroke
+ // is specified but the line width is too small to draw circles.
+ static bool strokeIsDashed(float width, StrokeStyle);
+
const SkMetaData& metaData() const { return m_metaData; }
// null indicates painting is contextDisabled. Never delete this object.

Powered by Google App Engine
This is Rietveld 408576698