Bug 1302787 - implement css-color-4 color function changes in devtool parser. r=ttromey

MozReview-Commit-ID: JQQJcDsXFlp
This commit is contained in:
JerryShih
2016-10-17 02:12:05 -04:00
parent 685245288b
commit 7177bc6fd5
4 changed files with 270 additions and 69 deletions

View File

@@ -4,6 +4,8 @@
"use strict";
const {CSS_ANGLEUNIT} = require("devtools/shared/css/properties-db");
const SPECIALVALUES = new Set([
"initial",
"inherit",
@@ -39,12 +41,7 @@ module.exports.angleUtils = {
classifyAngle: classifyAngle
};
CssAngle.ANGLEUNIT = {
"deg": "deg",
"rad": "rad",
"grad": "grad",
"turn": "turn"
};
CssAngle.ANGLEUNIT = CSS_ANGLEUNIT;
CssAngle.prototype = {
_angleUnit: null,