| 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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "wtf/MathExtras.h" | 26 #include "wtf/MathExtras.h" |
| 27 #include "wtf/text/WTFString.h" | 27 #include "wtf/text/WTFString.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 template <> | 31 template <> |
| 32 const SVGEnumerationStringEntries& | 32 const SVGEnumerationStringEntries& |
| 33 getStaticStringEntries<SVGMarkerOrientType>() { | 33 getStaticStringEntries<SVGMarkerOrientType>() { |
| 34 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); | 34 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); |
| 35 if (entries.isEmpty()) { | 35 if (entries.isEmpty()) { |
| 36 entries.append(std::make_pair(SVGMarkerOrientAuto, "auto")); | 36 entries.push_back(std::make_pair(SVGMarkerOrientAuto, "auto")); |
| 37 entries.append(std::make_pair(SVGMarkerOrientAngle, "angle")); | 37 entries.push_back(std::make_pair(SVGMarkerOrientAngle, "angle")); |
| 38 entries.append( | 38 entries.push_back( |
| 39 std::make_pair(SVGMarkerOrientAutoStartReverse, "auto-start-reverse")); | 39 std::make_pair(SVGMarkerOrientAutoStartReverse, "auto-start-reverse")); |
| 40 } | 40 } |
| 41 return entries; | 41 return entries; |
| 42 } | 42 } |
| 43 | 43 |
| 44 template <> | 44 template <> |
| 45 unsigned short getMaxExposedEnumValue<SVGMarkerOrientType>() { | 45 unsigned short getMaxExposedEnumValue<SVGMarkerOrientType>() { |
| 46 return SVGMarkerOrientAngle; | 46 return SVGMarkerOrientAngle; |
| 47 } | 47 } |
| 48 | 48 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 void SVGAngle::orientTypeChanged() { | 441 void SVGAngle::orientTypeChanged() { |
| 442 if (orientType()->enumValue() == SVGMarkerOrientAuto || | 442 if (orientType()->enumValue() == SVGMarkerOrientAuto || |
| 443 orientType()->enumValue() == SVGMarkerOrientAutoStartReverse) { | 443 orientType()->enumValue() == SVGMarkerOrientAutoStartReverse) { |
| 444 m_unitType = kSvgAngletypeUnspecified; | 444 m_unitType = kSvgAngletypeUnspecified; |
| 445 m_valueInSpecifiedUnits = 0; | 445 m_valueInSpecifiedUnits = 0; |
| 446 } | 446 } |
| 447 } | 447 } |
| 448 | 448 |
| 449 } // namespace blink | 449 } // namespace blink |
| OLD | NEW |