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

Side by Side Diff: Source/core/svg/SVGFontElement.cpp

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles Created 6 years, 9 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 | Annotate | Revision Log
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 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 27 matching lines...) Expand all
38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement) 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFontElement)
39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement) 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement)
40 END_REGISTER_ANIMATED_PROPERTIES 40 END_REGISTER_ANIMATED_PROPERTIES
41 41
42 inline SVGFontElement::SVGFontElement(Document& document) 42 inline SVGFontElement::SVGFontElement(Document& document)
43 : SVGElement(SVGNames::fontTag, document) 43 : SVGElement(SVGNames::fontTag, document)
44 , m_missingGlyph(0) 44 , m_missingGlyph(0)
45 , m_isGlyphCacheValid(false) 45 , m_isGlyphCacheValid(false)
46 { 46 {
47 ScriptWrappable::init(this); 47 ScriptWrappable::init(this);
48 registerAnimatedPropertiesForSVGFontElement();
49 48
50 UseCounter::count(document, UseCounter::SVGFontElement); 49 UseCounter::count(document, UseCounter::SVGFontElement);
51 } 50 }
52 51
53 PassRefPtr<SVGFontElement> SVGFontElement::create(Document& document) 52 PassRefPtr<SVGFontElement> SVGFontElement::create(Document& document)
54 { 53 {
55 return adoptRef(new SVGFontElement(document)); 54 return adoptRef(new SVGFontElement(document));
56 } 55 }
57 56
58 void SVGFontElement::invalidateGlyphCache() 57 void SVGFontElement::invalidateGlyphCache()
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 265
267 Glyph SVGFontElement::missingGlyph() 266 Glyph SVGFontElement::missingGlyph()
268 { 267 {
269 ensureGlyphCache(); 268 ensureGlyphCache();
270 return m_missingGlyph; 269 return m_missingGlyph;
271 } 270 }
272 271
273 } 272 }
274 273
275 #endif // ENABLE(SVG_FONTS) 274 #endif // ENABLE(SVG_FONTS)
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698