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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/core/svg/SVGTextContentElement.h ('k') | Source/core/svg/SVGTextElement.h » ('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) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L engthAdjust, lengthAdjust, SVGLengthAdjustType) 55 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L engthAdjust, lengthAdjust, SVGLengthAdjustType)
56 DEFINE_ANIMATED_BOOLEAN(SVGTextContentElement, SVGNames::externalResourcesRequir edAttr, ExternalResourcesRequired, externalResourcesRequired) 56 DEFINE_ANIMATED_BOOLEAN(SVGTextContentElement, SVGNames::externalResourcesRequir edAttr, ExternalResourcesRequired, externalResourcesRequired)
57 57
58 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextContentElement) 58 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextContentElement)
59 REGISTER_LOCAL_ANIMATED_PROPERTY(textLength) 59 REGISTER_LOCAL_ANIMATED_PROPERTY(textLength)
60 REGISTER_LOCAL_ANIMATED_PROPERTY(lengthAdjust) 60 REGISTER_LOCAL_ANIMATED_PROPERTY(lengthAdjust)
61 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 61 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
62 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) 62 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
63 END_REGISTER_ANIMATED_PROPERTIES 63 END_REGISTER_ANIMATED_PROPERTIES
64 64
65 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum ent* document) 65 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum ent& document)
66 : SVGGraphicsElement(tagName, document) 66 : SVGGraphicsElement(tagName, document)
67 , m_textLength(LengthModeOther) 67 , m_textLength(LengthModeOther)
68 , m_specifiedTextLength(LengthModeOther) 68 , m_specifiedTextLength(LengthModeOther)
69 , m_lengthAdjust(SVGLengthAdjustSpacing) 69 , m_lengthAdjust(SVGLengthAdjustSpacing)
70 { 70 {
71 ScriptWrappable::init(this); 71 ScriptWrappable::init(this);
72 registerAnimatedPropertiesForSVGTextContentElement(); 72 registerAnimatedPropertiesForSVGTextContentElement();
73 } 73 }
74 74
75 void SVGTextContentElement::synchronizeTextLength(SVGElement* contextElement) 75 void SVGTextContentElement::synchronizeTextLength(SVGElement* contextElement)
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 SVGElement* element = toSVGElement(renderer->node()); 297 SVGElement* element = toSVGElement(renderer->node());
298 ASSERT(element); 298 ASSERT(element);
299 299
300 if (!element->isTextContent()) 300 if (!element->isTextContent())
301 return 0; 301 return 0;
302 302
303 return toSVGTextContentElement(element); 303 return toSVGTextContentElement(element);
304 } 304 }
305 305
306 } 306 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextContentElement.h ('k') | Source/core/svg/SVGTextElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698