Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: Source/core/css/FontFace.cpp

Issue 25434004: Generate toCSSFooValue() for CSSCanvasValue, CSSCrossfadeValue, CSSImageGeneratorValue, CSSImageVal… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | Source/core/css/resolver/ElementStyleResources.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSValue.cpp ('k') | Source/core/css/resolver/ElementStyleResources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698