| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2009-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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 m_maskContentBoundaries = FloatRect(); | 46 m_maskContentBoundaries = FloatRect(); |
| 47 markAllClientsForInvalidation(markForInvalidation ? LayoutAndBoundariesInval
idation : ParentOnlyInvalidation); | 47 markAllClientsForInvalidation(markForInvalidation ? LayoutAndBoundariesInval
idation : ParentOnlyInvalidation); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void RenderSVGResourceMasker::removeClientFromCache(RenderObject* client, bool m
arkForInvalidation) | 50 void RenderSVGResourceMasker::removeClientFromCache(RenderObject* client, bool m
arkForInvalidation) |
| 51 { | 51 { |
| 52 ASSERT(client); | 52 ASSERT(client); |
| 53 markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidati
on : ParentOnlyInvalidation); | 53 markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidati
on : ParentOnlyInvalidation); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool RenderSVGResourceMasker::prepareEffect(RenderObject* object, RenderStyle*,
GraphicsContext*& context) | 56 bool RenderSVGResourceMasker::prepareEffect(RenderObject* object, GraphicsContex
t*& context) |
| 57 { | 57 { |
| 58 ASSERT(object); | 58 ASSERT(object); |
| 59 ASSERT(context); | 59 ASSERT(context); |
| 60 ASSERT(style()); | 60 ASSERT(style()); |
| 61 ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout()); | 61 ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout()); |
| 62 | 62 |
| 63 clearInvalidationMask(); | 63 clearInvalidationMask(); |
| 64 | 64 |
| 65 FloatRect paintInvalidationRect = object->paintInvalidationRectInLocalCoordi
nates(); | 65 FloatRect paintInvalidationRect = object->paintInvalidationRectInLocalCoordi
nates(); |
| 66 if (paintInvalidationRect.isEmpty() || !element()->hasChildren()) | 66 if (paintInvalidationRect.isEmpty() || !element()->hasChildren()) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); | 179 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); |
| 180 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); | 180 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); |
| 181 maskRect = transform.mapRect(maskRect); | 181 maskRect = transform.mapRect(maskRect); |
| 182 } | 182 } |
| 183 | 183 |
| 184 maskRect.intersect(maskBoundaries); | 184 maskRect.intersect(maskBoundaries); |
| 185 return maskRect; | 185 return maskRect; |
| 186 } | 186 } |
| 187 | 187 |
| 188 } | 188 } |
| OLD | NEW |