Changeset 156612 in webkit for trunk/Source/WebCore/css/CSSFontFaceSource.cpp
- Timestamp:
- Sep 28, 2013, 1:20:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSFontFaceSource.cpp
r155729 r156612 140 140 return 0; 141 141 142 auto fontFaceChildren = childrenOfType<SVGFontFaceElement>(m_externalSVGFontElement.get()); 143 auto firstFontFace = fontFaceChildren.begin(); 144 if (firstFontFace != fontFaceChildren.end()) { 142 if (auto firstFontFace = childrenOfType<SVGFontFaceElement>(m_externalSVGFontElement.get()).first()) { 145 143 if (!m_svgFontFaceElement) { 146 144 // We're created using a CSS @font-face rule, that means we're not associated with a SVGFontFaceElement. 147 145 // Use the imported <font-face> tag as referencing font-face element for these cases. 148 m_svgFontFaceElement = &*firstFontFace;146 m_svgFontFaceElement = firstFontFace; 149 147 } 150 148 151 fontData = SimpleFontData::create(SVGFontData::create( &*firstFontFace), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic);149 fontData = SimpleFontData::create(SVGFontData::create(firstFontFace), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic); 152 150 } 153 151 } else
Note:
See TracChangeset
for help on using the changeset viewer.