| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 5 * Copyright (C) 2011 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2011 Dirk Schulze <krit@webkit.org> |
| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 if (clipPathClipper) | 201 if (clipPathClipper) |
| 202 clipPathClipper->postApplyStatefulResource(this, context, clipPathCl
ipperState); | 202 clipPathClipper->postApplyStatefulResource(this, context, clipPathCl
ipperState); |
| 203 } | 203 } |
| 204 | 204 |
| 205 // Masked content layer start. | 205 // Masked content layer start. |
| 206 context->beginLayer(1, CompositeSourceIn, &paintInvalidationRect); | 206 context->beginLayer(1, CompositeSourceIn, &paintInvalidationRect); |
| 207 | 207 |
| 208 return true; | 208 return true; |
| 209 } | 209 } |
| 210 | 210 |
| 211 void RenderSVGResourceClipper::postApplyResource(RenderObject*, GraphicsContext*
&, unsigned short, | 211 void RenderSVGResourceClipper::postApplyResource(RenderObject*, GraphicsContext*
&) |
| 212 const Path*, const RenderSVGShape*) { | 212 { |
| 213 // Clippers are always applied using stateful methods. | 213 // Clippers are always applied using stateful methods. |
| 214 ASSERT_NOT_REACHED(); | 214 ASSERT_NOT_REACHED(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void RenderSVGResourceClipper::postApplyStatefulResource(RenderObject*, Graphics
Context*& context, ClipperState& clipperState) | 217 void RenderSVGResourceClipper::postApplyStatefulResource(RenderObject*, Graphics
Context*& context, ClipperState& clipperState) |
| 218 { | 218 { |
| 219 switch (clipperState) { | 219 switch (clipperState) { |
| 220 case ClipperAppliedPath: | 220 case ClipperAppliedPath: |
| 221 // Path-only clipping, no layers to restore. | 221 // Path-only clipping, no layers to restore. |
| 222 break; | 222 break; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 AffineTransform transform; | 371 AffineTransform transform; |
| 372 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); | 372 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); |
| 373 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); | 373 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); |
| 374 return transform.mapRect(m_clipBoundaries); | 374 return transform.mapRect(m_clipBoundaries); |
| 375 } | 375 } |
| 376 | 376 |
| 377 return m_clipBoundaries; | 377 return m_clipBoundaries; |
| 378 } | 378 } |
| 379 | 379 |
| 380 } | 380 } |
| OLD | NEW |