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

Unified Diff: ui/gfx/render_text_pango.cc

Issue 779793006: MacViews: Use RenderTextHarfBuzz only for Textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename to CreateInstanceOfSameType Created 6 years 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_pango.h ('k') | ui/gfx/render_text_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_pango.cc
diff --git a/ui/gfx/render_text_pango.cc b/ui/gfx/render_text_pango.cc
index 27f00461093003ac75910ee677ca6271d60b70a1..c90af56240cc343f0339b78a0a62bab234b9b0cb 100644
--- a/ui/gfx/render_text_pango.cc
+++ b/ui/gfx/render_text_pango.cc
@@ -89,6 +89,10 @@ RenderTextPango::~RenderTextPango() {
ResetLayout();
}
+scoped_ptr<RenderText> RenderTextPango::CreateInstanceOfSameType() const {
+ return scoped_ptr<RenderTextPango>(new RenderTextPango);
+}
+
Size RenderTextPango::GetStringSize() {
EnsureLayout();
int width = 0, height = 0;
« no previous file with comments | « ui/gfx/render_text_pango.h ('k') | ui/gfx/render_text_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698