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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceClipper.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // clipPath can be clipped too, but don't have a boundingBox or repaintRect. So we can't call 45 // clipPath can be clipped too, but don't have a boundingBox or repaintRect. So we can't call
46 // applyResource directly and use the rects from the object, since they are empty for RenderSVGResources 46 // applyResource directly and use the rects from the object, since they are empty for RenderSVGResources
47 // FIXME: We made applyClippingToContext public because we cannot call apply Resource on HTML elements (it asserts on RenderObject::objectBoundingBox) 47 // FIXME: We made applyClippingToContext public because we cannot call apply Resource on HTML elements (it asserts on RenderObject::objectBoundingBox)
48 bool applyClippingToContext(RenderObject*, const FloatRect&, const FloatRect &, GraphicsContext*); 48 bool applyClippingToContext(RenderObject*, const FloatRect&, const FloatRect &, GraphicsContext*);
49 virtual FloatRect resourceBoundingBox(RenderObject*); 49 virtual FloatRect resourceBoundingBox(RenderObject*);
50 50
51 virtual RenderSVGResourceType resourceType() const { return ClipperResourceT ype; } 51 virtual RenderSVGResourceType resourceType() const { return ClipperResourceT ype; }
52 52
53 bool hitTestClipContent(const FloatRect&, const FloatPoint&); 53 bool hitTestClipContent(const FloatRect&, const FloatPoint&);
54 54
55 SVGUnitTypes::SVGUnitType clipPathUnits() const { return static_cast<SVGClip PathElement*>(node())->clipPathUnits(); } 55 SVGUnitTypes::SVGUnitType clipPathUnits() const { return static_cast<SVGClip PathElement*>(node())->clipPathUnitsCurrentValue(); }
56 56
57 static RenderSVGResourceType s_resourceType; 57 static RenderSVGResourceType s_resourceType;
58 private: 58 private:
59 bool pathOnlyClipping(GraphicsContext*, const AffineTransform&, const FloatR ect&); 59 bool pathOnlyClipping(GraphicsContext*, const AffineTransform&, const FloatR ect&);
60 bool drawContentIntoMaskImage(ClipperData*, const FloatRect& objectBoundingB ox); 60 bool drawContentIntoMaskImage(ClipperData*, const FloatRect& objectBoundingB ox);
61 void calculateClipContentRepaintRect(); 61 void calculateClipContentRepaintRect();
62 62
63 FloatRect m_clipBoundaries; 63 FloatRect m_clipBoundaries;
64 HashMap<RenderObject*, ClipperData*> m_clipper; 64 HashMap<RenderObject*, ClipperData*> m_clipper;
65 }; 65 };
66 66
67 } 67 }
68 68
69 #endif 69 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698