| 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 21 matching lines...) Expand all Loading... |
| 32 : FilterEffect(filter) | 32 : FilterEffect(filter) |
| 33 , m_stdX(stdX) | 33 , m_stdX(stdX) |
| 34 , m_stdY(stdY) | 34 , m_stdY(stdY) |
| 35 , m_dx(dx) | 35 , m_dx(dx) |
| 36 , m_dy(dy) | 36 , m_dy(dy) |
| 37 , m_shadowColor(shadowColor) | 37 , m_shadowColor(shadowColor) |
| 38 , m_shadowOpacity(shadowOpacity) | 38 , m_shadowOpacity(shadowOpacity) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 RawPtr<FEDropShadow> FEDropShadow::create(Filter* filter, float stdX, float stdY
, float dx, float dy, const Color& shadowColor, float shadowOpacity) | 42 FEDropShadow* FEDropShadow::create(Filter* filter, float stdX, float stdY, float
dx, float dy, const Color& shadowColor, float shadowOpacity) |
| 43 { | 43 { |
| 44 return new FEDropShadow(filter, stdX, stdY, dx, dy, shadowColor, shadowOpaci
ty); | 44 return new FEDropShadow(filter, stdX, stdY, dx, dy, shadowColor, shadowOpaci
ty); |
| 45 } | 45 } |
| 46 | 46 |
| 47 FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward) const | 47 FloatRect FEDropShadow::mapRect(const FloatRect& rect, bool forward) const |
| 48 { | 48 { |
| 49 FloatRect result = rect; | 49 FloatRect result = rect; |
| 50 const Filter* filter = this->getFilter(); | 50 const Filter* filter = this->getFilter(); |
| 51 ASSERT(filter); | 51 ASSERT(filter); |
| 52 | 52 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 82 { | 82 { |
| 83 writeIndent(ts, indent); | 83 writeIndent(ts, indent); |
| 84 ts << "[feDropShadow"; | 84 ts << "[feDropShadow"; |
| 85 FilterEffect::externalRepresentation(ts); | 85 FilterEffect::externalRepresentation(ts); |
| 86 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\" dx=\"" << m_dx <
< "\" dy=\"" << m_dy << "\" flood-color=\"" << m_shadowColor.nameForLayoutTreeAs
Text() <<"\" flood-opacity=\"" << m_shadowOpacity << "]\n"; | 86 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\" dx=\"" << m_dx <
< "\" dy=\"" << m_dy << "\" flood-color=\"" << m_shadowColor.nameForLayoutTreeAs
Text() <<"\" flood-opacity=\"" << m_shadowOpacity << "]\n"; |
| 87 inputEffect(0)->externalRepresentation(ts, indent + 1); | 87 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 88 return ts; | 88 return ts; |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace blink | 91 } // namespace blink |
| OLD | NEW |