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

Unified Diff: Source/core/platform/graphics/transforms/PerspectiveTransformOperation.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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/transforms/PerspectiveTransformOperation.h
diff --git a/Source/core/platform/graphics/transforms/PerspectiveTransformOperation.h b/Source/core/platform/graphics/transforms/PerspectiveTransformOperation.h
index bca1b8e78c4f00113c8971d328070c0662868a78..1d55e3ec537d72f92768413e15700affc808e366 100644
--- a/Source/core/platform/graphics/transforms/PerspectiveTransformOperation.h
+++ b/Source/core/platform/graphics/transforms/PerspectiveTransformOperation.h
@@ -54,13 +54,13 @@ private:
return m_p == p->m_p;
}
- virtual bool apply(TransformationMatrix& transform, const FloatSize&) const
+ virtual bool apply(TransformationMatrix& transform, const FloatSize&, RenderView*renderView) const
{
- transform.applyPerspective(floatValueForLength(m_p, 1));
+ transform.applyPerspective(floatValueForLength(m_p, 1, renderView));
return false;
}
- virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false);
+ virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false, RenderView* =0);
PerspectiveTransformOperation(const Length& p)
: m_p(p)

Powered by Google App Engine
This is Rietveld 408576698