OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 renderer = renderer->parent(); | 219 renderer = renderer->parent(); |
220 } | 220 } |
221 | 221 |
222 // Continue walking up the layer tree, accumulating CSS transforms. | 222 // Continue walking up the layer tree, accumulating CSS transforms. |
223 RenderLayer* layer = renderer ? renderer->enclosingLayer() : 0; | 223 RenderLayer* layer = renderer ? renderer->enclosingLayer() : 0; |
224 while (layer) { | 224 while (layer) { |
225 if (TransformationMatrix* layerTransform = layer->transform()) | 225 if (TransformationMatrix* layerTransform = layer->transform()) |
226 absoluteTransform = layerTransform->toAffineTransform() * absoluteTr
ansform; | 226 absoluteTransform = layerTransform->toAffineTransform() * absoluteTr
ansform; |
227 | 227 |
228 // We can stop at compositing layers, to match the backing resolution. | 228 // We can stop at compositing layers, to match the backing resolution. |
229 if (layer->isComposited()) | 229 // FIXME: should we be computing the transform to the nearest composited
layer, |
| 230 // or the nearest composited layer that does not paint into its ancestor
? |
| 231 if (layer->compositedLayerMapping()) |
230 break; | 232 break; |
231 | 233 |
232 layer = layer->parent(); | 234 layer = layer->parent(); |
233 } | 235 } |
234 | 236 |
235 if (deviceScaleFactor != 1) | 237 if (deviceScaleFactor != 1) |
236 absoluteTransform.scale(deviceScaleFactor); | 238 absoluteTransform.scale(deviceScaleFactor); |
237 } | 239 } |
238 | 240 |
239 bool SVGRenderingContext::createImageBufferForPattern(const FloatRect& absoluteT
argetRect, const FloatRect& clampedAbsoluteTargetRect, OwnPtr<ImageBuffer>& imag
eBuffer, RenderingMode renderingMode) | 241 bool SVGRenderingContext::createImageBufferForPattern(const FloatRect& absoluteT
argetRect, const FloatRect& clampedAbsoluteTargetRect, OwnPtr<ImageBuffer>& imag
eBuffer, RenderingMode renderingMode) |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); | 323 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); |
322 } else | 324 } else |
323 return false; | 325 return false; |
324 } | 326 } |
325 | 327 |
326 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); | 328 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); |
327 return true; | 329 return true; |
328 } | 330 } |
329 | 331 |
330 } | 332 } |
OLD | NEW |