| 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 28 matching lines...) Expand all Loading... |
| 39 m_cachedPaintRecord.reset(); | 39 m_cachedPaintRecord.reset(); |
| 40 m_maskContentBoundaries = FloatRect(); | 40 m_maskContentBoundaries = FloatRect(); |
| 41 markAllClientsForInvalidation(markForInvalidation | 41 markAllClientsForInvalidation(markForInvalidation |
| 42 ? LayoutAndBoundariesInvalidation | 42 ? LayoutAndBoundariesInvalidation |
| 43 : ParentOnlyInvalidation); | 43 : ParentOnlyInvalidation); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void LayoutSVGResourceMasker::removeClientFromCache(LayoutObject* client, | 46 void LayoutSVGResourceMasker::removeClientFromCache(LayoutObject* client, |
| 47 bool markForInvalidation) { | 47 bool markForInvalidation) { |
| 48 ASSERT(client); | 48 ASSERT(client); |
| 49 markClientForInvalidation(client, markForInvalidation | 49 markClientForInvalidation( |
| 50 ? BoundariesInvalidation | 50 client, |
| 51 : ParentOnlyInvalidation); | 51 markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation); |
| 52 } | 52 } |
| 53 | 53 |
| 54 sk_sp<const PaintRecord> LayoutSVGResourceMasker::createPaintRecord( | 54 sk_sp<const PaintRecord> LayoutSVGResourceMasker::createPaintRecord( |
| 55 AffineTransform& contentTransformation, | 55 AffineTransform& contentTransformation, |
| 56 const FloatRect& targetBoundingBox, | 56 const FloatRect& targetBoundingBox, |
| 57 GraphicsContext& context) { | 57 GraphicsContext& context) { |
| 58 SVGUnitTypes::SVGUnitType contentUnits = toSVGMaskElement(element()) | 58 SVGUnitTypes::SVGUnitType contentUnits = toSVGMaskElement(element()) |
| 59 ->maskContentUnits() | 59 ->maskContentUnits() |
| 60 ->currentValue() | 60 ->currentValue() |
| 61 ->enumValue(); | 61 ->enumValue(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 transform.scaleNonUniform(objectBoundingBox.width(), | 134 transform.scaleNonUniform(objectBoundingBox.width(), |
| 135 objectBoundingBox.height()); | 135 objectBoundingBox.height()); |
| 136 maskRect = transform.mapRect(maskRect); | 136 maskRect = transform.mapRect(maskRect); |
| 137 } | 137 } |
| 138 | 138 |
| 139 maskRect.intersect(maskBoundaries); | 139 maskRect.intersect(maskBoundaries); |
| 140 return maskRect; | 140 return maskRect; |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| OLD | NEW |