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: ui/gfx/render_text_win.h

Issue 16867016: Windows implementation of multiline RenderText (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed GetMultilineTextSize Created 7 years, 4 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: ui/gfx/render_text_win.h
diff --git a/ui/gfx/render_text_win.h b/ui/gfx/render_text_win.h
index 620ef092dff98fd2175427ab390b253aa3057198..4ec072489b7875c451c010df025b1dd2d9aba9d3 100644
--- a/ui/gfx/render_text_win.h
+++ b/ui/gfx/render_text_win.h
@@ -87,6 +87,8 @@ class RenderTextWin : public RenderText {
private:
FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Win_LogicalClusters);
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_MinWidth);
+ FRIEND_TEST_ALL_PREFIXES(RenderTextTest, Multiline_NormalWidth);
void ItemizeLogicalText();
void LayoutVisualText();
@@ -122,6 +124,7 @@ class RenderTextWin : public RenderText {
ScopedVector<internal::TextRun> runs_;
Size string_size_;
+ Size multiline_string_size_;
msw 2013/09/06 23:47:45 Disambiguate these two sizes in a comment, what do
ckocagil 2013/09/11 14:59:49 Done.
// A common vertical baseline for all the text runs. This is computed as the
// largest baseline over all the runs' fonts.

Powered by Google App Engine
This is Rietveld 408576698