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

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

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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 23 matching lines...) Expand all
34 #include <wtf/OwnPtr.h> 34 #include <wtf/OwnPtr.h>
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 struct ClipperData { 38 struct ClipperData {
39 WTF_MAKE_FAST_ALLOCATED; 39 WTF_MAKE_FAST_ALLOCATED;
40 public: 40 public:
41 OwnPtr<ImageBuffer> clipMaskImage; 41 OwnPtr<ImageBuffer> clipMaskImage;
42 }; 42 };
43 43
44 class RenderSVGResourceClipper : public RenderSVGResourceContainer { 44 class RenderSVGResourceClipper FINAL : public RenderSVGResourceContainer {
45 public: 45 public:
46 RenderSVGResourceClipper(SVGClipPathElement*); 46 RenderSVGResourceClipper(SVGClipPathElement*);
47 virtual ~RenderSVGResourceClipper(); 47 virtual ~RenderSVGResourceClipper();
48 48
49 virtual const char* renderName() const { return "RenderSVGResourceClipper"; } 49 virtual const char* renderName() const { return "RenderSVGResourceClipper"; }
50 50
51 virtual void removeAllClientsFromCache(bool markForInvalidation = true); 51 virtual void removeAllClientsFromCache(bool markForInvalidation = true);
52 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true); 52 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true);
53 53
54 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode); 54 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode);
(...skipping 16 matching lines...) Expand all
71 void calculateClipContentRepaintRect(); 71 void calculateClipContentRepaintRect();
72 72
73 FloatRect m_clipBoundaries; 73 FloatRect m_clipBoundaries;
74 HashMap<RenderObject*, ClipperData*> m_clipper; 74 HashMap<RenderObject*, ClipperData*> m_clipper;
75 }; 75 };
76 76
77 } 77 }
78 78
79 #endif 79 #endif
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRect.h ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698