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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 361543002: Remove SVGPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); } 1401 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); }
1402 1402
1403 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } 1403 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; }
1404 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } 1404 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); }
1405 1405
1406 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } 1406 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); }
1407 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } 1407 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); }
1408 1408
1409 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil lPaintType(); } 1409 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil lPaintType(); }
1410 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } 1410 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); }
1411 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1412 float fillOpacity() const { return svgStyle()->fillOpacity(); } 1411 float fillOpacity() const { return svgStyle()->fillOpacity(); }
1413 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } 1412 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); }
1414 1413
1415 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); } 1414 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); }
1416 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } 1415 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); }
1417 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint( SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); }
1418 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } 1416 float strokeOpacity() const { return svgStyle()->strokeOpacity(); }
1419 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } 1417 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); }
1420 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); } 1418 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); }
1421 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); } 1419 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); }
1422 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray( ); } 1420 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray( ); }
1423 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); } 1421 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); }
1424 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } 1422 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset(); }
1425 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); } 1423 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); }
1426 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } 1424 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); }
1427 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; } 1425 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 inline bool RenderStyle::hasPseudoElementStyle() const 1886 inline bool RenderStyle::hasPseudoElementStyle() const
1889 { 1887 {
1890 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1888 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1891 } 1889 }
1892 1890
1893 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1891 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1894 1892
1895 } // namespace WebCore 1893 } // namespace WebCore
1896 1894
1897 #endif // RenderStyle_h 1895 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698