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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase better. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 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 21 matching lines...) Expand all
32 public RenderSVGResource { 32 public RenderSVGResource {
33 public: 33 public:
34 explicit RenderSVGResourceContainer(SVGElement*); 34 explicit RenderSVGResourceContainer(SVGElement*);
35 virtual ~RenderSVGResourceContainer(); 35 virtual ~RenderSVGResourceContainer();
36 36
37 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0; 37 virtual void removeAllClientsFromCache(bool markForInvalidation = true) = 0;
38 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) = 0; 38 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) = 0;
39 39
40 virtual void layout() override; 40 virtual void layout() override;
41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride final; 41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride final;
42 42 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGResourceContainer || RenderSVGHiddenContainer::isOfType(type); }
43 virtual bool isSVGResourceContainer() const override final { return true; }
44 43
45 void idChanged(); 44 void idChanged();
46 void addClientRenderLayer(Node*); 45 void addClientRenderLayer(Node*);
47 void addClientRenderLayer(RenderLayer*); 46 void addClientRenderLayer(RenderLayer*);
48 void removeClientRenderLayer(RenderLayer*); 47 void removeClientRenderLayer(RenderLayer*);
49 48
50 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0); 49 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0);
51 50
52 protected: 51 protected:
53 // When adding modes, make sure we don't overflow m_invalidationMask below. 52 // When adding modes, make sure we don't overflow m_invalidationMask below.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return static_cast<Renderer*>(container); 105 return static_cast<Renderer*>(container);
107 } 106 }
108 return 0; 107 return 0;
109 } 108 }
110 109
111 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain er()); 110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain er());
112 111
113 } 112 }
114 113
115 #endif 114 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.h ('k') | Source/core/rendering/svg/RenderSVGResourceFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698