| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 #if ENABLE(SVG_FONTS) | 439 #if ENABLE(SVG_FONTS) |
| 440 source->setSVGFontFaceElement(item->svgFontFaceElement()); | 440 source->setSVGFontFaceElement(item->svgFontFaceElement()); |
| 441 #endif | 441 #endif |
| 442 cssFontFace->addSource(source.release()); | 442 cssFontFace->addSource(source.release()); |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 | 445 |
| 446 if (CSSValueList* rangeList = toCSSValueList(m_unicodeRange.get())) { | 446 if (CSSValueList* rangeList = toCSSValueList(m_unicodeRange.get())) { |
| 447 unsigned numRanges = rangeList->length(); | 447 unsigned numRanges = rangeList->length(); |
| 448 for (unsigned i = 0; i < numRanges; i++) { | 448 for (unsigned i = 0; i < numRanges; i++) { |
| 449 CSSUnicodeRangeValue* range = static_cast<CSSUnicodeRangeValue*>(ran
geList->itemWithoutBoundsCheck(i)); | 449 CSSUnicodeRangeValue* range = toCSSUnicodeRangeValue(rangeList->item
WithoutBoundsCheck(i)); |
| 450 cssFontFace->addRange(range->from(), range->to()); | 450 cssFontFace->addRange(range->from(), range->to()); |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 return cssFontFace; | 453 return cssFontFace; |
| 454 } | 454 } |
| 455 | 455 |
| 456 } // namespace WebCore | 456 } // namespace WebCore |
| OLD | NEW |