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

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

Issue 23956012: Stop passing NodeRenderingContext except in textRendererIsNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/SVGVKernElement.h ('k') | Source/core/svg/animation/SVGSMILElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } 47 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }
48 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); } 48 void setZoomAndPan(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan ::parseFromNumber(zoomAndPan); }
49 49
50 private: 50 private:
51 SVGViewElement(const QualifiedName&, Document&); 51 SVGViewElement(const QualifiedName&, Document&);
52 52
53 // FIXME: svgAttributeChanged missing. 53 // FIXME: svgAttributeChanged missing.
54 bool isSupportedAttribute(const QualifiedName&); 54 bool isSupportedAttribute(const QualifiedName&);
55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
56 56
57 virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; } 57 virtual bool rendererIsNeeded(const RenderStyle&) { return false; }
58 58
59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement) 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGViewElement)
60 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 60 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
61 DECLARE_ANIMATED_RECT(ViewBox, viewBox) 61 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
62 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 62 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
63 END_DECLARE_ANIMATED_PROPERTIES 63 END_DECLARE_ANIMATED_PROPERTIES
64 64
65 SVGZoomAndPanType m_zoomAndPan; 65 SVGZoomAndPanType m_zoomAndPan;
66 SVGStringList m_viewTarget; 66 SVGStringList m_viewTarget;
67 }; 67 };
68 68
69 inline SVGViewElement* toSVGViewElement(Node* node) 69 inline SVGViewElement* toSVGViewElement(Node* node)
70 { 70 {
71 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::viewTag )); 71 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::viewTag ));
72 return static_cast<SVGViewElement*>(node); 72 return static_cast<SVGViewElement*>(node);
73 } 73 }
74 74
75 } // namespace WebCore 75 } // namespace WebCore
76 76
77 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGVKernElement.h ('k') | Source/core/svg/animation/SVGSMILElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698