| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); | 130 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); |
| 131 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); | 131 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); |
| 132 clipPath.transform(transform); | 132 clipPath.transform(transform); |
| 133 } | 133 } |
| 134 | 134 |
| 135 // Transform path by animatedLocalTransform. | 135 // Transform path by animatedLocalTransform. |
| 136 clipPath.transform(animatedLocalTransform); | 136 clipPath.transform(animatedLocalTransform); |
| 137 | 137 |
| 138 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { | 138 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) { |
| 139 if (!context->displayItemList()->displayItemConstructionIsDisabled()) | 139 if (!context->displayItemList()->displayItemConstructionIsDisabled()) |
| 140 context->displayItemList()->add(BeginClipPathDisplayItem::create(lay
outObject, clipPath)); | 140 context->displayItemList()->createAndAppendIfNeeded<BeginClipPathDis
playItem>(layoutObject, clipPath); |
| 141 } else { | 141 } else { |
| 142 BeginClipPathDisplayItem clipPathDisplayItem(layoutObject, clipPath); | 142 BeginClipPathDisplayItem clipPathDisplayItem(layoutObject, clipPath); |
| 143 clipPathDisplayItem.replay(*context); | 143 clipPathDisplayItem.replay(*context); |
| 144 } | 144 } |
| 145 | 145 |
| 146 return true; | 146 return true; |
| 147 } | 147 } |
| 148 | 148 |
| 149 PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin
eTransform& contentTransformation, const FloatRect& targetBoundingBox, | 149 PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin
eTransform& contentTransformation, const FloatRect& targetBoundingBox, |
| 150 GraphicsContext* context) | 150 GraphicsContext* context) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 AffineTransform transform; | 269 AffineTransform transform; |
| 270 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); | 270 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); |
| 271 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); | 271 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); |
| 272 return transform.mapRect(m_clipBoundaries); | 272 return transform.mapRect(m_clipBoundaries); |
| 273 } | 273 } |
| 274 | 274 |
| 275 return m_clipBoundaries; | 275 return m_clipBoundaries; |
| 276 } | 276 } |
| 277 | 277 |
| 278 } | 278 } |
| OLD | NEW |