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

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

Issue 2375043002: Fix up that no render SVG shape when change clip-path to visible after hidden. (Closed)
Patch Set: rebase Created 3 years, 11 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void idChanged(); 65 void idChanged();
66 66
67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr); 67 void invalidateCacheAndMarkForLayout(SubtreeLayoutScope* = nullptr);
68 68
69 static void markForLayoutAndParentResourceInvalidation( 69 static void markForLayoutAndParentResourceInvalidation(
70 LayoutObject*, 70 LayoutObject*,
71 bool needsLayout = true); 71 bool needsLayout = true);
72 72
73 void clearInvalidationMask() { m_invalidationMask = 0; } 73 void clearInvalidationMask() { m_invalidationMask = 0; }
74 const HashSet<LayoutObject*>& clients() { return m_clients; }
74 75
75 protected: 76 protected:
76 // When adding modes, make sure we don't overflow m_invalidationMask below. 77 // When adding modes, make sure we don't overflow m_invalidationMask below.
77 enum InvalidationMode { 78 enum InvalidationMode {
78 LayoutAndBoundariesInvalidation = 1 << 0, 79 LayoutAndBoundariesInvalidation = 1 << 0,
79 BoundariesInvalidation = 1 << 1, 80 BoundariesInvalidation = 1 << 1,
80 PaintInvalidation = 1 << 2, 81 PaintInvalidation = 1 << 2,
81 ParentOnlyInvalidation = 1 << 3 82 ParentOnlyInvalidation = 1 << 3
82 }; 83 };
83 84
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 isSVGResourceContainer()); 141 isSVGResourceContainer());
141 142
142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ 143 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ 144 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \
144 resource->resourceType() == typeName, \ 145 resource->resourceType() == typeName, \
145 resource.resourceType() == typeName) 146 resource.resourceType() == typeName)
146 147
147 } // namespace blink 148 } // namespace blink
148 149
149 #endif 150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698