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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourceContainer.h

Issue 967543002: [S.P.] Move svg mask painting to SVGMaskPainter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fixes Created 5 years, 9 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/svg/LayoutSVGResourceMasker.h » ('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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void idChanged(); 62 void idChanged();
63 void addClientLayer(Node*); 63 void addClientLayer(Node*);
64 void addClientLayer(Layer*); 64 void addClientLayer(Layer*);
65 void removeClientLayer(Layer*); 65 void removeClientLayer(Layer*);
66 66
67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0); 67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = 0);
68 68
69 static void markForLayoutAndParentResourceInvalidation(LayoutObject*, bool n eedsLayout = true); 69 static void markForLayoutAndParentResourceInvalidation(LayoutObject*, bool n eedsLayout = true);
70 70
71 void clearInvalidationMask() { m_invalidationMask = 0; }
72
71 protected: 73 protected:
72 // When adding modes, make sure we don't overflow m_invalidationMask below. 74 // When adding modes, make sure we don't overflow m_invalidationMask below.
73 enum InvalidationMode { 75 enum InvalidationMode {
74 LayoutAndBoundariesInvalidation = 1 << 0, 76 LayoutAndBoundariesInvalidation = 1 << 0,
75 BoundariesInvalidation = 1 << 1, 77 BoundariesInvalidation = 1 << 1,
76 PaintInvalidation = 1 << 2, 78 PaintInvalidation = 1 << 2,
77 ParentOnlyInvalidation = 1 << 3 79 ParentOnlyInvalidation = 1 << 3
78 }; 80 };
79 81
80 // Used from the invalidateClient/invalidateClients methods from classes, in heriting from us. 82 // Used from the invalidateClient/invalidateClients methods from classes, in heriting from us.
81 void markAllClientsForInvalidation(InvalidationMode); 83 void markAllClientsForInvalidation(InvalidationMode);
82 void markAllClientLayersForInvalidation(); 84 void markAllClientLayersForInvalidation();
83 void markClientForInvalidation(LayoutObject*, InvalidationMode); 85 void markClientForInvalidation(LayoutObject*, InvalidationMode);
84 86
85 void clearInvalidationMask() { m_invalidationMask = 0; }
86
87 bool m_isInLayout; 87 bool m_isInLayout;
88 88
89 private: 89 private:
90 friend class SVGResourcesCache; 90 friend class SVGResourcesCache;
91 void addClient(LayoutObject*); 91 void addClient(LayoutObject*);
92 void removeClient(LayoutObject*); 92 void removeClient(LayoutObject*);
93 93
94 virtual void willBeDestroyed() override final; 94 virtual void willBeDestroyed() override final;
95 void registerResource(); 95 void registerResource();
96 96
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer, isSVGResourceContain er()); 130 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGResourceContainer, isSVGResourceContain er());
131 131
132 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ 132 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
133 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, resource-> resourceType() == typeName, resource.resourceType() == typeName) 133 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, resource-> resourceType() == typeName, resource.resourceType() == typeName)
134 134
135 } 135 }
136 136
137 #endif 137 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/layout/svg/LayoutSVGResourceMasker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698