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

Unified Diff: Source/devtools/front_end/PieChart.js

Issue 179853002: DevTools: Enable antialiasing in the pie chart. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/PieChart.js
diff --git a/Source/devtools/front_end/PieChart.js b/Source/devtools/front_end/PieChart.js
index 280806de2416c2b253e2e604830e22c0594531f9..048d324756a777c6a780d994be92cab6064faaf6 100644
--- a/Source/devtools/front_end/PieChart.js
+++ b/Source/devtools/front_end/PieChart.js
@@ -65,7 +65,8 @@ WebInspector.PieChart.prototype = {
_innerAddSlice: function(sliceAngle, color)
{
var sliceElement = this.element.createChild("div", "pie-chart-slice");
- sliceElement.style.webkitTransform = "rotate(" + Number(this._lastAngle).toFixed(2) + "deg)"
+ // translate3d enables antialiasing for the slice.
pfeldman 2014/02/25 16:19:30 Is there a link to the docs / recommendation for t
+ sliceElement.style.webkitTransform = "translate3d(0, 0, 0) rotate(" + Number(this._lastAngle).toFixed(2) + "deg)"
var innerSliceElement = sliceElement.createChild("div", "pie-chart-slice-inner");
innerSliceElement.style.backgroundColor = color;
innerSliceElement.style.webkitTransform = "rotate(" + Number(sliceAngle).toFixed(2) + "deg)";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698