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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin
terEventsHitRules); | 58 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin
terEventsHitRules); |
59 | 59 |
60 Path& path() const | 60 Path& path() const |
61 { | 61 { |
62 ASSERT(m_path); | 62 ASSERT(m_path); |
63 return *m_path; | 63 return *m_path; |
64 } | 64 } |
65 | 65 |
66 protected: | 66 protected: |
67 virtual void updateShapeFromElement(); | 67 virtual void updateShapeFromElement(); |
68 virtual bool isEmpty() const OVERRIDE; | 68 virtual bool isShapeEmpty() const { return path().isEmpty(); } |
69 virtual bool shapeDependentStrokeContains(const FloatPoint&); | 69 virtual bool shapeDependentStrokeContains(const FloatPoint&); |
70 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c
onst; | 70 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c
onst; |
71 float strokeWidth() const; | 71 float strokeWidth() const; |
72 bool hasPath() const { return m_path.get(); } | 72 bool hasPath() const { return m_path.get(); } |
73 bool hasSmoothStroke() const; | 73 bool hasSmoothStroke() const; |
74 | 74 |
75 bool hasNonScalingStroke() const { return style()->svgStyle()->vectorEffect(
) == VE_NON_SCALING_STROKE; } | 75 bool hasNonScalingStroke() const { return style()->svgStyle()->vectorEffect(
) == VE_NON_SCALING_STROKE; } |
76 AffineTransform nonScalingStrokeTransform() const; | 76 AffineTransform nonScalingStrokeTransform() const; |
77 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; | 77 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; |
78 | 78 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool m_needsBoundariesUpdate : 1; | 122 bool m_needsBoundariesUpdate : 1; |
123 bool m_needsShapeUpdate : 1; | 123 bool m_needsShapeUpdate : 1; |
124 bool m_needsTransformUpdate : 1; | 124 bool m_needsTransformUpdate : 1; |
125 }; | 125 }; |
126 | 126 |
127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); | 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
128 | 128 |
129 } | 129 } |
130 | 130 |
131 #endif | 131 #endif |
OLD | NEW |