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

Side by Side Diff: third_party/WebKit/Source/core/style/BasicShapes.h

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase Created 3 years, 11 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) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 static PassRefPtr<BasicShapePolygon> create() { 226 static PassRefPtr<BasicShapePolygon> create() {
227 return adoptRef(new BasicShapePolygon); 227 return adoptRef(new BasicShapePolygon);
228 } 228 }
229 229
230 const Vector<Length>& values() const { return m_values; } 230 const Vector<Length>& values() const { return m_values; }
231 Length getXAt(unsigned i) const { return m_values.at(2 * i); } 231 Length getXAt(unsigned i) const { return m_values.at(2 * i); }
232 Length getYAt(unsigned i) const { return m_values.at(2 * i + 1); } 232 Length getYAt(unsigned i) const { return m_values.at(2 * i + 1); }
233 233
234 void setWindRule(WindRule windRule) { m_windRule = windRule; } 234 void setWindRule(WindRule windRule) { m_windRule = windRule; }
235 void appendPoint(const Length& x, const Length& y) { 235 void appendPoint(const Length& x, const Length& y) {
236 m_values.append(x); 236 m_values.push_back(x);
237 m_values.append(y); 237 m_values.push_back(y);
238 } 238 }
239 239
240 void path(Path&, const FloatRect&) override; 240 void path(Path&, const FloatRect&) override;
241 PassRefPtr<BasicShape> blend(const BasicShape*, double) const override; 241 PassRefPtr<BasicShape> blend(const BasicShape*, double) const override;
242 bool operator==(const BasicShape&) const override; 242 bool operator==(const BasicShape&) const override;
243 243
244 WindRule getWindRule() const override { return m_windRule; } 244 WindRule getWindRule() const override { return m_windRule; }
245 245
246 ShapeType type() const override { return BasicShapePolygonType; } 246 ShapeType type() const override { return BasicShapePolygonType; }
247 247
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 LengthSize m_topLeftRadius; 303 LengthSize m_topLeftRadius;
304 LengthSize m_topRightRadius; 304 LengthSize m_topRightRadius;
305 LengthSize m_bottomRightRadius; 305 LengthSize m_bottomRightRadius;
306 LengthSize m_bottomLeftRadius; 306 LengthSize m_bottomLeftRadius;
307 }; 307 };
308 308
309 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset); 309 DEFINE_BASICSHAPE_TYPE_CASTS(BasicShapeInset);
310 310
311 } // namespace blink 311 } // namespace blink
312 #endif 312 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableSectionPainter.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698