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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.cpp

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)
Patch Set: Rebase; fix comments; findElement Created 4 years, 1 month 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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void LayoutSVGResourceFilter::willBeDestroyed() { 53 void LayoutSVGResourceFilter::willBeDestroyed() {
54 disposeFilterMap(); 54 disposeFilterMap();
55 LayoutSVGResourceContainer::willBeDestroyed(); 55 LayoutSVGResourceContainer::willBeDestroyed();
56 } 56 }
57 57
58 bool LayoutSVGResourceFilter::isChildAllowed(LayoutObject* child, 58 bool LayoutSVGResourceFilter::isChildAllowed(LayoutObject* child,
59 const ComputedStyle&) const { 59 const ComputedStyle&) const {
60 return child->isSVGResourceFilterPrimitive(); 60 return child->isSVGResourceFilterPrimitive();
61 } 61 }
62 62
63 SVGElementProxySet* LayoutSVGResourceFilter::elementProxySet() {
64 return &toSVGFilterElement(*element()).elementProxySet();
65 }
66
67 void LayoutSVGResourceFilter::removeAllClientsFromCache( 63 void LayoutSVGResourceFilter::removeAllClientsFromCache(
68 bool markForInvalidation) { 64 bool markForInvalidation) {
69 // LayoutSVGResourceFilter::removeClientFromCache will be called for 65 // LayoutSVGResourceFilter::removeClientFromCache will be called for
70 // all clients through markAllClientsForInvalidation so no explicit 66 // all clients through markAllClientsForInvalidation so no explicit
71 // display item invalidation is needed here. 67 // display item invalidation is needed here.
72 disposeFilterMap(); 68 disposeFilterMap();
73 markAllClientsForInvalidation(markForInvalidation 69 markAllClientsForInvalidation(markForInvalidation
74 ? LayoutAndBoundariesInvalidation 70 ? LayoutAndBoundariesInvalidation
75 : ParentOnlyInvalidation); 71 : ParentOnlyInvalidation);
76 } 72 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return; 133 return;
138 nodeMap->invalidateDependentEffects(effect); 134 nodeMap->invalidateDependentEffects(effect);
139 135
140 // Issue paint invalidations for the image on the screen. 136 // Issue paint invalidations for the image on the screen.
141 markClientForInvalidation(filter.key, PaintInvalidation); 137 markClientForInvalidation(filter.key, PaintInvalidation);
142 } 138 }
143 notifyContentChanged(); 139 notifyContentChanged();
144 } 140 }
145 141
146 } // namespace blink 142 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.h ('k') | third_party/WebKit/Source/core/paint/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698