| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou
rceType; } | 69 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou
rceType; } |
| 70 | 70 |
| 71 bool hitTestClipContent(const FloatRect&, const FloatPoint&); | 71 bool hitTestClipContent(const FloatRect&, const FloatPoint&); |
| 72 | 72 |
| 73 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen
t(element())->clipPathUnits()->currentValue()->enumValue(); } | 73 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen
t(element())->clipPathUnits()->currentValue()->enumValue(); } |
| 74 | 74 |
| 75 static const RenderSVGResourceType s_resourceType; | 75 static const RenderSVGResourceType s_resourceType; |
| 76 private: | 76 private: |
| 77 bool tryPathOnlyClipping(GraphicsContext*, const AffineTransform&, const Flo
atRect&); | 77 bool tryPathOnlyClipping(GraphicsContext*, const AffineTransform&, const Flo
atRect&); |
| 78 void drawClipMaskContent(GraphicsContext*, const FloatRect& targetBoundingBo
x); | 78 void drawClipMaskContent(GraphicsContext*, const FloatRect& targetBoundingBo
x); |
| 79 PassRefPtr<DisplayList> asDisplayList(GraphicsContext*, const AffineTransfor
m&); | 79 void createDisplayList(GraphicsContext*, const AffineTransform&); |
| 80 void calculateClipContentPaintInvalidationRect(); | 80 void calculateClipContentPaintInvalidationRect(); |
| 81 | 81 |
| 82 RefPtr<DisplayList> m_clipContentDisplayList; | 82 RefPtr<DisplayList> m_clipContentDisplayList; |
| 83 FloatRect m_clipBoundaries; | 83 FloatRect m_clipBoundaries; |
| 84 | 84 |
| 85 // Reference cycle detection. | 85 // Reference cycle detection. |
| 86 bool m_inClipExpansion; | 86 bool m_inClipExpansion; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceClipper, ClipperResourceT
ype); | 89 DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceClipper, ClipperResourceT
ype); |
| 90 | 90 |
| 91 } | 91 } |
| 92 | 92 |
| 93 #endif | 93 #endif |
| OLD | NEW |