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

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

Issue 891013003: Delete RenderTextWin and RenderTextPango. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update switch comment Created 5 years, 10 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
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 attributes, kCTUnderlineStyleAttributeName); 336 attributes, kCTUnderlineStyleAttributeName);
337 CTUnderlineStyle value = kCTUnderlineStyleNone; 337 CTUnderlineStyle value = kCTUnderlineStyleNone;
338 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value)) 338 if (underline && CFNumberGetValue(underline, kCFNumberSInt32Type, &value))
339 run->underline = (value == kCTUnderlineStyleSingle); 339 run->underline = (value == kCTUnderlineStyleSingle);
340 340
341 run_origin.offset(run_width, 0); 341 run_origin.offset(run_width, 0);
342 } 342 }
343 runs_valid_ = true; 343 runs_valid_ = true;
344 } 344 }
345 345
346 RenderText* RenderText::CreateNativeInstance() {
347 return new RenderTextMac;
348 }
349
350 } // namespace gfx 346 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698