| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 { | 69 { |
| 70 if (!isSameType(o)) | 70 if (!isSameType(o)) |
| 71 return false; | 71 return false; |
| 72 const CustomFilterTransformParameter* other = static_cast<const CustomFi
lterTransformParameter*>(&o); | 72 const CustomFilterTransformParameter* other = static_cast<const CustomFi
lterTransformParameter*>(&o); |
| 73 return m_operations == other->m_operations; | 73 return m_operations == other->m_operations; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void applyTransform(TransformationMatrix& transform, const FloatSize& boxSiz
e) const | 76 void applyTransform(TransformationMatrix& transform, const FloatSize& boxSiz
e) const |
| 77 { | 77 { |
| 78 for (unsigned i = 0, size = m_operations.size(); i < size; ++i) | 78 for (unsigned i = 0, size = m_operations.size(); i < size; ++i) |
| 79 m_operations.at(i)->apply(transform, boxSize); | 79 m_operations.at(i)->apply(transform, boxSize, 0); |
| 80 } | 80 } |
| 81 | 81 |
| 82 const TransformOperations& operations() const { return m_operations; } | 82 const TransformOperations& operations() const { return m_operations; } |
| 83 void setOperations(const TransformOperations& value) { m_operations = value;
} | 83 void setOperations(const TransformOperations& value) { m_operations = value;
} |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 CustomFilterTransformParameter(const String& name) | 86 CustomFilterTransformParameter(const String& name) |
| 87 : CustomFilterParameter(TRANSFORM, name) | 87 : CustomFilterParameter(TRANSFORM, name) |
| 88 { | 88 { |
| 89 } | 89 } |
| 90 virtual ~CustomFilterTransformParameter() | 90 virtual ~CustomFilterTransformParameter() |
| 91 { | 91 { |
| 92 } | 92 } |
| 93 | 93 |
| 94 TransformOperations m_operations; | 94 TransformOperations m_operations; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace WebCore | 97 } // namespace WebCore |
| 98 | 98 |
| 99 | 99 |
| 100 #endif // CustomFilterTransformParameter_h | 100 #endif // CustomFilterTransformParameter_h |
| OLD | NEW |