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

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

Issue 2416603002: Add ability to compute text intercepts to Font (Closed)
Patch Set: Rebased Created 4 years, 2 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 24566fbd1ce3a313dee0d346ef072fa775a293e8..946bdd4a01db54d06edf67e60014ea4368594a06 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -263,6 +263,11 @@ class PLATFORM_EXPORT GraphicsContext {
int from = 0,
int to = -1);
+ int getTextIntercepts(const Font&,
f(malita) 2016/10/13 18:09:19 Is there much value in exposing this helper on Gra
drott 2016/10/14 15:15:34 No, as mentioned above, I initially thought, I'd n
+ const TextRunPaintInfo&,
+ const SkScalar* bounds,
+ SkScalar* intervals);
+
void drawLineForText(const FloatPoint&, float width, bool printing);
enum DocumentMarkerLineStyle {
DocumentMarkerSpellingLineStyle,

Powered by Google App Engine
This is Rietveld 408576698