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

Side by Side Diff: Source/core/svg/SVGViewSpec.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/SVGUseElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.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) 2007, 2010 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (!m_contextElement) 69 if (!m_contextElement)
70 return 0; 70 return 0;
71 Element* element = m_contextElement->treeScope().getElementById(AtomicString (m_viewTargetString)); 71 Element* element = m_contextElement->treeScope().getElementById(AtomicString (m_viewTargetString));
72 if (!element || !element->isSVGElement()) 72 if (!element || !element->isSVGElement())
73 return 0; 73 return 0;
74 return toSVGElement(element); 74 return toSVGElement(element);
75 } 75 }
76 76
77 void SVGViewSpec::detachContextElement() 77 void SVGViewSpec::detachContextElement()
78 { 78 {
79 m_transform = 0; 79 m_transform = nullptr;
80 clearViewBox(); 80 clearViewBox();
81 clearPreserveAspectRatio(); 81 clearPreserveAspectRatio();
82 m_contextElement = 0; 82 m_contextElement = 0;
83 } 83 }
84 84
85 void SVGViewSpec::reset() 85 void SVGViewSpec::reset()
86 { 86 {
87 resetZoomAndPan(); 87 resetZoomAndPan();
88 m_transform->baseValue()->clear(); 88 m_transform->baseValue()->clear();
89 updateViewBox(FloatRect()); 89 updateViewBox(FloatRect());
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const LChar* ptr = spec.characters8(); 191 const LChar* ptr = spec.characters8();
192 const LChar* end = ptr + spec.length(); 192 const LChar* end = ptr + spec.length();
193 return parseViewSpecInternal(ptr, end); 193 return parseViewSpecInternal(ptr, end);
194 } 194 }
195 const UChar* ptr = spec.characters16(); 195 const UChar* ptr = spec.characters16();
196 const UChar* end = ptr + spec.length(); 196 const UChar* end = ptr + spec.length();
197 return parseViewSpecInternal(ptr, end); 197 return parseViewSpecInternal(ptr, end);
198 } 198 }
199 199
200 } 200 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUseElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698