| 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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 | 1252 |
| 1253 ThreadState::current()->collectAllGarbage(); | 1253 ThreadState::current()->collectAllGarbage(); |
| 1254 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); | 1254 EXPECT_TRUE(element->elementAnimations()->animations().isEmpty()); |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 namespace { | 1257 namespace { |
| 1258 | 1258 |
| 1259 void updateDummyTransformNode(ObjectPaintProperties& properties, | 1259 void updateDummyTransformNode(ObjectPaintProperties& properties, |
| 1260 CompositingReasons reasons) { | 1260 CompositingReasons reasons) { |
| 1261 properties.updateTransform(TransformPaintPropertyNode::root(), | 1261 properties.updateTransform(TransformPaintPropertyNode::root(), |
| 1262 TransformationMatrix(), FloatPoint3D(), false, 0, | 1262 TransformationMatrix(), FloatPoint3D(), nullptr, |
| 1263 reasons); | 1263 false, 0, reasons); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 void updateDummyEffectNode(ObjectPaintProperties& properties, | 1266 void updateDummyEffectNode(ObjectPaintProperties& properties, |
| 1267 CompositingReasons reasons) { | 1267 CompositingReasons reasons) { |
| 1268 properties.updateEffect( | 1268 properties.updateEffect( |
| 1269 EffectPaintPropertyNode::root(), TransformPaintPropertyNode::root(), | 1269 EffectPaintPropertyNode::root(), TransformPaintPropertyNode::root(), |
| 1270 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, | 1270 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, |
| 1271 SkBlendMode::kSrcOver, reasons); | 1271 SkBlendMode::kSrcOver, reasons); |
| 1272 } | 1272 } |
| 1273 | 1273 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 | 1321 |
| 1322 // Clearing the effect node entirely should also produce false. | 1322 // Clearing the effect node entirely should also produce false. |
| 1323 properties.clearEffect(); | 1323 properties.clearEffect(); |
| 1324 EXPECT_FALSE(CompositorAnimations::canStartAnimationOnCompositor(*element)); | 1324 EXPECT_FALSE(CompositorAnimations::canStartAnimationOnCompositor(*element)); |
| 1325 | 1325 |
| 1326 element->setLayoutObject(nullptr); | 1326 element->setLayoutObject(nullptr); |
| 1327 LayoutObjectProxy::dispose(layoutObject); | 1327 LayoutObjectProxy::dispose(layoutObject); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 } // namespace blink | 1330 } // namespace blink |
| OLD | NEW |