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

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

Issue 669153002: Relocate markForLayoutAndParentResourceInvalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop boundsChanged. 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
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 30 matching lines...) Expand all
41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride final; 41 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride final;
42 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGResourceContainer || RenderSVGHiddenContainer::isOfType(type); } 42 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSVGResourceContainer || RenderSVGHiddenContainer::isOfType(type); }
43 43
44 void idChanged(); 44 void idChanged();
45 void addClientRenderLayer(Node*); 45 void addClientRenderLayer(Node*);
46 void addClientRenderLayer(RenderLayer*); 46 void addClientRenderLayer(RenderLayer*);
47 void removeClientRenderLayer(RenderLayer*); 47 void removeClientRenderLayer(RenderLayer*);
48 48
49 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0); 49 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0);
50 50
51 static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool n eedsLayout = true);
52
51 protected: 53 protected:
52 // When adding modes, make sure we don't overflow m_invalidationMask below. 54 // When adding modes, make sure we don't overflow m_invalidationMask below.
53 enum InvalidationMode { 55 enum InvalidationMode {
54 LayoutAndBoundariesInvalidation = 1 << 0, 56 LayoutAndBoundariesInvalidation = 1 << 0,
55 BoundariesInvalidation = 1 << 1, 57 BoundariesInvalidation = 1 << 1,
56 PaintInvalidation = 1 << 2, 58 PaintInvalidation = 1 << 2,
57 ParentOnlyInvalidation = 1 << 3 59 ParentOnlyInvalidation = 1 << 3
58 }; 60 };
59 61
60 // Used from the invalidateClient/invalidateClients methods from classes, in heriting from us. 62 // Used from the invalidateClient/invalidateClients methods from classes, in heriting from us.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return static_cast<Renderer*>(container); 107 return static_cast<Renderer*>(container);
106 } 108 }
107 return 0; 109 return 0;
108 } 110 }
109 111
110 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain er()); 112 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceContainer, isSVGResourceContain er());
111 113
112 } 114 }
113 115
114 #endif 116 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResource.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698