OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2010, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Alexey Proskuryakov | 3 * Copyright (C) 2006 Alexey Proskuryakov |
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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 | 26 |
27 #import "config.h" | 27 #import "config.h" |
28 #import "core/platform/graphics/SimpleFontData.h" | 28 #import "core/platform/graphics/SimpleFontData.h" |
29 | 29 |
30 #import <AppKit/AppKit.h> | 30 #import <AppKit/AppKit.h> |
31 #import <ApplicationServices/ApplicationServices.h> | 31 #import <ApplicationServices/ApplicationServices.h> |
32 #import <float.h> | 32 #import <float.h> |
33 #import <unicode/uchar.h> | 33 #import <unicode/uchar.h> |
34 #import "platform/SharedBuffer.h" | 34 #import "platform/SharedBuffer.h" |
35 #import "core/platform/graphics/Color.h" | |
36 #import "core/platform/graphics/Font.h" | 35 #import "core/platform/graphics/Font.h" |
37 #import "core/platform/graphics/FontCache.h" | 36 #import "core/platform/graphics/FontCache.h" |
38 #import "core/platform/graphics/FontDescription.h" | 37 #import "core/platform/graphics/FontDescription.h" |
39 #import "core/platform/mac/BlockExceptions.h" | 38 #import "core/platform/mac/BlockExceptions.h" |
40 #import "platform/geometry/FloatRect.h" | 39 #import "platform/geometry/FloatRect.h" |
| 40 #import "platform/graphics/Color.h" |
41 #import <wtf/Assertions.h> | 41 #import <wtf/Assertions.h> |
42 #import <wtf/RetainPtr.h> | 42 #import <wtf/RetainPtr.h> |
43 #import <wtf/StdLibExtras.h> | 43 #import <wtf/StdLibExtras.h> |
44 #import <wtf/UnusedParam.h> | 44 #import <wtf/UnusedParam.h> |
45 | 45 |
46 @interface NSFont (WebAppKitSecretAPI) | 46 @interface NSFont (WebAppKitSecretAPI) |
47 - (BOOL)_isFakeFixedPitch; | 47 - (BOOL)_isFakeFixedPitch; |
48 @end | 48 @end |
49 | 49 |
50 // The names of these constants were taken from history | 50 // The names of these constants were taken from history |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont,
0)); | 444 RetainPtr<CGFontRef> runCGFont(AdoptCF, CTFontCopyGraphicsFont(runFont,
0)); |
445 if (!CFEqual(runCGFont.get(), cgFont.get())) | 445 if (!CFEqual(runCGFont.get(), cgFont.get())) |
446 return false; | 446 return false; |
447 } | 447 } |
448 | 448 |
449 addResult.iterator->value = true; | 449 addResult.iterator->value = true; |
450 return true; | 450 return true; |
451 } | 451 } |
452 | 452 |
453 } // namespace WebCore | 453 } // namespace WebCore |
OLD | NEW |