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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGViewSpec.h

Issue 2024663002: Implement SetWrapperReferenceTo idl attribute within traceWrappers for svg elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 String viewBoxString() const; 49 String viewBoxString() const;
50 String preserveAspectRatioString() const; 50 String preserveAspectRatioString() const;
51 String transformString() const; 51 String transformString() const;
52 String viewTargetString() const { return m_viewTargetString; } 52 String viewTargetString() const { return m_viewTargetString; }
53 // override SVGZoomAndPan.setZoomAndPan so can throw exception on write 53 // override SVGZoomAndPan.setZoomAndPan so can throw exception on write
54 void setZoomAndPan(unsigned short value) { } // read only 54 void setZoomAndPan(unsigned short value) { } // read only
55 void setZoomAndPan(unsigned short value, ExceptionState&); 55 void setZoomAndPan(unsigned short value, ExceptionState&);
56 56
57 DECLARE_VIRTUAL_TRACE(); 57 DECLARE_VIRTUAL_TRACE();
58 58
59 DECLARE_VIRTUAL_TRACE_WRAPPERS();
60
59 SVGSVGElement* contextElement() { return m_contextElement.get(); } 61 SVGSVGElement* contextElement() { return m_contextElement.get(); }
60 62
61 private: 63 private:
62 explicit SVGViewSpec(SVGSVGElement*); 64 explicit SVGViewSpec(SVGSVGElement*);
63 65
64 template<typename CharType> 66 template<typename CharType>
65 bool parseViewSpecInternal(const CharType* ptr, const CharType* end); 67 bool parseViewSpecInternal(const CharType* ptr, const CharType* end);
66 68
67 Member<SVGSVGElement> m_contextElement; 69 Member<SVGSVGElement> m_contextElement;
68 Member<SVGAnimatedTransformList> m_transform; 70 Member<SVGAnimatedTransformList> m_transform;
(...skipping 11 matching lines...) Expand all
80 preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->p reserveAspectRatio()->currentValue()->meetOrSlice()); 82 preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->p reserveAspectRatio()->currentValue()->meetOrSlice());
81 } 83 }
82 84
83 if (inheritFromElement->hasAttribute(SVGNames::zoomAndPanAttr)) 85 if (inheritFromElement->hasAttribute(SVGNames::zoomAndPanAttr))
84 setZoomAndPan(inheritFromElement->zoomAndPan()); 86 setZoomAndPan(inheritFromElement->zoomAndPan());
85 } 87 }
86 88
87 } // namespace blink 89 } // namespace blink
88 90
89 #endif // SVGViewSpec_h 91 #endif // SVGViewSpec_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTransformTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGViewSpec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698