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

Unified Diff: ui/gfx/render_text_mac.mm

Issue 2969623004: RenderText: Allow strike-through line thickness to be customized. (Closed)
Patch Set: Address final nits. Created 3 years, 5 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
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_mac.mm
diff --git a/ui/gfx/render_text_mac.mm b/ui/gfx/render_text_mac.mm
index 67058173093e471a296da0ff75b60618149e197c..261845087db6ac27f4069db0e2048b8fe3ecb49c 100644
--- a/ui/gfx/render_text_mac.mm
+++ b/ui/gfx/render_text_mac.mm
@@ -259,8 +259,11 @@ void RenderTextMac::DrawVisualText(internal::SkiaTextRenderer* renderer) {
renderer->DrawPosText(&run.glyph_positions[0], &run.glyphs[0],
run.glyphs.size());
- renderer->DrawDecorations(run.origin.x(), run.origin.y(), run.width,
- run.underline, run.strike);
+ if (run.underline)
+ renderer->DrawUnderline(run.origin.x(), run.origin.y(), run.width);
+ if (run.strike)
+ renderer->DrawStrike(run.origin.x(), run.origin.y(), run.width,
+ strike_thickness_factor());
}
}
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698