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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: 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) 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ASSERT(client); 76 ASSERT(client);
77 77
78 bool filterCached = m_filter.contains(client); 78 bool filterCached = m_filter.contains(client);
79 if (filterCached) 79 if (filterCached)
80 m_filter.erase(client); 80 m_filter.erase(client);
81 81
82 // If the filter has a cached subtree, invalidate the associated display item. 82 // If the filter has a cached subtree, invalidate the associated display item.
83 if (markForInvalidation && filterCached) 83 if (markForInvalidation && filterCached)
84 markClientForInvalidation(client, PaintInvalidation); 84 markClientForInvalidation(client, PaintInvalidation);
85 85
86 markClientForInvalidation(client, markForInvalidation 86 markClientForInvalidation(
87 ? BoundariesInvalidation 87 client,
88 : ParentOnlyInvalidation); 88 markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation);
89 } 89 }
90 90
91 FloatRect LayoutSVGResourceFilter::resourceBoundingBox( 91 FloatRect LayoutSVGResourceFilter::resourceBoundingBox(
92 const LayoutObject* object) { 92 const LayoutObject* object) {
93 if (SVGFilterElement* element = toSVGFilterElement(this->element())) 93 if (SVGFilterElement* element = toSVGFilterElement(this->element()))
94 return SVGLengthContext::resolveRectangle<SVGFilterElement>( 94 return SVGLengthContext::resolveRectangle<SVGFilterElement>(
95 element, element->filterUnits()->currentValue()->enumValue(), 95 element, element->filterUnits()->currentValue()->enumValue(),
96 object->objectBoundingBox()); 96 object->objectBoundingBox());
97 97
98 return FloatRect(); 98 return FloatRect();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return; 133 return;
134 nodeMap->invalidateDependentEffects(effect); 134 nodeMap->invalidateDependentEffects(effect);
135 135
136 // Issue paint invalidations for the image on the screen. 136 // Issue paint invalidations for the image on the screen.
137 markClientForInvalidation(filter.key, PaintInvalidation); 137 markClientForInvalidation(filter.key, PaintInvalidation);
138 } 138 }
139 notifyContentChanged(); 139 notifyContentChanged();
140 } 140 }
141 141
142 } // namespace blink 142 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698