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

Side by Side Diff: Source/core/platform/graphics/filters/custom/CustomFilterTransformParameter.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) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 { 69 {
70 if (!isSameType(o)) 70 if (!isSameType(o))
71 return false; 71 return false;
72 const CustomFilterTransformParameter* other = static_cast<const CustomFi lterTransformParameter*>(&o); 72 const CustomFilterTransformParameter* other = static_cast<const CustomFi lterTransformParameter*>(&o);
73 return m_operations == other->m_operations; 73 return m_operations == other->m_operations;
74 } 74 }
75 75
76 void applyTransform(TransformationMatrix& transform, const FloatSize& boxSiz e) const 76 void applyTransform(TransformationMatrix& transform, const FloatSize& boxSiz e) const
77 { 77 {
78 for (unsigned i = 0, size = m_operations.size(); i < size; ++i) 78 for (unsigned i = 0, size = m_operations.size(); i < size; ++i)
79 m_operations.at(i)->apply(transform, boxSize); 79 m_operations.at(i)->apply(transform, boxSize, 0);
80 } 80 }
81 81
82 const TransformOperations& operations() const { return m_operations; } 82 const TransformOperations& operations() const { return m_operations; }
83 void setOperations(const TransformOperations& value) { m_operations = value; } 83 void setOperations(const TransformOperations& value) { m_operations = value; }
84 84
85 private: 85 private:
86 CustomFilterTransformParameter(const String& name) 86 CustomFilterTransformParameter(const String& name)
87 : CustomFilterParameter(TRANSFORM, name) 87 : CustomFilterParameter(TRANSFORM, name)
88 { 88 {
89 } 89 }
90 virtual ~CustomFilterTransformParameter() 90 virtual ~CustomFilterTransformParameter()
91 { 91 {
92 } 92 }
93 93
94 TransformOperations m_operations; 94 TransformOperations m_operations;
95 }; 95 };
96 96
97 } // namespace WebCore 97 } // namespace WebCore
98 98
99 99
100 #endif // CustomFilterTransformParameter_h 100 #endif // CustomFilterTransformParameter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698