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

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorAnimationsTest.cpp

Issue 2651093003: Make scroll translation transform nodes reference scroll nodes (Closed)
Patch Set: Add note about scroll tree differences Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698