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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 { | 347 { |
348 blink::WebSandboxSupport* sandboxSupport = blink::Platform::current()->sandb
oxSupport(); | 348 blink::WebSandboxSupport* sandboxSupport = blink::Platform::current()->sandb
oxSupport(); |
349 // if there is no sandbox, then we can assume the font | 349 // if there is no sandbox, then we can assume the font |
350 // was able to be loaded successfully already | 350 // was able to be loaded successfully already |
351 return sandboxSupport ? sandboxSupport->ensureFontLoaded(font) : true; | 351 return sandboxSupport ? sandboxSupport->ensureFontLoaded(font) : true; |
352 } | 352 } |
353 #endif | 353 #endif |
354 | 354 |
355 bool FontPlatformData::defaultUseSubpixelPositioning() | 355 bool FontPlatformData::defaultUseSubpixelPositioning() |
356 { | 356 { |
357 #if OS(WIN) | |
358 return FontCache::fontCache()->useSubpixelPositioning(); | 357 return FontCache::fontCache()->useSubpixelPositioning(); |
359 #else | |
360 return false; | |
361 #endif | |
362 } | 358 } |
363 | 359 |
364 #ifndef NDEBUG | 360 #ifndef NDEBUG |
365 String FontPlatformData::description() const | 361 String FontPlatformData::description() const |
366 { | 362 { |
367 return String(); | 363 return String(); |
368 } | 364 } |
369 #endif | 365 #endif |
370 | 366 |
371 } // namespace WebCore | 367 } // namespace WebCore |
OLD | NEW |