| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ASSERT(item); | 80 ASSERT(item); |
| 81 ASSERT(image); | 81 ASSERT(image); |
| 82 ASSERT(image->context()); | 82 ASSERT(image->context()); |
| 83 | 83 |
| 84 PaintInfo info(image->context(), PaintInfo::infiniteRect(), PaintPhaseForegr
ound, 0, 0, 0, 0); | 84 PaintInfo info(image->context(), PaintInfo::infiniteRect(), PaintPhaseForegr
ound, 0, 0, 0, 0); |
| 85 | 85 |
| 86 AffineTransform& contentTransformation = currentContentTransformation(); | 86 AffineTransform& contentTransformation = currentContentTransformation(); |
| 87 AffineTransform savedContentTransformation = contentTransformation; | 87 AffineTransform savedContentTransformation = contentTransformation; |
| 88 contentTransformation = subtreeContentTransformation * contentTransformation
; | 88 contentTransformation = subtreeContentTransformation * contentTransformation
; |
| 89 | 89 |
| 90 item->layoutIfNeeded(); | 90 ASSERT(!item->needsLayout()); |
| 91 item->paint(info, IntPoint()); | 91 item->paint(info, IntPoint()); |
| 92 | 92 |
| 93 contentTransformation = savedContentTransformation; | 93 contentTransformation = savedContentTransformation; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const Affi
neTransform& absoluteTransform, const FloatRect& clampedAbsoluteTargetRect, OwnP
tr<ImageBuffer>& imageBuffer) | 96 void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const Affi
neTransform& absoluteTransform, const FloatRect& clampedAbsoluteTargetRect, OwnP
tr<ImageBuffer>& imageBuffer) |
| 97 { | 97 { |
| 98 ASSERT(context); | 98 ASSERT(context); |
| 99 ASSERT(imageBuffer); | 99 ASSERT(imageBuffer); |
| 100 | 100 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 { | 132 { |
| 133 AffineTransform::DecomposedType decomposition; | 133 AffineTransform::DecomposedType decomposition; |
| 134 transform.decompose(decomposition); | 134 transform.decompose(decomposition); |
| 135 decomposition.angle = 0; | 135 decomposition.angle = 0; |
| 136 transform.recompose(decomposition); | 136 transform.recompose(decomposition); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } | 139 } |
| 140 | 140 |
| 141 #endif // ENABLE(SVG) | 141 #endif // ENABLE(SVG) |
| OLD | NEW |