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

Unified Diff: cc/trees/property_tree.cc

Issue 2796013003: cc: Push Animation Finished State and Use Finished State for IsCompleted (Closed)
Patch Set: clear events before update state in unittest Created 3 years, 8 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index 280ecd000bffb759bce8db68e84e65719c3c146c..2109ce6199af18b56bc59bfb01733aad421adf51 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -870,11 +870,6 @@ EffectNode* EffectTree::FindNodeFromElementId(ElementId id) {
bool EffectTree::OnOpacityAnimated(ElementId id, float opacity) {
EffectNode* node = FindNodeFromElementId(id);
DCHECK(node);
- // TODO(crbug.com/706766): Avoid crash. Need more investigation for what is
- // calling this without setting element id.
- if (!node)
- return false;
-
if (node->opacity == opacity)
return false;
node->opacity = opacity;
@@ -888,11 +883,6 @@ bool EffectTree::OnFilterAnimated(ElementId id,
const FilterOperations& filters) {
EffectNode* node = FindNodeFromElementId(id);
DCHECK(node);
- // TODO(crbug.com/706766): Avoid crash. Need more investigation for what is
- // calling this without setting element id.
- if (!node)
- return false;
-
if (node->filters == filters)
return false;
node->filters = filters;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698