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

Side by Side Diff: Source/core/platform/graphics/transforms/SkewTransformOperation.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) 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == m_type; } 45 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == m_type; }
46 46
47 virtual bool operator==(const TransformOperation& o) const 47 virtual bool operator==(const TransformOperation& o) const
48 { 48 {
49 if (!isSameType(o)) 49 if (!isSameType(o))
50 return false; 50 return false;
51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati on*>(&o); 51 const SkewTransformOperation* s = static_cast<const SkewTransformOperati on*>(&o);
52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY; 52 return m_angleX == s->m_angleX && m_angleY == s->m_angleY;
53 } 53 }
54 54
55 virtual bool apply(TransformationMatrix& transform, const FloatSize&) const 55 virtual bool apply(TransformationMatrix& transform, const FloatSize&, Render View*) const
56 { 56 {
57 transform.skew(m_angleX, m_angleY); 57 transform.skew(m_angleX, m_angleY);
58 return false; 58 return false;
59 } 59 }
60 60
61 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false); 61 virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false, RenderView* =0);
62 62
63 SkewTransformOperation(double angleX, double angleY, OperationType type) 63 SkewTransformOperation(double angleX, double angleY, OperationType type)
64 : m_angleX(angleX) 64 : m_angleX(angleX)
65 , m_angleY(angleY) 65 , m_angleY(angleY)
66 , m_type(type) 66 , m_type(type)
67 { 67 {
68 } 68 }
69 69
70 double m_angleX; 70 double m_angleX;
71 double m_angleY; 71 double m_angleY;
72 OperationType m_type; 72 OperationType m_type;
73 }; 73 };
74 74
75 } // namespace WebCore 75 } // namespace WebCore
76 76
77 #endif // SkewTransformOperation_h 77 #endif // SkewTransformOperation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698