| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2002, 2003 The Karbon Developers | 2 * Copyright (C) 2002, 2003 The Karbon Developers |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // On failure, emit a line segment to the target point. | 145 // On failure, emit a line segment to the target point. |
| 146 normSeg.command = PathSegLineToAbs; | 146 normSeg.command = PathSegLineToAbs; |
| 147 } else { | 147 } else { |
| 148 // decomposeArcToCubic() has already emitted the normalized | 148 // decomposeArcToCubic() has already emitted the normalized |
| 149 // segments, so set command to PathSegArcAbs, to skip any further | 149 // segments, so set command to PathSegArcAbs, to skip any further |
| 150 // emit. | 150 // emit. |
| 151 normSeg.command = PathSegArcAbs; | 151 normSeg.command = PathSegArcAbs; |
| 152 } | 152 } |
| 153 break; | 153 break; |
| 154 default: | 154 default: |
| 155 ASSERT_NOT_REACHED(); | 155 NOTREACHED(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 if (normSeg.command != PathSegArcAbs) | 158 if (normSeg.command != PathSegArcAbs) |
| 159 m_consumer->emitSegment(normSeg); | 159 m_consumer->emitSegment(normSeg); |
| 160 | 160 |
| 161 m_currentPoint = normSeg.targetPoint; | 161 m_currentPoint = normSeg.targetPoint; |
| 162 | 162 |
| 163 if (!isCubicCommand(segment.command) && !isQuadraticCommand(segment.command)) | 163 if (!isCubicCommand(segment.command) && !isQuadraticCommand(segment.command)) |
| 164 m_controlPoint = m_currentPoint; | 164 m_controlPoint = m_currentPoint; |
| 165 | 165 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 cubicSegment.point1 = pointTransform.mapPoint(point1); | 270 cubicSegment.point1 = pointTransform.mapPoint(point1); |
| 271 cubicSegment.point2 = pointTransform.mapPoint(point2); | 271 cubicSegment.point2 = pointTransform.mapPoint(point2); |
| 272 cubicSegment.targetPoint = pointTransform.mapPoint(targetPoint); | 272 cubicSegment.targetPoint = pointTransform.mapPoint(targetPoint); |
| 273 | 273 |
| 274 m_consumer->emitSegment(cubicSegment); | 274 m_consumer->emitSegment(cubicSegment); |
| 275 } | 275 } |
| 276 return true; | 276 return true; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace blink | 279 } // namespace blink |
| OLD | NEW |