OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2006 Apple Computer, Inc | 5 * Copyright (C) 2006 Apple Computer, Inc |
6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
8 * Copyright (C) 2011 University of Szeged | 8 * Copyright (C) 2011 University of Szeged |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 bool hasPath() const { return m_path.get(); } | 64 bool hasPath() const { return m_path.get(); } |
65 | 65 |
66 virtual bool isShapeEmpty() const { return path().isEmpty(); } | 66 virtual bool isShapeEmpty() const { return path().isEmpty(); } |
67 | 67 |
68 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect()
== VE_NON_SCALING_STROKE; } | 68 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect()
== VE_NON_SCALING_STROKE; } |
69 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; | 69 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; |
70 AffineTransform nonScalingStrokeTransform() const; | 70 AffineTransform nonScalingStrokeTransform() const; |
71 virtual AffineTransform localTransform() const override final { return m_loc
alTransform ? *m_localTransform : LayoutSVGModelObject::localTransform(); } | 71 virtual AffineTransform localTransform() const override final { return m_loc
alTransform ? *m_localTransform : LayoutSVGModelObject::localTransform(); } |
72 | 72 |
73 virtual const Vector<MarkerPosition>* markerPositions() const { return 0; } | 73 virtual const Vector<MarkerPosition>* markerPositions() const { return nullp
tr; } |
74 | 74 |
75 float strokeWidth() const; | 75 float strokeWidth() const; |
76 | 76 |
77 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry
; } | 77 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry
; } |
78 virtual const Vector<FloatPoint>* zeroLengthLineCaps() const { return 0; } | 78 virtual const Vector<FloatPoint>* zeroLengthLineCaps() const { return nullpt
r; } |
79 | 79 |
80 virtual FloatRect objectBoundingBox() const override final { return m_fillBo
undingBox; } | 80 virtual FloatRect objectBoundingBox() const override final { return m_fillBo
undingBox; } |
81 | 81 |
82 virtual const char* name() const override { return "LayoutSVGShape"; } | 82 virtual const char* name() const override { return "LayoutSVGShape"; } |
83 | 83 |
84 protected: | 84 protected: |
85 void clearPath() { m_path.clear(); } | 85 void clearPath() { m_path.clear(); } |
86 void createPath(); | 86 void createPath(); |
87 | 87 |
88 virtual void updateShapeFromElement(); | 88 virtual void updateShapeFromElement(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool m_needsBoundariesUpdate : 1; | 124 bool m_needsBoundariesUpdate : 1; |
125 bool m_needsShapeUpdate : 1; | 125 bool m_needsShapeUpdate : 1; |
126 bool m_needsTransformUpdate : 1; | 126 bool m_needsTransformUpdate : 1; |
127 }; | 127 }; |
128 | 128 |
129 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); | 129 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); |
130 | 130 |
131 } | 131 } |
132 | 132 |
133 #endif | 133 #endif |
OLD | NEW |