| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |