| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.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 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return resultStream.release(); | 57 return resultStream.release(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 PassRefPtr<SVGPathByteStream> conditionallyAddPathByteStreams(PassRefPtr<SVGPath
ByteStream> fromStream, const SVGPathByteStream& byStream, unsigned repeatCount
= 1) | 60 PassRefPtr<SVGPathByteStream> conditionallyAddPathByteStreams(PassRefPtr<SVGPath
ByteStream> fromStream, const SVGPathByteStream& byStream, unsigned repeatCount
= 1) |
| 61 { | 61 { |
| 62 if (fromStream->isEmpty() || byStream.isEmpty()) | 62 if (fromStream->isEmpty() || byStream.isEmpty()) |
| 63 return fromStream; | 63 return fromStream; |
| 64 return addPathByteStreams(*fromStream, byStream, repeatCount); | 64 return addPathByteStreams(*fromStream, byStream, repeatCount); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } | 67 } // namespace |
| 68 | 68 |
| 69 SVGPath::SVGPath() | 69 SVGPath::SVGPath() |
| 70 : SVGPropertyBase(classType()) | 70 : SVGPropertyBase(classType()) |
| 71 , m_pathValue(CSSPathValue::emptyPathValue()) | 71 , m_pathValue(CSSPathValue::emptyPathValue()) |
| 72 { | 72 { |
| 73 } | 73 } |
| 74 | 74 |
| 75 SVGPath::SVGPath(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue) | 75 SVGPath::SVGPath(PassRefPtrWillBeRawPtr<CSSPathValue> pathValue) |
| 76 : SVGPropertyBase(classType()) | 76 : SVGPropertyBase(classType()) |
| 77 , m_pathValue(pathValue) | 77 , m_pathValue(pathValue) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // FIXME: Support paced animations. | 171 // FIXME: Support paced animations. |
| 172 return -1; | 172 return -1; |
| 173 } | 173 } |
| 174 | 174 |
| 175 DEFINE_TRACE(SVGPath) | 175 DEFINE_TRACE(SVGPath) |
| 176 { | 176 { |
| 177 visitor->trace(m_pathValue); | 177 visitor->trace(m_pathValue); |
| 178 SVGPropertyBase::trace(visitor); | 178 SVGPropertyBase::trace(visitor); |
| 179 } | 179 } |
| 180 | 180 |
| 181 } | 181 } // namespace blink |
| OLD | NEW |