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

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: Give SVGPaintType a new home 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "core/rendering/style/StyleInheritedData.h" 50 #include "core/rendering/style/StyleInheritedData.h"
51 #include "core/rendering/style/StyleMarqueeData.h" 51 #include "core/rendering/style/StyleMarqueeData.h"
52 #include "core/rendering/style/StyleMultiColData.h" 52 #include "core/rendering/style/StyleMultiColData.h"
53 #include "core/rendering/style/StyleRareInheritedData.h" 53 #include "core/rendering/style/StyleRareInheritedData.h"
54 #include "core/rendering/style/StyleRareNonInheritedData.h" 54 #include "core/rendering/style/StyleRareNonInheritedData.h"
55 #include "core/rendering/style/StyleReflection.h" 55 #include "core/rendering/style/StyleReflection.h"
56 #include "core/rendering/style/StyleSurroundData.h" 56 #include "core/rendering/style/StyleSurroundData.h"
57 #include "core/rendering/style/StyleTransformData.h" 57 #include "core/rendering/style/StyleTransformData.h"
58 #include "core/rendering/style/StyleVisualData.h" 58 #include "core/rendering/style/StyleVisualData.h"
59 #include "core/rendering/style/StyleWillChangeData.h" 59 #include "core/rendering/style/StyleWillChangeData.h"
60 #include "core/svg/SVGPaint.h"
61 #include "platform/Length.h" 60 #include "platform/Length.h"
62 #include "platform/LengthBox.h" 61 #include "platform/LengthBox.h"
63 #include "platform/LengthSize.h" 62 #include "platform/LengthSize.h"
64 #include "platform/ThemeTypes.h" 63 #include "platform/ThemeTypes.h"
65 #include "platform/fonts/FontBaseline.h" 64 #include "platform/fonts/FontBaseline.h"
66 #include "platform/fonts/FontDescription.h" 65 #include "platform/fonts/FontDescription.h"
67 #include "platform/geometry/FloatRoundedRect.h" 66 #include "platform/geometry/FloatRoundedRect.h"
68 #include "platform/geometry/LayoutBoxExtent.h" 67 #include "platform/geometry/LayoutBoxExtent.h"
69 #include "platform/geometry/RoundedRect.h" 68 #include "platform/geometry/RoundedRect.h"
70 #include "platform/graphics/Color.h" 69 #include "platform/graphics/Color.h"
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); } 1398 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()-> m_willChange, m_contents, b); }
1400 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); } 1399 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce ss()->m_willChange, m_scrollPosition, b); }
1401 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); } 1400 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub treeWillChangeContents, b); }
1402 1401
1403 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } 1402 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; }
1404 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } 1403 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); }
1405 1404
1406 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } 1405 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); }
1407 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } 1406 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); }
1408 1407
1409 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil lPaintType(); } 1408 const SVGPaintType& fillPaintType() const { return svgStyle()->fillPaintType (); }
1410 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } 1409 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(); } 1410 float fillOpacity() const { return svgStyle()->fillOpacity(); }
1413 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } 1411 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); }
1414 1412
1415 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s trokePaintType(); } 1413 const SVGPaintType& strokePaintType() const { return svgStyle()->strokePaint Type(); }
1416 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } 1414 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(); } 1415 float strokeOpacity() const { return svgStyle()->strokeOpacity(); }
1419 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } 1416 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); }
1420 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); } 1417 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); }
1421 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); } 1418 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi dth(w); }
1422 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray( ); } 1419 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray( ); }
1423 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); } 1420 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()- >setStrokeDashArray(array); }
1424 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset(); } 1421 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset(); }
1425 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); } 1422 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr okeDashOffset(d); }
1426 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } 1423 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); }
1427 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f) ; } 1424 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 1885 inline bool RenderStyle::hasPseudoElementStyle() const
1889 { 1886 {
1890 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; 1887 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1891 } 1888 }
1892 1889
1893 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&); 1890 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect ::Radii&);
1894 1891
1895 } // namespace WebCore 1892 } // namespace WebCore
1896 1893
1897 #endif // RenderStyle_h 1894 #endif // RenderStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698