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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/cssScale.html

Issue 2943303002: [CSS Typed OM] Refactor is2D handling in CSSTransformComponents to match new spec (Closed)
Patch Set: rebase Created 3 years, 6 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: third_party/WebKit/LayoutTests/typedcssom/cssScale.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssScale.html b/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
index 82c084d6def356a556bb91751e9a74a169975d18..250be2c80049702e5021addc648121019b09e7e9 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssScale.html
@@ -60,7 +60,7 @@ for (let params of testParams) {
for (let params of testParams) {
test(() => {
- assert_equals(params.input.is2D(), params.is2D);
+ assert_equals(params.input.is2D, params.is2D);
}, "is2D value is correct for " + params.cssText);
}
@@ -109,9 +109,9 @@ for (let params of testParams) {
var input = params.input;
var transformValue = new CSSTransformValue([input]);
var inputAsMatrix = transformValue.toMatrix();
- assert_equals(inputAsMatrix.is2D, input.is2D());
+ assert_equals(inputAsMatrix.is2D, input.is2D);
- var expectedMatrix = input.is2D() ?
+ var expectedMatrix = input.is2D ?
new DOMMatrixReadOnly([input.x, 0, 0, input.y, 0, 0]) :
new DOMMatrixReadOnly(
[input.x, 0, 0, 0, 0, input.y, 0, 0, 0, 0, input.z, 0, 0, 0, 0, 1]);

Powered by Google App Engine
This is Rietveld 408576698