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

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: rebased; decorations Created 6 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 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 attributes, kCTUnderlineStyleAttributeName); 332 attributes, kCTUnderlineStyleAttributeName);
333 CTUnderlineStyle value = kCTUnderlineStyleNone; 333 CTUnderlineStyle value = kCTUnderlineStyleNone;
334 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value)) 334 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value))
335 run->underline = (value == kCTUnderlineStyleSingle); 335 run->underline = (value == kCTUnderlineStyleSingle);
336 336
337 run_origin.offset(run_width, 0); 337 run_origin.offset(run_width, 0);
338 } 338 }
339 runs_valid_ = true; 339 runs_valid_ = true;
340 } 340 }
341 341
342 RenderText* RenderText::CreateInstance() { 342 RenderText* RenderText::CreateNativeInstance() {
343 return new RenderTextMac; 343 return new RenderTextMac;
344 } 344 }
345 345
346 } // namespace gfx 346 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698