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

Side by Side Diff: Source/core/platform/graphics/transforms/Matrix3DTransformOperation.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == Matrix3D; } 46 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == Matrix3D; }
47 47
48 virtual bool operator==(const TransformOperation& o) const 48 virtual bool operator==(const TransformOperation& o) const
49 { 49 {
50 if (!isSameType(o)) 50 if (!isSameType(o))
51 return false; 51 return false;
52 const Matrix3DTransformOperation* m = static_cast<const Matrix3DTransfor mOperation*>(&o); 52 const Matrix3DTransformOperation* m = static_cast<const Matrix3DTransfor mOperation*>(&o);
53 return m_matrix == m->m_matrix; 53 return m_matrix == m->m_matrix;
54 } 54 }
55 55
56 virtual bool apply(TransformationMatrix& transform, const FloatSize&) const 56 virtual bool apply(TransformationMatrix& transform, const FloatSize&, Render View*) const
57 { 57 {
58 transform.multiply(TransformationMatrix(m_matrix)); 58 transform.multiply(TransformationMatrix(m_matrix));
59 return false; 59 return false;
60 } 60 }
61 61
62 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false); 62 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false, RenderView* =0);
63 63
64 Matrix3DTransformOperation(const TransformationMatrix& mat) 64 Matrix3DTransformOperation(const TransformationMatrix& mat)
65 { 65 {
66 m_matrix = mat; 66 m_matrix = mat;
67 } 67 }
68 68
69 TransformationMatrix m_matrix; 69 TransformationMatrix m_matrix;
70 }; 70 };
71 71
72 } // namespace WebCore 72 } // namespace WebCore
73 73
74 #endif // Matrix3DTransformOperation_h 74 #endif // Matrix3DTransformOperation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698