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

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

Issue 2390773004: reflow comments in core/svg/ (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.append(std::make_pair(SVGLengthAdjustSpacing, "spacing"));
45 entries.append( 45 entries.append(
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 man ually. 52 // It should return getComputedTextLength() when textLength is not specified
53 // manually.
53 class SVGAnimatedTextLength final : public SVGAnimatedLength { 54 class SVGAnimatedTextLength final : public SVGAnimatedLength {
54 public: 55 public:
55 static SVGAnimatedTextLength* create(SVGTextContentElement* contextElement) { 56 static SVGAnimatedTextLength* create(SVGTextContentElement* contextElement) {
56 return new SVGAnimatedTextLength(contextElement); 57 return new SVGAnimatedTextLength(contextElement);
57 } 58 }
58 59
59 SVGLengthTearOff* baseVal() override { 60 SVGLengthTearOff* baseVal() override {
60 SVGTextContentElement* textContentElement = 61 SVGTextContentElement* textContentElement =
61 toSVGTextContentElement(contextElement()); 62 toSVGTextContentElement(contextElement());
62 if (!textContentElement->textLengthIsSpecifiedByUser()) 63 if (!textContentElement->textLengthIsSpecifiedByUser())
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline())) 289 (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline()))
289 return nullptr; 290 return nullptr;
290 291
291 SVGElement* element = toSVGElement(lineLayoutItem.node()); 292 SVGElement* element = toSVGElement(lineLayoutItem.node());
292 ASSERT(element); 293 ASSERT(element);
293 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element) 294 return isSVGTextContentElement(*element) ? toSVGTextContentElement(element)
294 : 0; 295 : 0;
295 } 296 }
296 297
297 } // namespace blink 298 } // 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