OLD | NEW |
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 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 22 matching lines...) Expand all Loading... |
33 : FilterEffect(filter) | 33 : FilterEffect(filter) |
34 , m_stdX(stdX) | 34 , m_stdX(stdX) |
35 , m_stdY(stdY) | 35 , m_stdY(stdY) |
36 , m_dx(dx) | 36 , m_dx(dx) |
37 , m_dy(dy) | 37 , m_dy(dy) |
38 , m_shadowColor(shadowColor) | 38 , m_shadowColor(shadowColor) |
39 , m_shadowOpacity(shadowOpacity) | 39 , m_shadowOpacity(shadowOpacity) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 PassRefPtr<FEDropShadow> FEDropShadow::create(Filter* filter, float stdX, float
stdY, float dx, float dy, const Color& shadowColor, float shadowOpacity) | 43 PassRefPtrWillBeRawPtr<FEDropShadow> FEDropShadow::create(Filter* filter, float
stdX, float stdY, float dx, float dy, const Color& shadowColor, float shadowOpac
ity) |
44 { | 44 { |
45 return adoptRef(new FEDropShadow(filter, stdX, stdY, dx, dy, shadowColor, sh
adowOpacity)); | 45 return adoptRefWillBeNoop(new FEDropShadow(filter, stdX, stdY, dx, dy, shado
wColor, shadowOpacity)); |
46 } | 46 } |
47 | 47 |
48 FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward) | 48 FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward) |
49 { | 49 { |
50 FloatRect result = rect; | 50 FloatRect result = rect; |
51 Filter* filter = this->filter(); | 51 Filter* filter = this->filter(); |
52 ASSERT(filter); | 52 ASSERT(filter); |
53 | 53 |
54 FloatRect offsetRect = rect; | 54 FloatRect offsetRect = rect; |
55 if (forward) | 55 if (forward) |
(...skipping 27 matching lines...) Expand all Loading... |
83 { | 83 { |
84 writeIndent(ts, indent); | 84 writeIndent(ts, indent); |
85 ts << "[feDropShadow"; | 85 ts << "[feDropShadow"; |
86 FilterEffect::externalRepresentation(ts); | 86 FilterEffect::externalRepresentation(ts); |
87 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\" dx=\"" << m_dx <
< "\" dy=\"" << m_dy << "\" flood-color=\"" << m_shadowColor.nameForRenderTreeAs
Text() <<"\" flood-opacity=\"" << m_shadowOpacity << "]\n"; | 87 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\" dx=\"" << m_dx <
< "\" dy=\"" << m_dy << "\" flood-color=\"" << m_shadowColor.nameForRenderTreeAs
Text() <<"\" flood-opacity=\"" << m_shadowOpacity << "]\n"; |
88 inputEffect(0)->externalRepresentation(ts, indent + 1); | 88 inputEffect(0)->externalRepresentation(ts, indent + 1); |
89 return ts; | 89 return ts; |
90 } | 90 } |
91 | 91 |
92 } // namespace blink | 92 } // namespace blink |
OLD | NEW |