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

Unified Diff: Source/core/svg/SVGZoomAndPan.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGZoomAndPan.h
diff --git a/Source/core/svg/SVGZoomAndPan.h b/Source/core/svg/SVGZoomAndPan.h
index 5b5c69c535f24edcee1b499b4c888802b6bbdcea..12ddd0b372589b55387e8082d8cb971859c9d66f 100644
--- a/Source/core/svg/SVGZoomAndPan.h
+++ b/Source/core/svg/SVGZoomAndPan.h
@@ -79,9 +79,9 @@ public:
}
// SVGZoomAndPan JS API.
- static SVGZoomAndPanType zoomAndPan(SVGZoomAndPan* object) { return object->m_zoomAndPan; }
- static void setZoomAndPan(SVGZoomAndPan* object, unsigned short value, ExceptionState&) { object->setZoomAndPan(value); }
- static void setZoomAndPan(SVGViewSpec*, unsigned short, ExceptionState&);
+ static SVGZoomAndPanType zoomAndPan(SVGZoomAndPan& object) { return object.m_zoomAndPan; }
+ static void setZoomAndPan(SVGZoomAndPan& object, unsigned short value, ExceptionState&) { object.setZoomAndPan(value); }
+ static void setZoomAndPan(SVGViewSpec&, unsigned short, ExceptionState&);
void setZoomAndPan(unsigned short value) { m_zoomAndPan = parseFromNumber(value); }
SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; }

Powered by Google App Engine
This is Rietveld 408576698