Bug 153214

Summary: SVG tear offs should return a const reference if possible
Product: WebKit Reporter: Nikos Andronikos <nikos.andronikos>
Component: SVGAssignee: Nikos Andronikos <nikos.andronikos>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, zimmermann
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Nikos Andronikos
Reported 2016-01-18 16:43:40 PST
The getters SVGAnimatedStaticPropertyTearOff::baseVal() and SVGAnimatedStaticPropertyTearOff::animVal() return a reference to an SVG property object. E.g. template<typename PropertyType> class SVGAnimatedStaticPropertyTearOff : public SVGAnimatedProperty { public: virtual PropertyType& baseVal() { return m_property; } It would be preferable for the returned reference to PropertypType to be const.
Attachments
Patch (3.20 KB, patch)
2016-03-16 17:08 PDT, Nikos Andronikos
no flags
Nikos Andronikos
Comment 1 2016-03-16 17:08:42 PDT
WebKit Commit Bot
Comment 2 2016-03-16 20:36:13 PDT
Comment on attachment 274243 [details] Patch Clearing flags on attachment: 274243 Committed r198316: <http://trac.webkit.org/changeset/198316>
WebKit Commit Bot
Comment 3 2016-03-16 20:36:16 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.