| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Sencha, Inc. All rights reserved. | 3 * Copyright (C) 2010 Sencha, Inc. All rights reserved. |
| 4 * Copyright (C) 2010 Igalia S.L. All rights reserved. | 4 * Copyright (C) 2010 Igalia S.L. All rights reserved. |
| 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 using namespace std; | 34 using namespace std; |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 enum { | 38 enum { |
| 39 leftLobe = 0, | 39 leftLobe = 0, |
| 40 rightLobe = 1 | 40 rightLobe = 1 |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 ShadowBlur::ShadowBlur(const FloatSize& radius, const FloatSize& offset, const C
olor& color, ColorSpace colorSpace) | 43 ShadowBlur::ShadowBlur(const FloatSize& radius, const FloatSize& offset, const C
olor& color) |
| 44 : m_color(color) | 44 : m_color(color) |
| 45 , m_colorSpace(colorSpace) | |
| 46 , m_blurRadius(radius) | 45 , m_blurRadius(radius) |
| 47 , m_offset(offset) | 46 , m_offset(offset) |
| 48 , m_shadowsIgnoreTransforms(false) | 47 , m_shadowsIgnoreTransforms(false) |
| 49 { | 48 { |
| 50 updateShadowBlurValues(); | 49 updateShadowBlurValues(); |
| 51 } | 50 } |
| 52 | 51 |
| 53 void ShadowBlur::updateShadowBlurValues() | 52 void ShadowBlur::updateShadowBlurValues() |
| 54 { | 53 { |
| 55 // Limit blur radius to 128 to avoid lots of very expensive blurring. | 54 // Limit blur radius to 128 to avoid lots of very expensive blurring. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 188 |
| 190 if (!m_blurRadius.height()) | 189 if (!m_blurRadius.height()) |
| 191 break; | 190 break; |
| 192 | 191 |
| 193 if (m_blurRadius.width() != m_blurRadius.height()) | 192 if (m_blurRadius.width() != m_blurRadius.height()) |
| 194 calculateLobes(lobes, m_blurRadius.height(), m_shadowsIgnoreTransfor
ms); | 193 calculateLobes(lobes, m_blurRadius.height(), m_shadowsIgnoreTransfor
ms); |
| 195 } | 194 } |
| 196 } | 195 } |
| 197 | 196 |
| 198 } // namespace WebCore | 197 } // namespace WebCore |
| OLD | NEW |