| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * (C) 2005 Rob Buis <buis@kde.org> | 3 * (C) 2005 Rob Buis <buis@kde.org> |
| 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 String SVGEnumerationToString(Enum value) { | 160 String SVGEnumerationToString(Enum value) { |
| 161 const SVGEnumerationStringEntries& entries = getStaticStringEntries<Enum>(); | 161 const SVGEnumerationStringEntries& entries = getStaticStringEntries<Enum>(); |
| 162 | 162 |
| 163 SVGEnumerationStringEntries::const_iterator it = entries.begin(); | 163 SVGEnumerationStringEntries::const_iterator it = entries.begin(); |
| 164 SVGEnumerationStringEntries::const_iterator itEnd = entries.end(); | 164 SVGEnumerationStringEntries::const_iterator itEnd = entries.end(); |
| 165 for (; it != itEnd; ++it) { | 165 for (; it != itEnd; ++it) { |
| 166 if (value == it->first) | 166 if (value == it->first) |
| 167 return it->second; | 167 return it->second; |
| 168 } | 168 } |
| 169 | 169 |
| 170 ASSERT_NOT_REACHED(); | 170 NOTREACHED(); |
| 171 return String(); | 171 return String(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace | 174 } // namespace |
| 175 | 175 |
| 176 static TextStream& operator<<(TextStream& ts, | 176 static TextStream& operator<<(TextStream& ts, |
| 177 const SVGUnitTypes::SVGUnitType& unitType) { | 177 const SVGUnitTypes::SVGUnitType& unitType) { |
| 178 ts << SVGEnumerationToString<SVGUnitTypes::SVGUnitType>(unitType); | 178 ts << SVGEnumerationToString<SVGUnitTypes::SVGUnitType>(unitType); |
| 179 return ts; | 179 return ts; |
| 180 } | 180 } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 } else if (isSVGPolyElement(*svgElement)) { | 381 } else if (isSVGPolyElement(*svgElement)) { |
| 382 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement) | 382 writeNameAndQuotedValue(ts, "points", toSVGPolyElement(*svgElement) |
| 383 .points() | 383 .points() |
| 384 ->currentValue() | 384 ->currentValue() |
| 385 ->valueAsString()); | 385 ->valueAsString()); |
| 386 } else if (isSVGPathElement(*svgElement)) { | 386 } else if (isSVGPathElement(*svgElement)) { |
| 387 writeNameAndQuotedValue( | 387 writeNameAndQuotedValue( |
| 388 ts, "data", | 388 ts, "data", |
| 389 toSVGPathElement(*svgElement).path()->currentValue()->valueAsString()); | 389 toSVGPathElement(*svgElement).path()->currentValue()->valueAsString()); |
| 390 } else { | 390 } else { |
| 391 ASSERT_NOT_REACHED(); | 391 NOTREACHED(); |
| 392 } | 392 } |
| 393 return ts; | 393 return ts; |
| 394 } | 394 } |
| 395 | 395 |
| 396 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) { | 396 static TextStream& operator<<(TextStream& ts, const LayoutSVGRoot& root) { |
| 397 ts << " " << root.frameRect(); | 397 ts << " " << root.frameRect(); |
| 398 writeStyle(ts, root); | 398 writeStyle(ts, root); |
| 399 return ts; | 399 return ts; |
| 400 } | 400 } |
| 401 | 401 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 ts << " "; | 765 ts << " "; |
| 766 writeStandardPrefix(ts, *filter, 0); | 766 writeStandardPrefix(ts, *filter, 0); |
| 767 ts << " " << filter->resourceBoundingBox(&object) << "\n"; | 767 ts << " " << filter->resourceBoundingBox(&object) << "\n"; |
| 768 } | 768 } |
| 769 } | 769 } |
| 770 } | 770 } |
| 771 } | 771 } |
| 772 } | 772 } |
| 773 | 773 |
| 774 } // namespace blink | 774 } // namespace blink |
| OLD | NEW |