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

Side by Side Diff: Source/platform/transforms/MatrixTransformOperation.h

Issue 328333003: Adding Blink-side 3d Box and Bounds calculations to TransformOperations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 26 matching lines...) Expand all
37 return adoptRef(new MatrixTransformOperation(a, b, c, d, e, f)); 37 return adoptRef(new MatrixTransformOperation(a, b, c, d, e, f));
38 } 38 }
39 39
40 static PassRefPtr<MatrixTransformOperation> create(const TransformationMatri x& t) 40 static PassRefPtr<MatrixTransformOperation> create(const TransformationMatri x& t)
41 { 41 {
42 return adoptRef(new MatrixTransformOperation(t)); 42 return adoptRef(new MatrixTransformOperation(t));
43 } 43 }
44 44
45 TransformationMatrix matrix() const { return TransformationMatrix(m_a, m_b, m_c, m_d, m_e, m_f); } 45 TransformationMatrix matrix() const { return TransformationMatrix(m_a, m_b, m_c, m_d, m_e, m_f); }
46 46
47 virtual bool canBlendWith(const TransformOperation& other) const
48 {
49 return false;
50 }
Ian Vollick 2014/06/18 15:38:06 nit: pls add a line of ws.
awoloszyn 2014/06/18 18:31:08 Done.
47 private: 51 private:
48 virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c & & m_d == 1 && !m_e && !m_f; } 52 virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c & & m_d == 1 && !m_e && !m_f; }
49 53
50 virtual OperationType type() const OVERRIDE { return Matrix; } 54 virtual OperationType type() const OVERRIDE { return Matrix; }
51 55
52 virtual bool operator==(const TransformOperation& o) const OVERRIDE 56 virtual bool operator==(const TransformOperation& o) const OVERRIDE
53 { 57 {
54 if (!isSameType(o)) 58 if (!isSameType(o))
55 return false; 59 return false;
56 60
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 double m_b; 94 double m_b;
91 double m_c; 95 double m_c;
92 double m_d; 96 double m_d;
93 double m_e; 97 double m_e;
94 double m_f; 98 double m_f;
95 }; 99 };
96 100
97 } // namespace WebCore 101 } // namespace WebCore
98 102
99 #endif // MatrixTransformOperation_h 103 #endif // MatrixTransformOperation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698