diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig index 01850b380c..8fdedf95e9 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig @@ -193,7 +193,6 @@ x = request.left * ratio + space, // position canvas = cache.get(elementId) || cache.set(elementId, document.getElementById(elementId)), ctx = canvas.getContext("2d"), - backingStoreRatio, scaleRatio, devicePixelRatio; @@ -206,11 +205,8 @@ // For retina displays so text and boxes will be crisp devicePixelRatio = window.devicePixelRatio == "undefined" ? 1 : window.devicePixelRatio; - backingStoreRatio = ctx.webkitBackingStorePixelRatio == "undefined" ? 1 : ctx.webkitBackingStorePixelRatio; scaleRatio = devicePixelRatio / 1; - canvasHeight += gapPerEvent * drawableEvents.length; - canvas.width = width * scaleRatio; canvas.height = canvasHeight * scaleRatio; @@ -363,7 +359,7 @@ var self = this; _requests.forEach(function(request) { - self.drawOne(request, maxRequestTime, threshold, width); + self.drawOne(request, _maxRequestTime, threshold, width); }); };