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

Side by Side Diff: ui/gfx/render_text_mac.cc

Issue 152473008: More or less implement RenderTextHarfBuzz (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/render_text_mac.h" 5 #include "ui/gfx/render_text_mac.h"
6 6
7 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 attributes, kCTUnderlineStyleAttributeName); 330 attributes, kCTUnderlineStyleAttributeName);
331 CTUnderlineStyle value = kCTUnderlineStyleNone; 331 CTUnderlineStyle value = kCTUnderlineStyleNone;
332 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value)) 332 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value))
333 run->underline = (value == kCTUnderlineStyleSingle); 333 run->underline = (value == kCTUnderlineStyleSingle);
334 334
335 run_origin.offset(run_width, 0); 335 run_origin.offset(run_width, 0);
336 } 336 }
337 runs_valid_ = true; 337 runs_valid_ = true;
338 } 338 }
339 339
340 RenderText* RenderText::CreateInstance() { 340 RenderText* RenderText::CreateNativeInstance() {
341 return new RenderTextMac; 341 return new RenderTextMac;
342 } 342 }
343 343
344 } // namespace gfx 344 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698