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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp

Issue 1987203002: Remove OwnPtr::release(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk for landing. Created 4 years, 7 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
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm ('k') | third_party/WebKit/Source/wtf/OwnPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698