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