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

Unified Diff: LayoutTests/fast/exclusions/resources/rounded-rectangle.js

Issue 14959014: [CSS Exclusions] Programmatic layout tests fail when subpixel layout is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated per review feedback. Created 7 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/exclusions/resources/simple-polygon.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/exclusions/resources/rounded-rectangle.js
diff --git a/LayoutTests/fast/exclusions/resources/rounded-rectangle.js b/LayoutTests/fast/exclusions/resources/rounded-rectangle.js
index d4629c0ee8ae5f2386db4f0f82a0f5e537b6e0a6..054f9ac422629a752a3543e618ab575095468286 100644
--- a/LayoutTests/fast/exclusions/resources/rounded-rectangle.js
+++ b/LayoutTests/fast/exclusions/resources/rounded-rectangle.js
@@ -95,12 +95,12 @@ function simulateShape(elementId, stylesheet, dimensions, lineHeight) {
var paddingLeft = document.createElement("div");
paddingLeft.setAttribute("class", "float left");
- paddingLeft.style.width = SubPixelLayout.roundLineLeft(dimensions.shapeX + inset) + "px";
+ paddingLeft.style.width = SubPixelLayout.snapToLayoutUnit(dimensions.shapeX + inset) + "px";
element.appendChild(paddingLeft);
var paddingRight = document.createElement("div");
paddingRight.setAttribute("class", "float right");
- paddingRight.style.width = SubPixelLayout.roundLineRight((dimensions.width - dimensions.shapeWidth - dimensions.shapeX) + inset) + "px";
+ paddingRight.style.width = SubPixelLayout.snapToLayoutUnit((dimensions.width - dimensions.shapeWidth - dimensions.shapeX) + inset) + "px";
element.appendChild(paddingRight);
}
}
« no previous file with comments | « no previous file | LayoutTests/fast/exclusions/resources/simple-polygon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698