| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include "core/dom/ElementTraversal.h" | 23 #include "core/dom/ElementTraversal.h" |
| 24 #include "core/rendering/svg/SVGRenderingContext.h" | 24 #include "core/rendering/svg/SVGRenderingContext.h" |
| 25 #include "core/svg/SVGElement.h" | 25 #include "core/svg/SVGElement.h" |
| 26 #include "platform/graphics/DisplayList.h" | 26 #include "platform/graphics/DisplayList.h" |
| 27 #include "platform/graphics/GraphicsContextStateSaver.h" | 27 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 28 #include "platform/transforms/AffineTransform.h" | 28 #include "platform/transforms/AffineTransform.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 const RenderSVGResourceType RenderSVGResourceMasker::s_resourceType = MaskerReso
urceType; | |
| 33 | |
| 34 RenderSVGResourceMasker::RenderSVGResourceMasker(SVGMaskElement* node) | 32 RenderSVGResourceMasker::RenderSVGResourceMasker(SVGMaskElement* node) |
| 35 : RenderSVGResourceContainer(node) | 33 : RenderSVGResourceContainer(node) |
| 36 { | 34 { |
| 37 } | 35 } |
| 38 | 36 |
| 39 RenderSVGResourceMasker::~RenderSVGResourceMasker() | 37 RenderSVGResourceMasker::~RenderSVGResourceMasker() |
| 40 { | 38 { |
| 41 } | 39 } |
| 42 | 40 |
| 43 void RenderSVGResourceMasker::removeAllClientsFromCache(bool markForInvalidation
) | 41 void RenderSVGResourceMasker::removeAllClientsFromCache(bool markForInvalidation
) |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); | 177 transform.translate(objectBoundingBox.x(), objectBoundingBox.y()); |
| 180 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); | 178 transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.h
eight()); |
| 181 maskRect = transform.mapRect(maskRect); | 179 maskRect = transform.mapRect(maskRect); |
| 182 } | 180 } |
| 183 | 181 |
| 184 maskRect.intersect(maskBoundaries); | 182 maskRect.intersect(maskBoundaries); |
| 185 return maskRect; | 183 return maskRect; |
| 186 } | 184 } |
| 187 | 185 |
| 188 } | 186 } |
| OLD | NEW |