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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com>
9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
10 * Copyright (C) 2011 University of Szeged 10 * Copyright (C) 2011 University of Szeged
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void LayoutSVGShape::paint(const PaintInfo& paintInfo, 239 void LayoutSVGShape::paint(const PaintInfo& paintInfo,
240 const LayoutPoint&) const { 240 const LayoutPoint&) const {
241 SVGShapePainter(*this).paint(paintInfo); 241 SVGShapePainter(*this).paint(paintInfo);
242 } 242 }
243 243
244 // This method is called from inside paintOutline() since we call paintOutline() 244 // This method is called from inside paintOutline() since we call paintOutline()
245 // while transformed to our coord system, return local coords 245 // while transformed to our coord system, return local coords
246 void LayoutSVGShape::addOutlineRects(Vector<LayoutRect>& rects, 246 void LayoutSVGShape::addOutlineRects(Vector<LayoutRect>& rects,
247 const LayoutPoint&, 247 const LayoutPoint&,
248 IncludeBlockVisualOverflowOrNot) const { 248 IncludeBlockVisualOverflowOrNot) const {
249 rects.append(LayoutRect(visualRectInLocalSVGCoordinates())); 249 rects.push_back(LayoutRect(visualRectInLocalSVGCoordinates()));
250 } 250 }
251 251
252 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result, 252 bool LayoutSVGShape::nodeAtFloatPoint(HitTestResult& result,
253 const FloatPoint& pointInParent, 253 const FloatPoint& pointInParent,
254 HitTestAction hitTestAction) { 254 HitTestAction hitTestAction) {
255 // We only draw in the foreground phase, so we only hit-test then. 255 // We only draw in the foreground phase, so we only hit-test then.
256 if (hitTestAction != HitTestForeground) 256 if (hitTestAction != HitTestForeground)
257 return false; 257 return false;
258 258
259 FloatPoint localPoint; 259 FloatPoint localPoint;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 return lengthContext.valueForLength(style()->svgStyle().strokeWidth()); 330 return lengthContext.valueForLength(style()->svgStyle().strokeWidth());
331 } 331 }
332 332
333 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const { 333 LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const {
334 if (!m_rareData) 334 if (!m_rareData)
335 m_rareData = WTF::makeUnique<LayoutSVGShapeRareData>(); 335 m_rareData = WTF::makeUnique<LayoutSVGShapeRareData>();
336 return *m_rareData.get(); 336 return *m_rareData.get();
337 } 337 }
338 338
339 } // namespace blink 339 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698