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

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

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) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 23 matching lines...) Expand all
34 #include "core/svg/SVGPointTearOff.h" 34 #include "core/svg/SVGPointTearOff.h"
35 #include "core/svg/SVGRectTearOff.h" 35 #include "core/svg/SVGRectTearOff.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 template <> 39 template <>
40 const SVGEnumerationStringEntries& 40 const SVGEnumerationStringEntries&
41 getStaticStringEntries<SVGLengthAdjustType>() { 41 getStaticStringEntries<SVGLengthAdjustType>() {
42 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); 42 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ());
43 if (entries.isEmpty()) { 43 if (entries.isEmpty()) {
44 entries.append(std::make_pair(SVGLengthAdjustSpacing, "spacing")); 44 entries.push_back(std::make_pair(SVGLengthAdjustSpacing, "spacing"));
45 entries.append( 45 entries.push_back(
46 std::make_pair(SVGLengthAdjustSpacingAndGlyphs, "spacingAndGlyphs")); 46 std::make_pair(SVGLengthAdjustSpacingAndGlyphs, "spacingAndGlyphs"));
47 } 47 }
48 return entries; 48 return entries;
49 } 49 }
50 50
51 // SVGTextContentElement's 'textLength' attribute needs special handling. 51 // SVGTextContentElement's 'textLength' attribute needs special handling.
52 // It should return getComputedTextLength() when textLength is not specified 52 // It should return getComputedTextLength() when textLength is not specified
53 // manually. 53 // manually.
54 class SVGAnimatedTextLength final : public SVGAnimatedLength { 54 class SVGAnimatedTextLength final : public SVGAnimatedLength {
55 public: 55 public:
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline())) 295 (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline()))
296 return nullptr; 296 return nullptr;
297 297
298 SVGElement* element = toSVGElement(lineLayoutItem.node()); 298 SVGElement* element = toSVGElement(lineLayoutItem.node());
299 ASSERT(element); 299 ASSERT(element);
300 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element) 300 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element)
301 : 0; 301 : 0;
302 } 302 }
303 303
304 } // namespace blink 304 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGStringList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698