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

Side by Side Diff: svg/SVGGlyphElement.cpp

Issue 500099: Fix link failure on LTCG builds.... (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2007 Eric Seidel <eric@webkit.org> 2 Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 Copyright (C) 2008 Rob Buis <buis@kde.org> 4 Copyright (C) 2008 Rob Buis <buis@kde.org>
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 { 42 {
43 } 43 }
44 44
45 SVGGlyphElement::~SVGGlyphElement() 45 SVGGlyphElement::~SVGGlyphElement()
46 { 46 {
47 } 47 }
48 48
49 void SVGGlyphElement::invalidateGlyphCache() 49 void SVGGlyphElement::invalidateGlyphCache()
50 { 50 {
51 Node* fontNode = parentNode(); 51 Node* fontNode = parentNode();
52 if (fontNode && fontNode->hasTagName(fontTag)) { 52 if (fontNode && fontNode->hasTagName(SVGNames::fontTag)) {
53 if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode)) 53 if (SVGFontElement* element = static_cast<SVGFontElement*>(fontNode))
54 element->invalidateGlyphCache(); 54 element->invalidateGlyphCache();
55 } 55 }
56 } 56 }
57 57
58 void SVGGlyphElement::parseMappedAttribute(MappedAttribute* attr) 58 void SVGGlyphElement::parseMappedAttribute(MappedAttribute* attr)
59 { 59 {
60 if (attr->name() == SVGNames::dAttr) 60 if (attr->name() == SVGNames::dAttr)
61 invalidateGlyphCache(); 61 invalidateGlyphCache();
62 else 62 else
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 return identifier; 160 return identifier;
161 } 161 }
162 162
163 SVGGlyphIdentifier SVGGlyphElement::buildGlyphIdentifier() const 163 SVGGlyphIdentifier SVGGlyphElement::buildGlyphIdentifier() const
164 { 164 {
165 SVGGlyphIdentifier identifier(buildGenericGlyphIdentifier(this)); 165 SVGGlyphIdentifier identifier(buildGenericGlyphIdentifier(this));
166 identifier.glyphName = getAttribute(glyph_nameAttr); 166 identifier.glyphName = getAttribute(glyph_nameAttr);
167 identifier.orientation = parseOrientation(getAttribute(orientationAttr)); 167 identifier.orientation = parseOrientation(getAttribute(orientationAttr));
168 identifier.arabicForm = parseArabicForm(getAttribute(arabic_formAttr)); 168 identifier.arabicForm = parseArabicForm(getAttribute(arabic_formAttr));
169 169
170 String language = getAttribute(langAttr); 170 String language = getAttribute(SVGNames::langAttr);
171 if (!language.isEmpty()) 171 if (!language.isEmpty())
172 identifier.languages = parseDelimitedString(language, ','); 172 identifier.languages = parseDelimitedString(language, ',');
173 173
174 return identifier; 174 return identifier;
175 } 175 }
176 176
177 } 177 }
178 178
179 #endif // ENABLE(SVG_FONTS) 179 #endif // ENABLE(SVG_FONTS)
OLDNEW
« svg/SVGAllInOne.cpp ('K') | « svg/SVGFontFaceElement.cpp ('k') | svg/SVGHKernElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698