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

Side by Side Diff: Source/core/svg/SVGPathSegListBuilder.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathSegListBuilder.h ('k') | Source/core/svg/SVGStaticStringList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2002, 2003 The Karbon Developers 2 * Copyright (C) 2002, 2003 The Karbon Developers
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org>
5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/svg/SVGPathSegLinetoRel.h" 44 #include "core/svg/SVGPathSegLinetoRel.h"
45 #include "core/svg/SVGPathSegLinetoVerticalAbs.h" 45 #include "core/svg/SVGPathSegLinetoVerticalAbs.h"
46 #include "core/svg/SVGPathSegLinetoVerticalRel.h" 46 #include "core/svg/SVGPathSegLinetoVerticalRel.h"
47 #include "core/svg/SVGPathSegMovetoAbs.h" 47 #include "core/svg/SVGPathSegMovetoAbs.h"
48 #include "core/svg/SVGPathSegMovetoRel.h" 48 #include "core/svg/SVGPathSegMovetoRel.h"
49 49
50 namespace WebCore { 50 namespace WebCore {
51 51
52 SVGPathSegListBuilder::SVGPathSegListBuilder() 52 SVGPathSegListBuilder::SVGPathSegListBuilder()
53 : m_pathElement(0) 53 : m_pathElement(0)
54 , m_pathSegList(0) 54 , m_pathSegList(nullptr)
55 , m_pathSegRole(PathSegUndefinedRole) 55 , m_pathSegRole(PathSegUndefinedRole)
56 { 56 {
57 } 57 }
58 58
59 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, bool, PathCoor dinateMode mode) 59 void SVGPathSegListBuilder::moveTo(const FloatPoint& targetPoint, bool, PathCoor dinateMode mode)
60 { 60 {
61 ASSERT(m_pathElement); 61 ASSERT(m_pathElement);
62 ASSERT(m_pathSegList); 62 ASSERT(m_pathSegList);
63 if (mode == AbsoluteCoordinates) 63 if (mode == AbsoluteCoordinates)
64 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m _pathElement, m_pathSegRole, targetPoint.x(), targetPoint.y())); 64 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegMovetoAbs::create(m _pathElement, m_pathSegRole, targetPoint.x(), targetPoint.y()));
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 void SVGPathSegListBuilder::closePath() 149 void SVGPathSegListBuilder::closePath()
150 { 150 {
151 ASSERT(m_pathElement); 151 ASSERT(m_pathElement);
152 ASSERT(m_pathSegList); 152 ASSERT(m_pathSegList);
153 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat hElement, m_pathSegRole)); 153 m_pathSegList->appendWithoutByteStreamSync(SVGPathSegClosePath::create(m_pat hElement, m_pathSegRole));
154 } 154 }
155 155
156 } 156 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegListBuilder.h ('k') | Source/core/svg/SVGStaticStringList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698