| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o
verride; | 43 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o
verride; |
| 44 | 44 |
| 45 FloatRect resourceBoundingBox(const LayoutObject*); | 45 FloatRect resourceBoundingBox(const LayoutObject*); |
| 46 | 46 |
| 47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen
t())->maskUnits()->currentValue()->enumValue(); } | 47 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen
t())->maskUnits()->currentValue()->enumValue(); } |
| 48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement
(element())->maskContentUnits()->currentValue()->enumValue(); } | 48 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement
(element())->maskContentUnits()->currentValue()->enumValue(); } |
| 49 | 49 |
| 50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType; | 50 static const LayoutSVGResourceType s_resourceType = MaskerResourceType; |
| 51 LayoutSVGResourceType resourceType() const override { return s_resourceType;
} | 51 LayoutSVGResourceType resourceType() const override { return s_resourceType;
} |
| 52 | 52 |
| 53 // Returns a picture to paint the contents of the mask, or nullptr if the pi
cture couldn't be created. |
| 54 // Pictures should only fail creation in certain testing situations. |
| 53 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo
atRect&, GraphicsContext&); | 55 PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const Flo
atRect&, GraphicsContext&); |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 void calculateMaskContentPaintInvalidationRect(); | 58 void calculateMaskContentPaintInvalidationRect(); |
| 57 | 59 |
| 58 RefPtr<const SkPicture> m_maskContentPicture; | 60 RefPtr<const SkPicture> m_maskContentPicture; |
| 59 FloatRect m_maskContentBoundaries; | 61 FloatRect m_maskContentBoundaries; |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp
e); | 64 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMasker, MaskerResourceTyp
e); |
| 63 | 65 |
| 64 } // namespace blink | 66 } // namespace blink |
| 65 | 67 |
| 66 #endif | 68 #endif |
| OLD | NEW |