Commit 6226a4c1 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

Revert of DevTools: Enable antialiasing in the pie chart....

Revert of DevTools: Enable antialiasing in the pie chart. (https://codereview.chromium.org/179853002/)

Reason for revert:
This change introduced significant performance penalty - paint time prevents timeline from animating even at 30 fps.

Original issue's description:
> DevTools: Enable antialiasing in the pie chart.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168025

TBR=yurys@chromium.org,caseq@chromium.org,alph@chromium.org
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/188053004

git-svn-id: svn://svn.chromium.org/blink/trunk@168566 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e28a736c
...@@ -76,8 +76,7 @@ WebInspector.PieChart.prototype = { ...@@ -76,8 +76,7 @@ WebInspector.PieChart.prototype = {
_innerAddSlice: function(sliceAngle, color) _innerAddSlice: function(sliceAngle, color)
{ {
var sliceElement = this.element.createChild("div", "pie-chart-slice"); var sliceElement = this.element.createChild("div", "pie-chart-slice");
// translate3d enables antialiasing for the slice. sliceElement.style.webkitTransform = "rotate(" + Number(this._lastAngle).toFixed(2) + "deg)"
sliceElement.style.webkitTransform = "translate3d(0, 0, 0) rotate(" + Number(this._lastAngle).toFixed(2) + "deg)"
var innerSliceElement = sliceElement.createChild("div", "pie-chart-slice-inner"); var innerSliceElement = sliceElement.createChild("div", "pie-chart-slice-inner");
innerSliceElement.style.backgroundColor = color; innerSliceElement.style.backgroundColor = color;
innerSliceElement.style.webkitTransform = "rotate(" + Number(sliceAngle).toFixed(2) + "deg)"; innerSliceElement.style.webkitTransform = "rotate(" + Number(sliceAngle).toFixed(2) + "deg)";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment