Index: Source/core/rendering/style/RenderStyle.h |
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h |
index f405b951fbef534a8da92bcaf2b2b8a1565d003e..d2998ff517721af4e90b4dbde3e82d07def75a75 100644 |
--- a/Source/core/rendering/style/RenderStyle.h |
+++ b/Source/core/rendering/style/RenderStyle.h |
@@ -1375,12 +1375,12 @@ public: |
void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint(SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } |
float strokeOpacity() const { return svgStyle()->strokeOpacity(); } |
void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } |
- SVGLength strokeWidth() const { return svgStyle()->strokeWidth(); } |
- void setStrokeWidth(SVGLength w) { accessSVGStyle()->setStrokeWidth(w); } |
- Vector<SVGLength> strokeDashArray() const { return svgStyle()->strokeDashArray(); } |
- void setStrokeDashArray(Vector<SVGLength> array) { accessSVGStyle()->setStrokeDashArray(array); } |
- SVGLength strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } |
- void setStrokeDashOffset(SVGLength d) { accessSVGStyle()->setStrokeDashOffset(d); } |
+ SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); } |
pdr.
2014/01/07 06:42:53
Could this be introducing UAFs if the existing cod
kouhei (in TOK)
2014/01/08 08:12:07
Changed to PassRefPtr<> for safety.
I'm a bit worr
|
+ void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWidth(w); } |
+ SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray(); } |
+ void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()->setStrokeDashArray(array); } |
+ SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } |
+ void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStrokeDashOffset(d); } |
float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } |
void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f); } |
@@ -1394,10 +1394,10 @@ public: |
void setFloodColor(const Color& c) { accessSVGStyle()->setFloodColor(c); } |
void setLightingColor(const Color& c) { accessSVGStyle()->setLightingColor(c); } |
- SVGLength baselineShiftValue() const { return svgStyle()->baselineShiftValue(); } |
- void setBaselineShiftValue(SVGLength s) { accessSVGStyle()->setBaselineShiftValue(s); } |
- SVGLength kerning() const { return svgStyle()->kerning(); } |
- void setKerning(SVGLength k) { accessSVGStyle()->setKerning(k); } |
+ SVGLength* baselineShiftValue() const { return svgStyle()->baselineShiftValue(); } |
+ void setBaselineShiftValue(PassRefPtr<SVGLength> s) { accessSVGStyle()->setBaselineShiftValue(s); } |
+ SVGLength* kerning() const { return svgStyle()->kerning(); } |
+ void setKerning(PassRefPtr<SVGLength> k) { accessSVGStyle()->setKerning(k); } |
void setShapeInside(PassRefPtr<ShapeValue> value) |
{ |