| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "core/css/CSSPrimitiveValue.h" | 44 #include "core/css/CSSPrimitiveValue.h" |
| 45 #include "core/css/CSSUnicodeRangeValue.h" | 45 #include "core/css/CSSUnicodeRangeValue.h" |
| 46 #include "core/css/CSSValueList.h" | 46 #include "core/css/CSSValueList.h" |
| 47 #include "core/css/StylePropertySet.h" | 47 #include "core/css/StylePropertySet.h" |
| 48 #include "core/css/StyleRule.h" | 48 #include "core/css/StyleRule.h" |
| 49 #include "core/dom/DOMError.h" | 49 #include "core/dom/DOMError.h" |
| 50 #include "core/dom/Document.h" | 50 #include "core/dom/Document.h" |
| 51 #include "core/dom/ExceptionCode.h" | 51 #include "core/dom/ExceptionCode.h" |
| 52 #include "core/frame/Frame.h" | 52 #include "core/frame/Frame.h" |
| 53 #include "core/page/Settings.h" | 53 #include "core/page/Settings.h" |
| 54 #include "core/platform/graphics/SimpleFontData.h" | |
| 55 #include "core/svg/SVGFontFaceElement.h" | 54 #include "core/svg/SVGFontFaceElement.h" |
| 56 #include "platform/fonts/FontDescription.h" | 55 #include "platform/fonts/FontDescription.h" |
| 57 #include "platform/fonts/FontTraitsMask.h" | 56 #include "platform/fonts/FontTraitsMask.h" |
| 57 #include "platform/fonts/SimpleFontData.h" |
| 58 | 58 |
| 59 namespace WebCore { | 59 namespace WebCore { |
| 60 | 60 |
| 61 class FontFaceReadyPromiseResolver { | 61 class FontFaceReadyPromiseResolver { |
| 62 public: | 62 public: |
| 63 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptPromise promise
, ExecutionContext* context) | 63 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptPromise promise
, ExecutionContext* context) |
| 64 { | 64 { |
| 65 return adoptPtr(new FontFaceReadyPromiseResolver(promise, context)); | 65 return adoptPtr(new FontFaceReadyPromiseResolver(promise, context)); |
| 66 } | 66 } |
| 67 | 67 |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 unsigned numRanges = rangeList->length(); | 531 unsigned numRanges = rangeList->length(); |
| 532 for (unsigned i = 0; i < numRanges; i++) { | 532 for (unsigned i = 0; i < numRanges; i++) { |
| 533 CSSUnicodeRangeValue* range = toCSSUnicodeRangeValue(rangeList->item
WithoutBoundsCheck(i)); | 533 CSSUnicodeRangeValue* range = toCSSUnicodeRangeValue(rangeList->item
WithoutBoundsCheck(i)); |
| 534 cssFontFace->ranges().add(range->from(), range->to()); | 534 cssFontFace->ranges().add(range->from(), range->to()); |
| 535 } | 535 } |
| 536 } | 536 } |
| 537 return cssFontFace; | 537 return cssFontFace; |
| 538 } | 538 } |
| 539 | 539 |
| 540 } // namespace WebCore | 540 } // namespace WebCore |
| OLD | NEW |