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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEDisplacementMapElement.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, 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) 2006 Oliver Hunt <oliver@nerget.com> 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com>
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { 89 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) {
90 SVGElement::InvalidationGuard invalidationGuard(this); 90 SVGElement::InvalidationGuard invalidationGuard(this);
91 invalidate(); 91 invalidate();
92 return; 92 return;
93 } 93 }
94 94
95 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 95 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
96 } 96 }
97 97
98 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilte rBuilder* filterBuilder, Filter* filter) 98 RawPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filter Builder, Filter* filter)
99 { 99 {
100 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 100 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
101 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr entValue()->value())); 101 FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->curr entValue()->value()));
102 ASSERT(input1 && input2); 102 ASSERT(input1 && input2);
103 103
104 RefPtrWillBeRawPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSelector->currentValue()->enumValue(), m_yChannelSelector->currentValu e()->enumValue(), m_scale->currentValue()->value()); 104 RawPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal ue(), m_scale->currentValue()->value());
105 FilterEffectVector& inputEffects = effect->inputEffects(); 105 FilterEffectVector& inputEffects = effect->inputEffects();
106 inputEffects.reserveCapacity(2); 106 inputEffects.reserveCapacity(2);
107 inputEffects.append(input1); 107 inputEffects.append(input1);
108 inputEffects.append(input2); 108 inputEffects.append(input2);
109 return effect.release(); 109 return effect.release();
110 } 110 }
111 111
112 } // namespace blink 112 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698