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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/css/FontFace.h" | 32 #include "core/css/FontFace.h" |
33 | 33 |
34 #include "CSSValueKeywords.h" | |
35 #include "FontFamilyNames.h" | |
36 #include "bindings/v8/Dictionary.h" | 34 #include "bindings/v8/Dictionary.h" |
37 #include "bindings/v8/ExceptionState.h" | 35 #include "bindings/v8/ExceptionState.h" |
38 #include "bindings/v8/ScriptPromiseResolverWithContext.h" | 36 #include "bindings/v8/ScriptPromiseResolverWithContext.h" |
39 #include "bindings/v8/ScriptState.h" | 37 #include "bindings/v8/ScriptState.h" |
| 38 #include "core/CSSValueKeywords.h" |
40 #include "core/css/BinaryDataFontFaceSource.h" | 39 #include "core/css/BinaryDataFontFaceSource.h" |
41 #include "core/css/CSSFontFace.h" | 40 #include "core/css/CSSFontFace.h" |
42 #include "core/css/CSSFontFaceSrcValue.h" | 41 #include "core/css/CSSFontFaceSrcValue.h" |
43 #include "core/css/CSSFontSelector.h" | 42 #include "core/css/CSSFontSelector.h" |
44 #include "core/css/CSSPrimitiveValue.h" | 43 #include "core/css/CSSPrimitiveValue.h" |
45 #include "core/css/CSSUnicodeRangeValue.h" | 44 #include "core/css/CSSUnicodeRangeValue.h" |
46 #include "core/css/CSSValueList.h" | 45 #include "core/css/CSSValueList.h" |
47 #include "core/css/LocalFontFaceSource.h" | 46 #include "core/css/LocalFontFaceSource.h" |
48 #include "core/css/RemoteFontFaceSource.h" | 47 #include "core/css/RemoteFontFaceSource.h" |
49 #include "core/css/StylePropertySet.h" | 48 #include "core/css/StylePropertySet.h" |
50 #include "core/css/StyleRule.h" | 49 #include "core/css/StyleRule.h" |
51 #include "core/css/parser/BisonCSSParser.h" | 50 #include "core/css/parser/BisonCSSParser.h" |
52 #include "core/dom/DOMError.h" | 51 #include "core/dom/DOMError.h" |
53 #include "core/dom/Document.h" | 52 #include "core/dom/Document.h" |
54 #include "core/dom/ExceptionCode.h" | 53 #include "core/dom/ExceptionCode.h" |
55 #include "core/dom/StyleEngine.h" | 54 #include "core/dom/StyleEngine.h" |
56 #include "core/frame/LocalFrame.h" | 55 #include "core/frame/LocalFrame.h" |
57 #include "core/frame/Settings.h" | 56 #include "core/frame/Settings.h" |
58 #include "core/svg/SVGFontFaceElement.h" | 57 #include "core/svg/SVGFontFaceElement.h" |
59 #include "core/svg/SVGFontFaceSource.h" | 58 #include "core/svg/SVGFontFaceSource.h" |
60 #include "core/svg/SVGRemoteFontFaceSource.h" | 59 #include "core/svg/SVGRemoteFontFaceSource.h" |
| 60 #include "platform/FontFamilyNames.h" |
61 #include "platform/SharedBuffer.h" | 61 #include "platform/SharedBuffer.h" |
62 | 62 |
63 namespace WebCore { | 63 namespace WebCore { |
64 | 64 |
65 class FontFaceReadyPromiseResolver { | 65 class FontFaceReadyPromiseResolver { |
66 public: | 66 public: |
67 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptState* scriptSt
ate) | 67 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptState* scriptSt
ate) |
68 { | 68 { |
69 return adoptPtr(new FontFaceReadyPromiseResolver(scriptState)); | 69 return adoptPtr(new FontFaceReadyPromiseResolver(scriptState)); |
70 } | 70 } |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 visitor->trace(m_cssFontFace); | 630 visitor->trace(m_cssFontFace); |
631 visitor->trace(m_callbacks); | 631 visitor->trace(m_callbacks); |
632 } | 632 } |
633 | 633 |
634 bool FontFace::hadBlankText() const | 634 bool FontFace::hadBlankText() const |
635 { | 635 { |
636 return m_cssFontFace->hadBlankText(); | 636 return m_cssFontFace->hadBlankText(); |
637 } | 637 } |
638 | 638 |
639 } // namespace WebCore | 639 } // namespace WebCore |
OLD | NEW |