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

Side by Side Diff: Source/core/rendering/svg/RenderSVGPath.h

Issue 33983003: Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE; 46 virtual bool shapeDependentStrokeContains(const FloatPoint&) OVERRIDE;
47 47
48 bool shouldStrokeZeroLengthSubpath() const; 48 bool shouldStrokeZeroLengthSubpath() const;
49 Path* zeroLengthLinecapPath(const FloatPoint&) const; 49 Path* zeroLengthLinecapPath(const FloatPoint&) const;
50 FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const; 50 FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const;
51 void updateZeroLengthSubpaths(); 51 void updateZeroLengthSubpaths();
52 52
53 Vector<FloatPoint> m_zeroLengthLinecapLocations; 53 Vector<FloatPoint> m_zeroLengthLinecapLocations;
54 }; 54 };
55 55
56 inline RenderSVGPath* toRenderSVGPath(RenderObject* object) 56 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGPath, isSVGPath());
57 {
58 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGPath());
59 return static_cast<RenderSVGPath*>(object);
60 }
61 57
62 } 58 }
63 59
64 #endif 60 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGInlineText.h ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698