Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: Source/core/platform/graphics/transforms/InterpolatedTransformOperation.h

Issue 22900008: Make vw/vh units to work in css transforms. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698