OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Computer, Inc. | 2 * Copyright (C) 2007 Apple Computer, Inc. |
3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. | 3 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved. |
4 * Copyright (C) 2010 Company 100, Inc. | 4 * Copyright (C) 2010 Company 100, Inc. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 17 matching lines...) Expand all Loading... |
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 */ | 31 */ |
32 | 32 |
33 #include "config.h" | 33 #include "config.h" |
34 #include "platform/fonts/FontCustomPlatformData.h" | 34 #include "platform/fonts/FontCustomPlatformData.h" |
35 | 35 |
36 #include "platform/LayoutTestSupport.h" | 36 #include "platform/LayoutTestSupport.h" |
37 #include "platform/SharedBuffer.h" | 37 #include "platform/SharedBuffer.h" |
38 #include "core/platform/graphics/FontPlatformData.h" | 38 #include "platform/fonts/FontPlatformData.h" |
39 #include "core/platform/graphics/opentype/OpenTypeSanitizer.h" | 39 #include "platform/fonts/opentype/OpenTypeSanitizer.h" |
40 #include "third_party/skia/include/core/SkStream.h" | 40 #include "third_party/skia/include/core/SkStream.h" |
41 #include "third_party/skia/include/core/SkTypeface.h" | 41 #include "third_party/skia/include/core/SkTypeface.h" |
42 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) | 46 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) |
47 : m_typeface(typeface) | 47 : m_typeface(typeface) |
48 { | 48 { |
49 } | 49 } |
(...skipping 25 matching lines...) Expand all Loading... |
75 | 75 |
76 return adoptPtr(new FontCustomPlatformData(typeface.release())); | 76 return adoptPtr(new FontCustomPlatformData(typeface.release())); |
77 } | 77 } |
78 | 78 |
79 bool FontCustomPlatformData::supportsFormat(const String& format) | 79 bool FontCustomPlatformData::supportsFormat(const String& format) |
80 { | 80 { |
81 return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "o
pentype") || OpenTypeSanitizer::supportsFormat(format); | 81 return equalIgnoringCase(format, "truetype") || equalIgnoringCase(format, "o
pentype") || OpenTypeSanitizer::supportsFormat(format); |
82 } | 82 } |
83 | 83 |
84 } | 84 } |
OLD | NEW |