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: 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: Fix up that no render SVG shape when change clip-path to visible after hidden. Created 3 years, 10 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
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 static void markForLayoutAndParentResourceInvalidation(
74 LayoutObject*,
75 StyleDifference);
76
73 void clearInvalidationMask() { m_invalidationMask = 0; } 77 void clearInvalidationMask() { m_invalidationMask = 0; }
74 78
75 protected: 79 protected:
76 // When adding modes, make sure we don't overflow m_invalidationMask below. 80 // When adding modes, make sure we don't overflow m_invalidationMask below.
77 enum InvalidationMode { 81 enum InvalidationMode {
78 LayoutAndBoundariesInvalidation = 1 << 0, 82 LayoutAndBoundariesInvalidation = 1 << 0,
79 BoundariesInvalidation = 1 << 1, 83 BoundariesInvalidation = 1 << 1,
80 PaintInvalidation = 1 << 2, 84 PaintInvalidation = 1 << 2,
81 ParentOnlyInvalidation = 1 << 3 85 ParentOnlyInvalidation = 1 << 3
82 }; 86 };
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 isSVGResourceContainer()); 144 isSVGResourceContainer());
141 145
142 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \ 146 #define DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
143 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \ 147 DEFINE_TYPE_CASTS(thisType, LayoutSVGResourceContainer, resource, \
144 resource->resourceType() == typeName, \ 148 resource->resourceType() == typeName, \
145 resource.resourceType() == typeName) 149 resource.resourceType() == typeName)
146 150
147 } // namespace blink 151 } // namespace blink
148 152
149 #endif 153 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698