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

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

Issue 68643007: Remove QualifiedName argument from SVGElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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/SVGTextElement.h ('k') | Source/core/svg/SVGTextPathElement.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, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 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 11 matching lines...) Expand all
22 22
23 #include "core/svg/SVGTextElement.h" 23 #include "core/svg/SVGTextElement.h"
24 24
25 #include "SVGNames.h" 25 #include "SVGNames.h"
26 #include "core/rendering/svg/RenderSVGResource.h" 26 #include "core/rendering/svg/RenderSVGResource.h"
27 #include "core/rendering/svg/RenderSVGText.h" 27 #include "core/rendering/svg/RenderSVGText.h"
28 #include "core/svg/SVGElementInstance.h" 28 #include "core/svg/SVGElementInstance.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 inline SVGTextElement::SVGTextElement(const QualifiedName& tagName, Document& do c) 32 inline SVGTextElement::SVGTextElement(Document& doc)
33 : SVGTextPositioningElement(tagName, doc) 33 : SVGTextPositioningElement(SVGNames::textTag, doc)
34 { 34 {
35 ASSERT(hasTagName(SVGNames::textTag));
36 ScriptWrappable::init(this); 35 ScriptWrappable::init(this);
37 } 36 }
38 37
39 PassRefPtr<SVGTextElement> SVGTextElement::create(const QualifiedName& tagName, Document& document) 38 PassRefPtr<SVGTextElement> SVGTextElement::create(Document& document)
40 { 39 {
41 return adoptRef(new SVGTextElement(tagName, document)); 40 return adoptRef(new SVGTextElement(document));
42 } 41 }
43 42
44 // We override SVGGraphics::animatedLocalTransform() so that the transform-origi n 43 // We override SVGGraphics::animatedLocalTransform() so that the transform-origi n
45 // is not taken into account. 44 // is not taken into account.
46 AffineTransform SVGTextElement::animatedLocalTransform() const 45 AffineTransform SVGTextElement::animatedLocalTransform() const
47 { 46 {
48 AffineTransform matrix; 47 AffineTransform matrix;
49 RenderStyle* style = renderer() ? renderer()->style() : 0; 48 RenderStyle* style = renderer() ? renderer()->style() : 0;
50 49
51 // if CSS property was set, use that, otherwise fallback to attribute (if se t) 50 // if CSS property was set, use that, otherwise fallback to attribute (if se t)
(...skipping 27 matching lines...) Expand all
79 || child.hasTagName(SVGNames::altGlyphTag) 78 || child.hasTagName(SVGNames::altGlyphTag)
80 #endif 79 #endif
81 || child.hasTagName(SVGNames::textPathTag) 80 || child.hasTagName(SVGNames::textPathTag)
82 || child.hasTagName(SVGNames::tspanTag)) 81 || child.hasTagName(SVGNames::tspanTag))
83 return true; 82 return true;
84 83
85 return false; 84 return false;
86 } 85 }
87 86
88 } 87 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextElement.h ('k') | Source/core/svg/SVGTextPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698