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

Side by Side Diff: Source/WebCore/svg/SVGAltGlyphDefElement.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/SVGAElement.cpp ('k') | Source/WebCore/svg/SVGAltGlyphElement.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) 2011 Leo Yang <leoyang@webkit.org> 2 * Copyright (C) 2011 Leo Yang <leoyang@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 14 matching lines...) Expand all
25 #include "SVGAltGlyphItemElement.h" 25 #include "SVGAltGlyphItemElement.h"
26 #include "SVGGlyphRefElement.h" 26 #include "SVGGlyphRefElement.h"
27 #include "SVGNames.h" 27 #include "SVGNames.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 inline SVGAltGlyphDefElement::SVGAltGlyphDefElement(const QualifiedName& tagName , Document* document) 31 inline SVGAltGlyphDefElement::SVGAltGlyphDefElement(const QualifiedName& tagName , Document* document)
32 : SVGElement(tagName, document) 32 : SVGElement(tagName, document)
33 { 33 {
34 ASSERT(hasTagName(SVGNames::altGlyphDefTag)); 34 ASSERT(hasTagName(SVGNames::altGlyphDefTag));
35 ScriptWrappable::init(this);
35 } 36 }
36 37
37 PassRefPtr<SVGAltGlyphDefElement> SVGAltGlyphDefElement::create(const QualifiedN ame& tagName, Document* document) 38 PassRefPtr<SVGAltGlyphDefElement> SVGAltGlyphDefElement::create(const QualifiedN ame& tagName, Document* document)
38 { 39 {
39 return adoptRef(new SVGAltGlyphDefElement(tagName, document)); 40 return adoptRef(new SVGAltGlyphDefElement(tagName, document));
40 } 41 }
41 42
42 bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) co nst 43 bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) co nst
43 { 44 {
44 // Spec: http://www.w3.org/TR/SVG/text.html#AltGlyphDefElement 45 // Spec: http://www.w3.org/TR/SVG/text.html#AltGlyphDefElement
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (static_cast<SVGAltGlyphItemElement*>(child)->hasValidGlyphElemen ts(glyphNames) && !glyphNames.isEmpty()) 113 if (static_cast<SVGAltGlyphItemElement*>(child)->hasValidGlyphElemen ts(glyphNames) && !glyphNames.isEmpty())
113 return true; 114 return true;
114 } 115 }
115 } 116 }
116 return !glyphNames.isEmpty(); 117 return !glyphNames.isEmpty();
117 } 118 }
118 119
119 } 120 }
120 121
121 #endif 122 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGAElement.cpp ('k') | Source/WebCore/svg/SVGAltGlyphElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698