| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return adoptRef(new InterpolatedTransformOperation(from, to, progress)); | 44 return adoptRef(new InterpolatedTransformOperation(from, to, progress)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 virtual bool isIdentity() const { return false; } | 48 virtual bool isIdentity() const { return false; } |
| 49 | 49 |
| 50 virtual OperationType getOperationType() const { return Interpolated; } | 50 virtual OperationType getOperationType() const { return Interpolated; } |
| 51 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == Interpolated; } | 51 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe
rationType() == Interpolated; } |
| 52 | 52 |
| 53 virtual bool operator==(const TransformOperation&) const; | 53 virtual bool operator==(const TransformOperation&) const; |
| 54 virtual bool apply(TransformationMatrix&, const FloatSize& borderBoxSize) co
nst; | 54 virtual bool apply(TransformationMatrix&, const FloatSize& borderBoxSize, Re
nderView*) const; |
| 55 | 55 |
| 56 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false); | 56 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from,
double progress, bool blendToIdentity = false, RenderView* =0); |
| 57 | 57 |
| 58 InterpolatedTransformOperation(const TransformOperations& from, const Transf
ormOperations& to, double progress) | 58 InterpolatedTransformOperation(const TransformOperations& from, const Transf
ormOperations& to, double progress) |
| 59 : from(from) | 59 : from(from) |
| 60 , to(to) | 60 , to(to) |
| 61 , progress(progress) | 61 , progress(progress) |
| 62 { } | 62 { } |
| 63 | 63 |
| 64 const TransformOperations from; | 64 const TransformOperations from; |
| 65 const TransformOperations to; | 65 const TransformOperations to; |
| 66 double progress; | 66 double progress; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace WebCore | 69 } // namespace WebCore |
| 70 | 70 |
| 71 #endif // InterpolatedTransformOperation_h | 71 #endif // InterpolatedTransformOperation_h |
| 72 | 72 |
| OLD | NEW |