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

Unified Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/support/subpixel-utils.js

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update Created 6 years 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/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/support/subpixel-utils.js
diff --git a/LayoutTests/fast/shapes/resources/subpixel-utils.js b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/support/subpixel-utils.js
similarity index 86%
copy from LayoutTests/fast/shapes/resources/subpixel-utils.js
copy to LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/support/subpixel-utils.js
index c6a0e0fca13679743d844badafc2859223c1d8fc..50bf0989f114f651c7e7481b0c090ffa3f8c1154 100644
--- a/LayoutTests/fast/shapes/resources/subpixel-utils.js
+++ b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/supported-shapes/support/subpixel-utils.js
@@ -19,11 +19,8 @@ var SubPixelLayout = (function() {
snapToLayoutUnit: function(f) {
return isEnabled() ? Math.floor(f * 64) / 64 : Math.floor(f); // as in LayoutUnit(f).toFloat()
},
- ceilToLayoutUnit: function(f) {
+ ceilSnapToLayoutUnit: function(f) {
return isEnabled() ? Math.ceil(f * 64) / 64 : Math.ceil(f); // see ceiledLayoutUnit(), LayoutUnit.h
- },
- resolution: function() {
- return isEnabled() ? 1/64 : 1;
}
}
}());

Powered by Google App Engine
This is Rietveld 408576698