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

Side by Side Diff: Source/platform/fonts/win/FontPlatformDataWin.cpp

Issue 180123003: Remove redundant ifdef in FontPlatformDataWin.cpp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698