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

Side by Side Diff: Source/core/svg/SVGTextPathElement.h

Issue 143263011: Convert SVG <text> and descendants to use RenderObject::isChildAllowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 virtual void buildPendingResource() OVERRIDE; 123 virtual void buildPendingResource() OVERRIDE;
124 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 124 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
125 virtual void removedFrom(ContainerNode*) OVERRIDE; 125 virtual void removedFrom(ContainerNode*) OVERRIDE;
126 126
127 bool isSupportedAttribute(const QualifiedName&); 127 bool isSupportedAttribute(const QualifiedName&);
128 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 128 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
129 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 129 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
130 130
131 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 131 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
132 virtual bool childShouldCreateRenderer(const Node& child) const OVERRIDE; 132 virtual bool childShouldCreateRenderer(const Node& child) const OVERRIDE { r eturn true; }
133 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; 133 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
134 134
135 virtual bool selfHasRelativeLengths() const OVERRIDE; 135 virtual bool selfHasRelativeLengths() const OVERRIDE;
136 136
137 RefPtr<SVGAnimatedLength> m_startOffset; 137 RefPtr<SVGAnimatedLength> m_startOffset;
138 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement) 138 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPathElement)
139 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType) 139 DECLARE_ANIMATED_ENUMERATION(Method, method, SVGTextPathMethodType)
140 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType) 140 DECLARE_ANIMATED_ENUMERATION(Spacing, spacing, SVGTextPathSpacingType)
141 DECLARE_ANIMATED_STRING(Href, href) 141 DECLARE_ANIMATED_STRING(Href, href)
142 END_DECLARE_ANIMATED_PROPERTIES 142 END_DECLARE_ANIMATED_PROPERTIES
143 }; 143 };
144 144
145 DEFINE_NODE_TYPE_CASTS(SVGTextPathElement, hasTagName(SVGNames::textPathTag)); 145 DEFINE_NODE_TYPE_CASTS(SVGTextPathElement, hasTagName(SVGNames::textPathTag));
146 146
147 } // namespace WebCore 147 } // namespace WebCore
148 148
149 #endif 149 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698