Skip to content

Commit 22dc694

Browse files
authored
Remove unnecessary argument passing to prepareValue()
This was missed in 37bb130.
1 parent 37bb130 commit 22dc694

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+79
-79
lines changed

lib/CSSStyleDeclaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class CSSStyleDeclaration {
350350
const name = "NoModificationAllowedError";
351351
throw new this._global.DOMException(msg, name);
352352
}
353-
const value = prepareValue(val, this._global);
353+
const value = prepareValue(val);
354354
if (value === "") {
355355
this[prop] = "";
356356
this.removeProperty(prop);

lib/properties/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports.parse = (v, opt = {}) => {
247247

248248
module.exports.definition = {
249249
set(v) {
250-
v = parsers.prepareValue(v, this._global);
250+
v = parsers.prepareValue(v);
251251
if (v === "" || parsers.hasVarFunc(v)) {
252252
for (const [key] of module.exports.shorthandFor) {
253253
this._setProperty(key, "");

lib/properties/backgroundAttachment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports.parse = (v, opt = {}) => {
3434

3535
module.exports.definition = {
3636
set(v) {
37-
v = parsers.prepareValue(v, this._global);
37+
v = parsers.prepareValue(v);
3838
if (parsers.hasVarFunc(v)) {
3939
this._setProperty(shorthand, "");
4040
this._setProperty(property, v);

lib/properties/backgroundClip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports.parse = (v, opt = {}) => {
3434

3535
module.exports.definition = {
3636
set(v) {
37-
v = parsers.prepareValue(v, this._global);
37+
v = parsers.prepareValue(v);
3838
if (parsers.hasVarFunc(v)) {
3939
this._setProperty(shorthand, "");
4040
this._setProperty(property, v);

lib/properties/backgroundColor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports.parse = (v, opt = {}) => {
2323

2424
module.exports.definition = {
2525
set(v) {
26-
v = parsers.prepareValue(v, this._global);
26+
v = parsers.prepareValue(v);
2727
if (parsers.hasVarFunc(v)) {
2828
this._setProperty(shorthand, "");
2929
this._setProperty(property, v);

lib/properties/backgroundImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports.parse = (v, opt = {}) => {
3636

3737
module.exports.definition = {
3838
set(v) {
39-
v = parsers.prepareValue(v, this._global);
39+
v = parsers.prepareValue(v);
4040
if (parsers.hasVarFunc(v)) {
4141
this._setProperty(shorthand, "");
4242
this._setProperty(property, v);

lib/properties/backgroundOrigin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports.parse = (v, opt = {}) => {
3434

3535
module.exports.definition = {
3636
set(v) {
37-
v = parsers.prepareValue(v, this._global);
37+
v = parsers.prepareValue(v);
3838
if (parsers.hasVarFunc(v)) {
3939
this._setProperty(shorthand, "");
4040
this._setProperty(property, v);

lib/properties/backgroundPosition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ module.exports.parse = (v, opt = {}) => {
177177

178178
module.exports.definition = {
179179
set(v) {
180-
v = parsers.prepareValue(v, this._global);
180+
v = parsers.prepareValue(v);
181181
if (parsers.hasVarFunc(v)) {
182182
this._setProperty(shorthand, "");
183183
this._setProperty(property, v);

lib/properties/backgroundRepeat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports.parse = (v, opt = {}) => {
6666

6767
module.exports.definition = {
6868
set(v) {
69-
v = parsers.prepareValue(v, this._global);
69+
v = parsers.prepareValue(v);
7070
if (parsers.hasVarFunc(v)) {
7171
this._setProperty(shorthand, "");
7272
this._setProperty(property, v);

lib/properties/backgroundSize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports.parse = (v, opt = {}) => {
9999

100100
module.exports.definition = {
101101
set(v) {
102-
v = parsers.prepareValue(v, this._global);
102+
v = parsers.prepareValue(v);
103103
if (parsers.hasVarFunc(v)) {
104104
this._setProperty(shorthand, "");
105105
this._setProperty(property, v);

0 commit comments

Comments
 (0)