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

Unified Diff: cc/trees/property_tree.cc

Issue 2080703005: cc: Remove LayerTreeImpl::root_layer usage outside tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/occlusion_tracker.cc ('k') | cc/trees/tree_synchronizer.h » ('j') | 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 d9622d7d00c1ee61903ba7583ebabdfb020002a8..123300d88771621966cf7ceb6a63acaedaa59d27 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -2017,7 +2017,7 @@ void ScrollTree::UpdateScrollOffsetMapEntry(
void ScrollTree::UpdateScrollOffsetMap(
ScrollTree::ScrollOffsetMap* new_scroll_offset_map,
LayerTreeImpl* layer_tree_impl) {
- if (layer_tree_impl && layer_tree_impl->root_layer()) {
+ if (layer_tree_impl && !layer_tree_impl->LayerListIsEmpty()) {
DCHECK(!property_trees()->is_main_thread);
for (auto map_entry = layer_id_to_scroll_offset_map_.begin();
map_entry != layer_id_to_scroll_offset_map_.end();) {
« no previous file with comments | « cc/trees/occlusion_tracker.cc ('k') | cc/trees/tree_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698