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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h

Issue 2845883002: [LayoutNG] Add NG-specific DrawText support to GraphicsContext (Closed)
Patch Set: Created 3 years, 8 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/fonts/shaping/ShapeResultBloberizer.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h
index f86e2b730689e68ff8b267ebff2c26521d2f1e89..78348675ae8a2f4060392b6d1424956493ac130a 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBloberizer.h
@@ -39,6 +39,12 @@ class PLATFORM_EXPORT ShapeResultBloberizer {
void FillTextEmphasisGlyphs(const TextRunPaintInfo&,
const GlyphData& emphasis_data,
const ShapeResultBuffer&);
+ void FillTextEmphasisGlyphs(const StringView&,
+ TextDirection,
+ unsigned from,
+ unsigned to,
+ const GlyphData& emphasis_data,
+ const ShapeResult*);
void Add(Glyph glyph, const SimpleFontData* font_data, float h_offset) {
// cannot mix x-only/xy offsets
@@ -110,8 +116,13 @@ class PLATFORM_EXPORT ShapeResultBloberizer {
float FillFastHorizontalGlyphs(const ShapeResultBuffer&, TextDirection);
float FillFastHorizontalGlyphs(const ShapeResult*, float advance = 0);
+ template <typename TextContainerType>
float FillTextEmphasisGlyphsForRun(const ShapeResult::RunInfo*,
- const TextRunPaintInfo&,
+ const TextContainerType&,
+ unsigned text_length,
+ TextDirection,
+ unsigned from,
+ unsigned to,
const GlyphData& emphasis_data,
float initial_advance,
unsigned run_offset);

Powered by Google App Engine
This is Rietveld 408576698