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

Unified Diff: Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp

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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp
diff --git a/Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp b/Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp
index 8f0e2b0e3e7db42f154e2fe4a4b5ec1c2b685081..203b3fa652234629733e113f7fc8c233ed65f8f6 100644
--- a/Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp
+++ b/Source/core/platform/graphics/transforms/InterpolatedTransformOperation.cpp
@@ -43,19 +43,19 @@ bool InterpolatedTransformOperation::operator==(const TransformOperation& o) con
return progress == t->progress && from == t->from && to == t->to;
}
-bool InterpolatedTransformOperation::apply(TransformationMatrix& transform, const FloatSize& borderBoxSize) const
+bool InterpolatedTransformOperation::apply(TransformationMatrix& transform, const FloatSize& borderBoxSize, RenderView* renderView) const
{
TransformationMatrix fromTransform;
TransformationMatrix toTransform;
- from.apply(borderBoxSize, fromTransform);
- to.apply(borderBoxSize, toTransform);
+ from.apply(borderBoxSize, fromTransform, renderView);
+ to.apply(borderBoxSize, toTransform, renderView);
toTransform.blend(fromTransform, progress);
transform.multiply(toTransform);
return true;
}
-PassRefPtr<TransformOperation> InterpolatedTransformOperation::blend(const TransformOperation* from, double progress, bool blendToIdentity)
+PassRefPtr<TransformOperation> InterpolatedTransformOperation::blend(const TransformOperation* from, double progress, bool blendToIdentity, RenderView* renderView)
{
if (from && !from->isSameType(*this))
return this;

Powered by Google App Engine
This is Rietveld 408576698