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

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

Issue 1118133003: Rename rendering in core/svg. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.cpp ('k') | Source/core/svg/SVGFEFloodElement.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) 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 SVGElement::InvalidationGuard invalidationGuard(this); 69 SVGElement::InvalidationGuard invalidationGuard(this);
70 invalidate(); 70 invalidate();
71 return; 71 return;
72 } 72 }
73 73
74 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); 74 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
75 } 75 }
76 76
77 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuil der* filterBuilder, Filter* filter) 77 PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDropShadowElement::build(SVGFilterBuil der* filterBuilder, Filter* filter)
78 { 78 {
79 LayoutObject* renderer = this->layoutObject(); 79 LayoutObject* layoutObject = this->layoutObject();
80 if (!renderer) 80 if (!layoutObject)
81 return nullptr; 81 return nullptr;
82 82
83 if (stdDeviationX()->currentValue()->value() < 0 || stdDeviationY()->current Value()->value() < 0) 83 if (stdDeviationX()->currentValue()->value() < 0 || stdDeviationY()->current Value()->value() < 0)
84 return nullptr; 84 return nullptr;
85 85
86 ASSERT(renderer->style()); 86 ASSERT(layoutObject->style());
87 const SVGComputedStyle& svgStyle = renderer->style()->svgStyle(); 87 const SVGComputedStyle& svgStyle = layoutObject->style()->svgStyle();
88 88
89 Color color = svgStyle.floodColor(); 89 Color color = svgStyle.floodColor();
90 float opacity = svgStyle.floodOpacity(); 90 float opacity = svgStyle.floodOpacity();
91 91
92 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value())); 92 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr entValue()->value()));
93 if (!input1) 93 if (!input1)
94 return nullptr; 94 return nullptr;
95 95
96 RefPtrWillBeRawPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDe viationX()->currentValue()->value(), stdDeviationY()->currentValue()->value(), m _dx->currentValue()->value(), m_dy->currentValue()->value(), color, opacity); 96 RefPtrWillBeRawPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDe viationX()->currentValue()->value(), stdDeviationY()->currentValue()->value(), m _dx->currentValue()->value(), m_dy->currentValue()->value(), color, opacity);
97 effect->inputEffects().append(input1); 97 effect->inputEffects().append(input1);
98 return effect.release(); 98 return effect.release();
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.cpp ('k') | Source/core/svg/SVGFEFloodElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698