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

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

Issue 666403002: Decouple content transform fiddling from SVGRenderingContext::renderSubtree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGResourceClipper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual RenderSVGResourceType resourceType() const override { return s_resou rceType; } 59 virtual RenderSVGResourceType resourceType() const override { return s_resou rceType; }
60 60
61 bool hitTestClipContent(const FloatRect&, const FloatPoint&); 61 bool hitTestClipContent(const FloatRect&, const FloatPoint&);
62 62
63 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen t(element())->clipPathUnits()->currentValue()->enumValue(); } 63 SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElemen t(element())->clipPathUnits()->currentValue()->enumValue(); }
64 64
65 static const RenderSVGResourceType s_resourceType; 65 static const RenderSVGResourceType s_resourceType;
66 private: 66 private:
67 bool tryPathOnlyClipping(GraphicsContext*, const AffineTransform&, const Flo atRect&); 67 bool tryPathOnlyClipping(GraphicsContext*, const AffineTransform&, const Flo atRect&);
68 void drawClipMaskContent(GraphicsContext*, const FloatRect& targetBoundingBo x); 68 void drawClipMaskContent(GraphicsContext*, const FloatRect& targetBoundingBo x);
69 void createDisplayList(GraphicsContext*, const AffineTransform&); 69 void createDisplayList(GraphicsContext*);
70 void calculateClipContentPaintInvalidationRect(); 70 void calculateClipContentPaintInvalidationRect();
71 71
72 RefPtr<DisplayList> m_clipContentDisplayList; 72 RefPtr<DisplayList> m_clipContentDisplayList;
73 FloatRect m_clipBoundaries; 73 FloatRect m_clipBoundaries;
74 74
75 // Reference cycle detection. 75 // Reference cycle detection.
76 bool m_inClipExpansion; 76 bool m_inClipExpansion;
77 }; 77 };
78 78
79 DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceClipper, ClipperResourceT ype); 79 DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(RenderSVGResourceClipper, ClipperResourceT ype);
80 80
81 } 81 }
82 82
83 #endif 83 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGResourceClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698