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

Unified Diff: LayoutTests/fast/shapes/resources/simple-rectangle.js

Issue 23530010: Make CSSStyleSheet.insertRule() / deleteRule() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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
Index: LayoutTests/fast/shapes/resources/simple-rectangle.js
diff --git a/LayoutTests/fast/shapes/resources/simple-rectangle.js b/LayoutTests/fast/shapes/resources/simple-rectangle.js
index b28ade6cb8ce117cb6e73573d4b33213fbd7dffc..ad7dcd2d1e169a28f735573b884a2e22a8ee9f60 100644
--- a/LayoutTests/fast/shapes/resources/simple-rectangle.js
+++ b/LayoutTests/fast/shapes/resources/simple-rectangle.js
@@ -16,13 +16,13 @@ function createRectangleTest(elementId, stylesheetId, bounds, shapeBounds, units
rules.push('-webkit-shape-inside: rectangle(' + rectangleBounds.join(',') + ')');
rules.push('position: relative');
rules.push('overflow-wrap: break-word');
- stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}');
+ stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}', 0);
rules = [];
rules.push('left: ' + (shapeBounds.x - 1) + units, 'top: ' + (shapeBounds.y - 1) + units, 'width: ' + rectangleBounds[2], 'height: ' + rectangleBounds[3]);
rules.push('position: absolute', 'display: block', 'content: \' \'');
rules.push('border: 1px solid blue');
- stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}');
+ stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}', 0);
if (content)
elem.innerHTML = content;
}
@@ -44,13 +44,13 @@ function createRectangleTestResult(elementId, stylesheetId, bounds, shapeBounds,
rules.push('padding-top: ' + shapeBounds.y + units, 'padding-bottom: ' + (bounds.height - shapeBounds.height - shapeBounds.y) + units);
rules.push('position: relative');
rules.push('overflow-wrap: break-word');
- stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}');
+ stylesheet.insertRule('#' + elementId + '{' + rules.join(';') + '}', 0);
rules = [];
rules.push('left: ' + (shapeBounds.x - 1) + units, 'top: ' + (shapeBounds.y - 1) + units, 'width: ' + shapeBounds.width + units, 'height: ' + shapeBounds.height + units);
rules.push('position: absolute', 'display: block', 'content: \' \'');
rules.push('border: 1px solid blue');
- stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}');
+ stylesheet.insertRule('#' + elementId + ':before{' + rules.join(';') + '}', 0);
if (content)
elem.innerHTML = content;
}
« no previous file with comments | « LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js ('k') | Source/core/css/CSSStyleSheet.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698