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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h

Issue 1376523002: Support 'pathLength' for stroking operations on <path> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove double space Created 4 years, 10 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) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void setNeedsTransformUpdate() final { m_needsTransformUpdate = true; } 64 void setNeedsTransformUpdate() final { m_needsTransformUpdate = true; }
65 65
66 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin terEventsHitRules); 66 bool nodeAtFloatPointInternal(const HitTestRequest&, const FloatPoint&, Poin terEventsHitRules);
67 67
68 Path& path() const 68 Path& path() const
69 { 69 {
70 ASSERT(m_path); 70 ASSERT(m_path);
71 return *m_path; 71 return *m_path;
72 } 72 }
73 bool hasPath() const { return m_path.get(); } 73 bool hasPath() const { return m_path.get(); }
74 float dashScaleFactor() const;
74 75
75 virtual bool isShapeEmpty() const { return path().isEmpty(); } 76 virtual bool isShapeEmpty() const { return path().isEmpty(); }
76 77
77 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect() == VE_NON_SCALING_STROKE; } 78 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect() == VE_NON_SCALING_STROKE; }
78 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; 79 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const;
79 AffineTransform nonScalingStrokeTransform() const; 80 AffineTransform nonScalingStrokeTransform() const;
80 AffineTransform localTransform() const final { return m_localTransform; } 81 AffineTransform localTransform() const final { return m_localTransform; }
81 82
82 virtual const Vector<MarkerPosition>* markerPositions() const { return nullp tr; } 83 virtual const Vector<MarkerPosition>* markerPositions() const { return nullp tr; }
83 84
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 bool m_needsBoundariesUpdate : 1; 140 bool m_needsBoundariesUpdate : 1;
140 bool m_needsShapeUpdate : 1; 141 bool m_needsShapeUpdate : 1;
141 bool m_needsTransformUpdate : 1; 142 bool m_needsTransformUpdate : 1;
142 }; 143 };
143 144
144 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); 145 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape());
145 146
146 } // namespace blink 147 } // namespace blink
147 148
148 #endif 149 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698