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

Side by Side Diff: Source/core/svg/SVGPathByteStream.h

Issue 150653006: Remove the Vector::append overload that takes a Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/svg/SVGGlyphMap.h ('k') | Source/core/timing/Performance.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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 { 44 {
45 return adoptPtr(new SVGPathByteStream(m_data)); 45 return adoptPtr(new SVGPathByteStream(m_data));
46 } 46 }
47 47
48 typedef Vector<unsigned char> Data; 48 typedef Vector<unsigned char> Data;
49 typedef Data::const_iterator DataIterator; 49 typedef Data::const_iterator DataIterator;
50 50
51 DataIterator begin() { return m_data.begin(); } 51 DataIterator begin() { return m_data.begin(); }
52 DataIterator end() { return m_data.end(); } 52 DataIterator end() { return m_data.end(); }
53 void append(unsigned char byte) { m_data.append(byte); } 53 void append(unsigned char byte) { m_data.append(byte); }
54 void append(SVGPathByteStream* other) { m_data.append(other->m_data); } 54 void append(SVGPathByteStream* other) { m_data.appendVector(other->m_data); }
55 void clear() { m_data.clear(); } 55 void clear() { m_data.clear(); }
56 void reserveInitialCapacity(size_t size) { m_data.reserveInitialCapacity(siz e); } 56 void reserveInitialCapacity(size_t size) { m_data.reserveInitialCapacity(siz e); }
57 void shrinkToFit() { m_data.shrinkToFit(); } 57 void shrinkToFit() { m_data.shrinkToFit(); }
58 bool isEmpty() const { return m_data.isEmpty(); } 58 bool isEmpty() const { return m_data.isEmpty(); }
59 unsigned size() const { return m_data.size(); } 59 unsigned size() const { return m_data.size(); }
60 60
61 // Only defined to let SVGAnimatedPathAnimator use the standard list code pa ths - this method is never called. 61 // Only defined to let SVGAnimatedPathAnimator use the standard list code pa ths - this method is never called.
62 void resize(unsigned) { } 62 void resize(unsigned) { }
63 63
64 private: 64 private:
65 SVGPathByteStream() { } 65 SVGPathByteStream() { }
66 SVGPathByteStream(Data& data) 66 SVGPathByteStream(Data& data)
67 : m_data(data) 67 : m_data(data)
68 { 68 {
69 } 69 }
70 70
71 Data m_data; 71 Data m_data;
72 }; 72 };
73 73
74 } // namespace WebCore 74 } // namespace WebCore
75 75
76 #endif // SVGPathByteStream_h 76 #endif // SVGPathByteStream_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGlyphMap.h ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698