Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / PieChart.js
index 036b4ce..280806d 100644 (file)
@@ -70,5 +70,7 @@ WebInspector.PieChart.prototype = {
         innerSliceElement.style.backgroundColor = color;
         innerSliceElement.style.webkitTransform = "rotate(" + Number(sliceAngle).toFixed(2) + "deg)";
         this._lastAngle += sliceAngle;
+        if (this._lastAngle > 360)
+            console.assert("Pie chard slices are greater than total.");
     }
 }