Revert "Switch InterpolableLength implementation from length array to expression"
This reverts commit dd1318d7b1537af982313d51433e00fc02421225.
Reason for revert: caused performance regression crbug.com/1002177
Original change's description:
> Switch InterpolableLength implementation from length array to expression
>
> This patch changes the internal implementation of InterpolableLength
> from CSSLengthArray to the following:
> - A CSSNumericLiteralValue to keep it simple when it's a simple value
> - A CSSMathExpressionNode to make it general when the underlying length
> involves calculation and math functions
>
> In this way, we can interpolate when the length cannot be represented
> as a CSSLengthArray (i.e., when comparison functions min/max are
> involved).
>
> Bug: 991672
> Change-Id: Ib83fc0a07d0eb1d03a2465ac9df5282f963b935b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777025
> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
> Reviewed-by: Alan Cutter <alancutter@chromium.org>
> Reviewed-by: Emil A Eklund <eae@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#694443}
TBR=alancutter@chromium.org,eae@chromium.org,xiaochengh@chromium.org,futhark@chromium.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: 991672
Change-Id: I4467c0b4c8202dbc38ac5152620666caa38648e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797822
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695498}
diff --git a/css/css-values/minmax-length-percentage-interpolate.html b/css/css-values/minmax-length-percentage-interpolate.html
deleted file mode 100644
index 14af135..0000000
--- a/css/css-values/minmax-length-percentage-interpolate.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!doctype html>
-<link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
-<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
-<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
-<title>Tests interpolation between CSS comparison functions</title>
-<style>
-@keyframes anim {
- from {
- width: min(50px, 30%);
- height: min(75%, 160px);
- }
- to {
- width: max(75%, 100px);
- height: max(50px, 20%);
- }
-}
-
-.test {
- background-color: green;
- animation: anim 2000000s linear;
- animation-delay: -1000000s;
-}
-
-.container {
- position: absolute;
- width: 200px;
- height: 200px;
-}
-</style>
-<p>Test passes if there is a filled green square.</p>
-<div class="container">
- <div class="test"></div>
-</div>