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

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

Issue 2014483003: Rename OwnPtr::clear() to reset() in core/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 float strokeWidth() const; 85 float strokeWidth() const;
86 86
87 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; } 87 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; }
88 88
89 FloatRect objectBoundingBox() const final { return m_fillBoundingBox; } 89 FloatRect objectBoundingBox() const final { return m_fillBoundingBox; }
90 90
91 const char* name() const override { return "LayoutSVGShape"; } 91 const char* name() const override { return "LayoutSVGShape"; }
92 92
93 protected: 93 protected:
94 void clearPath() { m_path.clear(); } 94 void clearPath() { m_path.reset(); }
95 void createPath(); 95 void createPath();
96 96
97 virtual void updateShapeFromElement(); 97 virtual void updateShapeFromElement();
98 // Calculates an inclusive bounding box of this shape as if this shape has 98 // Calculates an inclusive bounding box of this shape as if this shape has
99 // a stroke. If this shape has a stroke, then m_strokeBoundingBox is returne d; 99 // a stroke. If this shape has a stroke, then m_strokeBoundingBox is returne d;
100 // otherwise, estimates a bounding box (not necessarily tight) that would 100 // otherwise, estimates a bounding box (not necessarily tight) that would
101 // include this shape's stroke bounding box if it had a stroke. 101 // include this shape's stroke bounding box if it had a stroke.
102 virtual FloatRect hitTestStrokeBoundingBox() const; 102 virtual FloatRect hitTestStrokeBoundingBox() const;
103 virtual bool shapeDependentStrokeContains(const FloatPoint&); 103 virtual bool shapeDependentStrokeContains(const FloatPoint&);
104 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst; 104 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool m_needsBoundariesUpdate : 1; 137 bool m_needsBoundariesUpdate : 1;
138 bool m_needsShapeUpdate : 1; 138 bool m_needsShapeUpdate : 1;
139 bool m_needsTransformUpdate : 1; 139 bool m_needsTransformUpdate : 1;
140 }; 140 };
141 141
142 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); 142 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape());
143 143
144 } // namespace blink 144 } // namespace blink
145 145
146 #endif 146 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698