| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Computer, Inc. | 2 * Copyright (C) 2006, 2007 Apple Computer, Inc. |
| 3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (c) 2006, 2007, 2008, 2009, 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 const static float minSizeForSubpixelForFont = 16.0f; | 441 const static float minSizeForSubpixelForFont = 16.0f; |
| 442 numFonts = WTF_ARRAY_LENGTH(noSubpixelForSmallSizeFont); | 442 numFonts = WTF_ARRAY_LENGTH(noSubpixelForSmallSizeFont); |
| 443 for (size_t i = 0; i < numFonts; i++) { | 443 for (size_t i = 0; i < numFonts; i++) { |
| 444 const wchar_t* family = noSubpixelForSmallSizeFont[i]; | 444 const wchar_t* family = noSubpixelForSmallSizeFont[i]; |
| 445 if (typefacesMatchesFamily(tf.get(), family)) { | 445 if (typefacesMatchesFamily(tf.get(), family)) { |
| 446 result->setMinSizeForSubpixel(minSizeForSubpixelForFont); | 446 result->setMinSizeForSubpixel(minSizeForSubpixelForFont); |
| 447 break; | 447 break; |
| 448 } | 448 } |
| 449 } | 449 } |
| 450 | 450 |
| 451 return result.release(); | 451 return result; |
| 452 } | 452 } |
| 453 | 453 |
| 454 } // namespace blink | 454 } // namespace blink |
| OLD | NEW |