OLD | NEW |
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 Loading... |
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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } | 1409 void setWillChangeContents(bool b) { SET_VAR(rareNonInheritedData.access()->
m_willChange, m_contents, b); } |
1411 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } | 1410 void setWillChangeScrollPosition(bool b) { SET_VAR(rareNonInheritedData.acce
ss()->m_willChange, m_scrollPosition, b); } |
1412 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } | 1411 void setSubtreeWillChangeContents(bool b) { SET_VAR(rareInheritedData, m_sub
treeWillChangeContents, b); } |
1413 | 1412 |
1414 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } | 1413 bool requiresAcceleratedCompositingForExternalReasons(bool b) { return rareN
onInheritedData->m_requiresAcceleratedCompositingForExternalReasons; } |
1415 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } | 1414 void setRequiresAcceleratedCompositingForExternalReasons(bool b) { SET_VAR(r
areNonInheritedData, m_requiresAcceleratedCompositingForExternalReasons, b); } |
1416 | 1415 |
1417 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } | 1416 const SVGRenderStyle* svgStyle() const { return m_svgStyle.get(); } |
1418 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } | 1417 SVGRenderStyle* accessSVGStyle() { return m_svgStyle.access(); } |
1419 | 1418 |
1420 const SVGPaint::SVGPaintType& fillPaintType() const { return svgStyle()->fil
lPaintType(); } | 1419 const SVGPaintType& fillPaintType() const { return svgStyle()->fillPaintType
(); } |
1421 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } | 1420 Color fillPaintColor() const { return svgStyle()->fillPaintColor(); } |
1422 void setFillPaintColor(const Color& c) { accessSVGStyle()->setFillPaint(SVGP
aint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | |
1423 float fillOpacity() const { return svgStyle()->fillOpacity(); } | 1421 float fillOpacity() const { return svgStyle()->fillOpacity(); } |
1424 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } | 1422 void setFillOpacity(float f) { accessSVGStyle()->setFillOpacity(f); } |
1425 | 1423 |
1426 const SVGPaint::SVGPaintType& strokePaintType() const { return svgStyle()->s
trokePaintType(); } | 1424 const SVGPaintType& strokePaintType() const { return svgStyle()->strokePaint
Type(); } |
1427 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } | 1425 Color strokePaintColor() const { return svgStyle()->strokePaintColor(); } |
1428 void setStrokePaintColor(const Color& c) { accessSVGStyle()->setStrokePaint(
SVGPaint::SVG_PAINTTYPE_RGBCOLOR, c, ""); } | |
1429 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } | 1426 float strokeOpacity() const { return svgStyle()->strokeOpacity(); } |
1430 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } | 1427 void setStrokeOpacity(float f) { accessSVGStyle()->setStrokeOpacity(f); } |
1431 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); } | 1428 SVGLength* strokeWidth() const { return svgStyle()->strokeWidth(); } |
1432 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi
dth(w); } | 1429 void setStrokeWidth(PassRefPtr<SVGLength> w) { accessSVGStyle()->setStrokeWi
dth(w); } |
1433 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray(
); } | 1430 SVGLengthList* strokeDashArray() const { return svgStyle()->strokeDashArray(
); } |
1434 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()-
>setStrokeDashArray(array); } | 1431 void setStrokeDashArray(PassRefPtr<SVGLengthList> array) { accessSVGStyle()-
>setStrokeDashArray(array); } |
1435 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset();
} | 1432 SVGLength* strokeDashOffset() const { return svgStyle()->strokeDashOffset();
} |
1436 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr
okeDashOffset(d); } | 1433 void setStrokeDashOffset(PassRefPtr<SVGLength> d) { accessSVGStyle()->setStr
okeDashOffset(d); } |
1437 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } | 1434 float strokeMiterLimit() const { return svgStyle()->strokeMiterLimit(); } |
1438 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f)
; } | 1435 void setStrokeMiterLimit(float f) { accessSVGStyle()->setStrokeMiterLimit(f)
; } |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 inline bool RenderStyle::hasPseudoElementStyle() const | 1912 inline bool RenderStyle::hasPseudoElementStyle() const |
1916 { | 1913 { |
1917 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; | 1914 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK; |
1918 } | 1915 } |
1919 | 1916 |
1920 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); | 1917 float calcBorderRadiiConstraintScaleFor(const FloatRect&, const FloatRoundedRect
::Radii&); |
1921 | 1918 |
1922 } // namespace WebCore | 1919 } // namespace WebCore |
1923 | 1920 |
1924 #endif // RenderStyle_h | 1921 #endif // RenderStyle_h |
OLD | NEW |