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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 RenderSVGResourceMasker(SVGMaskElement*); | 42 RenderSVGResourceMasker(SVGMaskElement*); |
43 virtual ~RenderSVGResourceMasker(); | 43 virtual ~RenderSVGResourceMasker(); |
44 | 44 |
45 virtual const char* renderName() const { return "RenderSVGResourceMasker"; } | 45 virtual const char* renderName() const { return "RenderSVGResourceMasker"; } |
46 | 46 |
47 virtual void removeAllClientsFromCache(bool markForInvalidation = true); | 47 virtual void removeAllClientsFromCache(bool markForInvalidation = true); |
48 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); | 48 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); |
49 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); | 49 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); |
50 virtual FloatRect resourceBoundingBox(RenderObject*); | 50 virtual FloatRect resourceBoundingBox(RenderObject*); |
51 | 51 |
52 SVGUnitTypes::SVGUnitType maskUnits() const { return static_cast<SVGMaskElem
ent*>(node())->maskUnitsCurrentValue(); } | 52 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(node()
)->maskUnitsCurrentValue(); } |
53 SVGUnitTypes::SVGUnitType maskContentUnits() const { return static_cast<SVGM
askElement*>(node())->maskContentUnitsCurrentValue(); } | 53 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement
(node())->maskContentUnitsCurrentValue(); } |
54 | 54 |
55 virtual RenderSVGResourceType resourceType() const { return s_resourceType;
} | 55 virtual RenderSVGResourceType resourceType() const { return s_resourceType;
} |
56 static RenderSVGResourceType s_resourceType; | 56 static RenderSVGResourceType s_resourceType; |
57 | 57 |
58 private: | 58 private: |
59 bool drawContentIntoMaskImage(MaskerData*, ColorSpace, const SVGMaskElement*
, RenderObject*); | 59 bool drawContentIntoMaskImage(MaskerData*, ColorSpace, const SVGMaskElement*
, RenderObject*); |
60 void calculateMaskContentRepaintRect(); | 60 void calculateMaskContentRepaintRect(); |
61 | 61 |
62 FloatRect m_maskContentBoundaries; | 62 FloatRect m_maskContentBoundaries; |
63 HashMap<RenderObject*, MaskerData*> m_masker; | 63 HashMap<RenderObject*, MaskerData*> m_masker; |
64 }; | 64 }; |
65 | 65 |
66 } | 66 } |
67 | 67 |
68 #endif | 68 #endif |
OLD | NEW |