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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.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) Research In Motion Limited 2011. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 || attrName == SVGNames::dxAttr 66 || attrName == SVGNames::dxAttr
67 || attrName == SVGNames::dyAttr) { 67 || attrName == SVGNames::dyAttr) {
68 SVGElement::InvalidationGuard invalidationGuard(this); 68 SVGElement::InvalidationGuard invalidationGuard(this);
69 invalidate(); 69 invalidate();
70 return; 70 return;
71 } 71 }
72 72
73 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 73 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
74 } 74 }
75 75
76 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuil der* filterBuilder, Filter* filter) 76 RawPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuilder* filterBuild er, Filter* filter)
77 { 77 {
78 LayoutObject* layoutObject = this->layoutObject(); 78 LayoutObject* layoutObject = this->layoutObject();
79 if (!layoutObject) 79 if (!layoutObject)
80 return nullptr; 80 return nullptr;
81 81
82 ASSERT(layoutObject->style()); 82 ASSERT(layoutObject->style());
83 const SVGComputedStyle& svgStyle = layoutObject->style()->svgStyle(); 83 const SVGComputedStyle& svgStyle = layoutObject->style()->svgStyle();
84 84
85 Color color = svgStyle.floodColor(); 85 Color color = svgStyle.floodColor();
86 float opacity = svgStyle.floodOpacity(); 86 float opacity = svgStyle.floodOpacity();
87 87
88 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 88 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
89 ASSERT(input1); 89 ASSERT(input1);
90 90
91 // Clamp std.dev. to non-negative. (See SVGFEGaussianBlurElement::build) 91 // Clamp std.dev. to non-negative. (See SVGFEGaussianBlurElement::build)
92 float stdDevX = std::max(0.0f, stdDeviationX()->currentValue()->value()); 92 float stdDevX = std::max(0.0f, stdDeviationX()->currentValue()->value());
93 float stdDevY = std::max(0.0f, stdDeviationY()->currentValue()->value()); 93 float stdDevY = std::max(0.0f, stdDeviationY()->currentValue()->value());
94 RefPtrWillBeRawPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDe vX, stdDevY, m_dx->currentValue()->value(), m_dy->currentValue()->value(), color , opacity); 94 RawPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDevX, stdDevY, m_dx->currentValue()->value(), m_dy->currentValue()->value(), color, opacity);
95 effect->inputEffects().append(input1); 95 effect->inputEffects().append(input1);
96 return effect.release(); 96 return effect.release();
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFEDropShadowElement.h ('k') | third_party/WebKit/Source/core/svg/SVGFEFloodElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698