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

Side by Side Diff: Source/core/platform/graphics/transforms/IdentityTransformOperation.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 28 matching lines...) Expand all
39 private: 39 private:
40 virtual bool isIdentity() const { return true; } 40 virtual bool isIdentity() const { return true; }
41 virtual OperationType getOperationType() const { return Identity; } 41 virtual OperationType getOperationType() const { return Identity; }
42 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == Identity; } 42 virtual bool isSameType(const TransformOperation& o) const { return o.getOpe rationType() == Identity; }
43 43
44 virtual bool operator==(const TransformOperation& o) const 44 virtual bool operator==(const TransformOperation& o) const
45 { 45 {
46 return isSameType(o); 46 return isSameType(o);
47 } 47 }
48 48
49 virtual bool apply(TransformationMatrix&, const FloatSize&) const 49 virtual bool apply(TransformationMatrix&, const FloatSize&, RenderView*) con st
50 { 50 {
51 return false; 51 return false;
52 } 52 }
53 53
54 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false) 54 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false, RenderView* =0)
55 { 55 {
56 return this; 56 return this;
57 } 57 }
58 58
59 IdentityTransformOperation() 59 IdentityTransformOperation()
60 { 60 {
61 } 61 }
62 62
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // IdentityTransformOperation_h 67 #endif // IdentityTransformOperation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698