Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 DOMArrayBuffer* source, | 134 DOMArrayBuffer* source, |
| 135 const FontFaceDescriptors&); | 135 const FontFaceDescriptors&); |
| 136 static FontFace* create(ExecutionContext*, | 136 static FontFace* create(ExecutionContext*, |
| 137 const AtomicString& family, | 137 const AtomicString& family, |
| 138 DOMArrayBufferView*, | 138 DOMArrayBufferView*, |
| 139 const FontFaceDescriptors&); | 139 const FontFaceDescriptors&); |
| 140 static FontFace* create(ExecutionContext*, | 140 static FontFace* create(ExecutionContext*, |
| 141 const AtomicString& family, | 141 const AtomicString& family, |
| 142 const String& source, | 142 const String& source, |
| 143 const FontFaceDescriptors&); | 143 const FontFaceDescriptors&); |
| 144 static FontFace* createError(ExecutionContext*, | |
|
haraken
2017/04/06 08:43:54
Remove this?
binji
2017/04/09 00:40:02
Done.
| |
| 145 const AtomicString& family, | |
| 146 const FontFaceDescriptors&, | |
| 147 const char* errorMessage); | |
| 144 | 148 |
| 145 explicit FontFace(ExecutionContext*); | 149 explicit FontFace(ExecutionContext*); |
| 146 FontFace(ExecutionContext*, | 150 FontFace(ExecutionContext*, |
| 147 const AtomicString& family, | 151 const AtomicString& family, |
| 148 const FontFaceDescriptors&); | 152 const FontFaceDescriptors&); |
| 149 | 153 |
| 150 void initCSSFontFace(Document*, const CSSValue* src); | 154 void initCSSFontFace(Document*, const CSSValue* src); |
| 151 void initCSSFontFace(const unsigned char* data, size_t); | 155 void initCSSFontFace(const unsigned char* data, size_t); |
| 152 void setPropertyFromString(const Document*, | 156 void setPropertyFromString(const Document*, |
| 153 const String&, | 157 const String&, |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 179 Member<LoadedProperty> m_loadedProperty; | 183 Member<LoadedProperty> m_loadedProperty; |
| 180 Member<CSSFontFace> m_cssFontFace; | 184 Member<CSSFontFace> m_cssFontFace; |
| 181 HeapVector<Member<LoadFontCallback>> m_callbacks; | 185 HeapVector<Member<LoadFontCallback>> m_callbacks; |
| 182 }; | 186 }; |
| 183 | 187 |
| 184 using FontFaceArray = HeapVector<Member<FontFace>>; | 188 using FontFaceArray = HeapVector<Member<FontFace>>; |
| 185 | 189 |
| 186 } // namespace blink | 190 } // namespace blink |
| 187 | 191 |
| 188 #endif // FontFace_h | 192 #endif // FontFace_h |
| OLD | NEW |