| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above | 9 * 1. Redistributions of source code must retain the above |
| 10 * copyright notice, this list of conditions and the following | 10 * copyright notice, this list of conditions and the following |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo
at scale, UnitScaling unitScaling) | 38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo
at scale, UnitScaling unitScaling) |
| 39 : m_referenceBox(referenceBox) | 39 : m_referenceBox(referenceBox) |
| 40 , m_filterRegion(filterRegion) | 40 , m_filterRegion(filterRegion) |
| 41 , m_scale(scale) | 41 , m_scale(scale) |
| 42 , m_unitScaling(unitScaling) | 42 , m_unitScaling(unitScaling) |
| 43 , m_sourceGraphic(SourceGraphic::create(this)) | 43 , m_sourceGraphic(SourceGraphic::create(this)) |
| 44 { | 44 { |
| 45 } | 45 } |
| 46 | 46 |
| 47 Filter::~Filter() | |
| 48 { | |
| 49 } | |
| 50 | |
| 51 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg
ion, float scale, UnitScaling unitScaling) | 47 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg
ion, float scale, UnitScaling unitScaling) |
| 52 { | 48 { |
| 53 return new Filter(referenceBox, filterRegion, scale, unitScaling); | 49 return new Filter(referenceBox, filterRegion, scale, unitScaling); |
| 54 } | 50 } |
| 55 | 51 |
| 56 Filter* Filter::create(float scale) | 52 Filter* Filter::create(float scale) |
| 57 { | 53 { |
| 58 return new Filter(FloatRect(), FloatRect(), scale, UserSpace); | 54 return new Filter(FloatRect(), FloatRect(), scale, UserSpace); |
| 59 } | 55 } |
| 60 | 56 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 point.y() * referenceBox().height() + referenceBox().y(), | 96 point.y() * referenceBox().height() + referenceBox().y(), |
| 101 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2)); | 97 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2)); |
| 102 } | 98 } |
| 103 | 99 |
| 104 void Filter::setLastEffect(FilterEffect* effect) | 100 void Filter::setLastEffect(FilterEffect* effect) |
| 105 { | 101 { |
| 106 m_lastEffect = effect; | 102 m_lastEffect = effect; |
| 107 } | 103 } |
| 108 | 104 |
| 109 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |