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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 if (attrName == SVGNames::inAttr) { 84 if (attrName == SVGNames::inAttr) {
85 SVGElement::InvalidationGuard invalidationGuard(this); 85 SVGElement::InvalidationGuard invalidationGuard(this);
86 invalidate(); 86 invalidate();
87 return; 87 return;
88 } 88 }
89 89
90 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 90 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
91 } 91 }
92 92
93 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuil der* filterBuilder, Filter* filter) 93 RawPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterBuild er, Filter* filter)
94 { 94 {
95 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 95 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
96 96
97 if (!input1) 97 if (!input1)
98 return nullptr; 98 return nullptr;
99 99
100 // "A negative or zero value disables the effect of the given filter 100 // "A negative or zero value disables the effect of the given filter
101 // primitive (i.e., the result is the filter input image)." 101 // primitive (i.e., the result is the filter input image)."
102 // https://drafts.fxtf.org/filters/#element-attrdef-femorphology-radius 102 // https://drafts.fxtf.org/filters/#element-attrdef-femorphology-radius
103 // 103 //
104 // (This is handled by FEMorphology) 104 // (This is handled by FEMorphology)
105 float xRadius = radiusX()->currentValue()->value(); 105 float xRadius = radiusX()->currentValue()->value();
106 float yRadius = radiusY()->currentValue()->value(); 106 float yRadius = radiusY()->currentValue()->value();
107 RefPtrWillBeRawPtr<FilterEffect> effect = FEMorphology::create(filter, m_svg Operator->currentValue()->enumValue(), xRadius, yRadius); 107 RawPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->cu rrentValue()->enumValue(), xRadius, yRadius);
108 effect->inputEffects().append(input1); 108 effect->inputEffects().append(input1);
109 return effect.release(); 109 return effect.release();
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFEMorphologyElement.h ('k') | third_party/WebKit/Source/core/svg/SVGFEOffsetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698