| 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 19 matching lines...) Expand all Loading... |
| 30 class LayoutSVGResourceClipper final : public LayoutSVGResourceContainer { | 30 class LayoutSVGResourceClipper final : public LayoutSVGResourceContainer { |
| 31 public: | 31 public: |
| 32 explicit LayoutSVGResourceClipper(SVGClipPathElement*); | 32 explicit LayoutSVGResourceClipper(SVGClipPathElement*); |
| 33 ~LayoutSVGResourceClipper() override; | 33 ~LayoutSVGResourceClipper() override; |
| 34 | 34 |
| 35 const char* name() const override { return "LayoutSVGResourceClipper"; } | 35 const char* name() const override { return "LayoutSVGResourceClipper"; } |
| 36 | 36 |
| 37 void removeAllClientsFromCache(bool markForInvalidation = true) override; | 37 void removeAllClientsFromCache(bool markForInvalidation = true) override; |
| 38 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o
verride; | 38 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o
verride; |
| 39 | 39 |
| 40 FloatRect resourceBoundingBox(const LayoutObject*); | 40 FloatRect resourceBoundingBox(const FloatRect& referenceBox); |
| 41 | 41 |
| 42 static const LayoutSVGResourceType s_resourceType = ClipperResourceType; | 42 static const LayoutSVGResourceType s_resourceType = ClipperResourceType; |
| 43 LayoutSVGResourceType resourceType() const override { return s_resourceType;
} | 43 LayoutSVGResourceType resourceType() const override { return s_resourceType;
} |
| 44 | 44 |
| 45 bool hitTestClipContent(const FloatRect&, const FloatPoint&); | 45 bool hitTestClipContent(const FloatRect&, const FloatPoint&); |
| 46 | 46 |
| 47 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen
t(element())->clipPathUnits()->currentValue()->enumValue(); } | 47 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen
t(element())->clipPathUnits()->currentValue()->enumValue(); } |
| 48 | 48 |
| 49 bool asPath(const AffineTransform&, const FloatRect& referenceBox, Path&); | 49 bool asPath(const AffineTransform&, const FloatRect& referenceBox, Path&); |
| 50 PassRefPtr<const SkPicture> createContentPicture(); | 50 PassRefPtr<const SkPicture> createContentPicture(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 68 | 68 |
| 69 // Reference cycle detection. | 69 // Reference cycle detection. |
| 70 bool m_inClipExpansion; | 70 bool m_inClipExpansion; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceClipper, ClipperResourceT
ype); | 73 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceClipper, ClipperResourceT
ype); |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif | 77 #endif |
| OLD | NEW |