| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |