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

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

Issue 343443003: Remove SVGElement::rendererIsNeeded (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Different approach Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/core/svg/SVGElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2009 Apple Inc. 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 protected: 190 protected:
191 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent); 191 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem ent);
192 192
193 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 193 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
194 194
195 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly) OVERRIDE; 195 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att ributeModificationReason = ModifiedDirectly) OVERRIDE;
196 196
197 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 197 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
198 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 198 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
199 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
200 199
201 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 200 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
202 virtual void removedFrom(ContainerNode*) OVERRIDE; 201 virtual void removedFrom(ContainerNode*) OVERRIDE;
203 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 202 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
204 203
205 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); 204 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&);
206 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); } 205 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s elfHasRelativeLengths(), this); }
207 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); 206 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*);
208 207
209 virtual bool selfHasRelativeLengths() const { return false; } 208 virtual bool selfHasRelativeLengths() const { return false; }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); } 261 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a .matches(b); }
263 }; 262 };
264 263
265 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); 264 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement());
266 265
267 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re turn node.isSVGElement(); } 266 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re turn node.isSVGElement(); }
268 267
269 } 268 }
270 269
271 #endif 270 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698