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

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

Issue 32713002: Move more data from .data to the .rodata section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void removeAllClientsFromCache(bool markForInvalidation = true); 43 virtual void removeAllClientsFromCache(bool markForInvalidation = true);
44 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true); 44 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true);
45 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode) OVERRIDE; 45 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode) OVERRIDE;
46 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh ort, const Path*, const RenderSVGShape*) OVERRIDE; 46 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh ort, const Path*, const RenderSVGShape*) OVERRIDE;
47 virtual FloatRect resourceBoundingBox(RenderObject*); 47 virtual FloatRect resourceBoundingBox(RenderObject*);
48 48
49 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnitsCurrentValue(); } 49 SVGUnitTypes::SVGUnitType maskUnits() const { return toSVGMaskElement(elemen t())->maskUnitsCurrentValue(); }
50 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnitsCurrentValue(); } 50 SVGUnitTypes::SVGUnitType maskContentUnits() const { return toSVGMaskElement (element())->maskContentUnitsCurrentValue(); }
51 51
52 virtual RenderSVGResourceType resourceType() const { return s_resourceType; } 52 virtual RenderSVGResourceType resourceType() const { return s_resourceType; }
53 static RenderSVGResourceType s_resourceType; 53 static const RenderSVGResourceType s_resourceType;
54 54
55 private: 55 private:
56 void calculateMaskContentRepaintRect(); 56 void calculateMaskContentRepaintRect();
57 void drawMaskContent(GraphicsContext*, const FloatRect& targetBoundingBox); 57 void drawMaskContent(GraphicsContext*, const FloatRect& targetBoundingBox);
58 58
59 FloatRect m_maskContentBoundaries; 59 FloatRect m_maskContentBoundaries;
60 }; 60 };
61 61
62 inline RenderSVGResourceMasker* toRenderSVGResourceMasker(RenderSVGResource* res ource) 62 inline RenderSVGResourceMasker* toRenderSVGResourceMasker(RenderSVGResource* res ource)
63 { 63 {
64 ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == Ma skerResourceType); 64 ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == Ma skerResourceType);
65 return static_cast<RenderSVGResourceMasker*>(resource); 65 return static_cast<RenderSVGResourceMasker*>(resource);
66 } 66 }
67 67
68 } 68 }
69 69
70 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMarker.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceMasker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698