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

Side by Side Diff: Source/core/svg/SVGFEMorphologyElement.cpp

Issue 268223003: Move InvalidationGuard/InstanceUpdateBlocker out of SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform the renames Created 6 years, 7 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/svg/SVGFEMergeNodeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('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) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return false; 112 return false;
113 } 113 }
114 114
115 void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName) 115 void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName)
116 { 116 {
117 if (!isSupportedAttribute(attrName)) { 117 if (!isSupportedAttribute(attrName)) {
118 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 118 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
119 return; 119 return;
120 } 120 }
121 121
122 SVGElementInstance::InvalidationGuard invalidationGuard(this); 122 SVGElement::InvalidationGuard invalidationGuard(this);
123 123
124 if (attrName == SVGNames::operatorAttr || attrName == SVGNames::radiusAttr) { 124 if (attrName == SVGNames::operatorAttr || attrName == SVGNames::radiusAttr) {
125 primitiveAttributeChanged(attrName); 125 primitiveAttributeChanged(attrName);
126 return; 126 return;
127 } 127 }
128 128
129 if (attrName == SVGNames::inAttr) { 129 if (attrName == SVGNames::inAttr) {
130 invalidate(); 130 invalidate();
131 return; 131 return;
132 } 132 }
(...skipping 12 matching lines...) Expand all
145 145
146 if (xRadius < 0 || yRadius < 0) 146 if (xRadius < 0 || yRadius < 0)
147 return nullptr; 147 return nullptr;
148 148
149 RefPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->cu rrentValue()->enumValue(), xRadius, yRadius); 149 RefPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->cu rrentValue()->enumValue(), xRadius, yRadius);
150 effect->inputEffects().append(input1); 150 effect->inputEffects().append(input1);
151 return effect.release(); 151 return effect.release();
152 } 152 }
153 153
154 } // namespace WebCore 154 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEMergeNodeElement.cpp ('k') | Source/core/svg/SVGFEOffsetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698