OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef FontFaceCreationParams_h | 31 #ifndef FontFaceCreationParams_h |
32 #define FontFaceCreationParams_h | 32 #define FontFaceCreationParams_h |
33 | 33 |
34 #include "wtf/Assertions.h" | 34 #include "wtf/Assertions.h" |
35 #include "wtf/StringHasher.h" | 35 #include "wtf/StringHasher.h" |
36 #include "wtf/text/AtomicString.h" | 36 #include "wtf/text/AtomicString.h" |
37 #include "wtf/text/StringHash.h" | 37 #include "wtf/text/StringHash.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
40 | 40 |
41 enum FontFaceCreationType { | 41 enum FontFaceCreationType { |
42 CreateFontByFamily, | 42 CreateFontByFamily, |
43 CreateFontByFciIdAndTtcIndex | 43 CreateFontByFciIdAndTtcIndex |
44 }; | 44 }; |
45 | 45 |
46 class FontFaceCreationParams { | 46 class FontFaceCreationParams { |
47 FontFaceCreationType m_creationType; | 47 FontFaceCreationType m_creationType; |
48 AtomicString m_family; | 48 AtomicString m_family; |
49 CString m_filename; | 49 CString m_filename; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 { | 115 { |
116 return m_creationType == other.m_creationType | 116 return m_creationType == other.m_creationType |
117 && equalIgnoringCase(m_family, other.m_family) | 117 && equalIgnoringCase(m_family, other.m_family) |
118 && m_filename == other.m_filename | 118 && m_filename == other.m_filename |
119 && m_fontconfigInterfaceId == other.m_fontconfigInterfaceId | 119 && m_fontconfigInterfaceId == other.m_fontconfigInterfaceId |
120 && m_ttcIndex == other.m_ttcIndex; | 120 && m_ttcIndex == other.m_ttcIndex; |
121 } | 121 } |
122 | 122 |
123 }; | 123 }; |
124 | 124 |
125 } // namespace WebCore | 125 } // namespace blink |
126 | 126 |
127 #endif // FontFaceCreationParams_h | 127 #endif // FontFaceCreationParams_h |
OLD | NEW |