| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 EXPECT_FALSE(animation1->hasActiveAnimationsOnCompositor()); | 1220 EXPECT_FALSE(animation1->hasActiveAnimationsOnCompositor()); |
| 1221 EXPECT_FALSE(animation2->hasActiveAnimationsOnCompositor()); | 1221 EXPECT_FALSE(animation2->hasActiveAnimationsOnCompositor()); |
| 1222 | 1222 |
| 1223 simulateFrame(0); | 1223 simulateFrame(0); |
| 1224 EXPECT_EQ(2U, element->elementAnimations()->animations().size()); | 1224 EXPECT_EQ(2U, element->elementAnimations()->animations().size()); |
| 1225 simulateFrame(1.); | 1225 simulateFrame(1.); |
| 1226 | 1226 |
| 1227 element->setLayoutObject(nullptr); | 1227 element->setLayoutObject(nullptr); |
| 1228 LayoutObjectProxy::dispose(layoutObject); | 1228 LayoutObjectProxy::dispose(layoutObject); |
| 1229 | 1229 |
| 1230 Heap::collectAllGarbage(); | 1230 ThreadHeap::collectAllGarbage(); |
| 1231 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); | 1231 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 } // namespace blink | 1234 } // namespace blink |
| OLD | NEW |