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

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

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
« no previous file with comments | « Source/WebCore/svg/SVGFilterElement.cpp ('k') | Source/WebCore/svg/SVGFontFaceElement.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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledElement) 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledElement)
45 END_REGISTER_ANIMATED_PROPERTIES 45 END_REGISTER_ANIMATED_PROPERTIES
46 46
47 inline SVGFontElement::SVGFontElement(const QualifiedName& tagName, Document* do cument) 47 inline SVGFontElement::SVGFontElement(const QualifiedName& tagName, Document* do cument)
48 : SVGStyledElement(tagName, document) 48 : SVGStyledElement(tagName, document)
49 , m_missingGlyph(0) 49 , m_missingGlyph(0)
50 , m_isGlyphCacheValid(false) 50 , m_isGlyphCacheValid(false)
51 { 51 {
52 ASSERT(hasTagName(SVGNames::fontTag)); 52 ASSERT(hasTagName(SVGNames::fontTag));
53 ScriptWrappable::init(this);
53 registerAnimatedPropertiesForSVGFontElement(); 54 registerAnimatedPropertiesForSVGFontElement();
54 } 55 }
55 56
56 PassRefPtr<SVGFontElement> SVGFontElement::create(const QualifiedName& tagName, Document* document) 57 PassRefPtr<SVGFontElement> SVGFontElement::create(const QualifiedName& tagName, Document* document)
57 { 58 {
58 return adoptRef(new SVGFontElement(tagName, document)); 59 return adoptRef(new SVGFontElement(tagName, document));
59 } 60 }
60 61
61 void SVGFontElement::invalidateGlyphCache() 62 void SVGFontElement::invalidateGlyphCache()
62 { 63 {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 Glyph SVGFontElement::missingGlyph() 255 Glyph SVGFontElement::missingGlyph()
255 { 256 {
256 ensureGlyphCache(); 257 ensureGlyphCache();
257 return m_missingGlyph; 258 return m_missingGlyph;
258 } 259 }
259 260
260 } 261 }
261 262
262 #endif // ENABLE(SVG_FONTS) 263 #endif // ENABLE(SVG_FONTS)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGFilterElement.cpp ('k') | Source/WebCore/svg/SVGFontFaceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698