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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Default is true, so we grab a Path object once from SVGGeometryElement. 65 // Default is true, so we grab a Path object once from SVGGeometryElement.
66 m_needsShapeUpdate(true), 66 m_needsShapeUpdate(true),
67 // Default is true, so we grab a AffineTransform object once from 67 // Default is true, so we grab a AffineTransform object once from
68 // SVGGeometryElement. 68 // SVGGeometryElement.
69 m_needsTransformUpdate(true) {} 69 m_needsTransformUpdate(true) {}
70 70
71 LayoutSVGShape::~LayoutSVGShape() {} 71 LayoutSVGShape::~LayoutSVGShape() {}
72 72
73 void LayoutSVGShape::createPath() { 73 void LayoutSVGShape::createPath() {
74 if (!m_path) 74 if (!m_path)
75 m_path = makeUnique<Path>(); 75 m_path = WTF::makeUnique<Path>();
76 *m_path = toSVGGeometryElement(element())->asPath(); 76 *m_path = toSVGGeometryElement(element())->asPath();
77 if (m_rareData.get()) 77 if (m_rareData.get())
78 m_rareData->m_cachedNonScalingStrokePath.clear(); 78 m_rareData->m_cachedNonScalingStrokePath.clear();
79 } 79 }
80 80
81 float LayoutSVGShape::dashScaleFactor() const { 81 float LayoutSVGShape::dashScaleFactor() const {
82 if (!styleRef().svgStyle().strokeDashArray()->size()) 82 if (!styleRef().svgStyle().strokeDashArray()->size())
83 return 1; 83 return 1;
84 return toSVGGeometryElement(*element()).pathLengthScaleFactor(); 84 return toSVGGeometryElement(*element()).pathLengthScaleFactor();
85 } 85 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 return strokeBoundingBox; 325 return strokeBoundingBox;
326 } 326 }
327 327
328 float LayoutSVGShape::strokeWidth() const { 328 float LayoutSVGShape::strokeWidth() const {
329 SVGLengthContext lengthContext(element()); 329 SVGLengthContext lengthContext(element());
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 = 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