X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fdevtools%2Ffront_end%2FPieChart.js;h=280806de2416c2b253e2e604830e22c0594531f9;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=036b4ce9e2a31666d25dc0663f8c0bbc8290b124;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/devtools/front_end/PieChart.js b/src/third_party/WebKit/Source/devtools/front_end/PieChart.js index 036b4ce..280806d 100644 --- a/src/third_party/WebKit/Source/devtools/front_end/PieChart.js +++ b/src/third_party/WebKit/Source/devtools/front_end/PieChart.js @@ -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."); } }