| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |