Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceMasker.h

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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())->maskUnits(); } 52 SVGUnitTypes::SVGUnitType maskUnits() const { return static_cast<SVGMaskElem ent*>(node())->maskUnitsCurrentValue(); }
53 SVGUnitTypes::SVGUnitType maskContentUnits() const { return static_cast<SVGM askElement*>(node())->maskContentUnits(); } 53 SVGUnitTypes::SVGUnitType maskContentUnits() const { return static_cast<SVGM askElement*>(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698