| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 main_thread_scrolling_reasons( | 521 main_thread_scrolling_reasons( |
| 522 MainThreadScrollingReason::kNotScrollingOnMain), | 522 MainThreadScrollingReason::kNotScrollingOnMain), |
| 523 contains_non_fast_scrollable_region(false), | 523 contains_non_fast_scrollable_region(false), |
| 524 max_scroll_offset_affected_by_page_scale(false), | 524 max_scroll_offset_affected_by_page_scale(false), |
| 525 is_inner_viewport_scroll_layer(false), | 525 is_inner_viewport_scroll_layer(false), |
| 526 is_outer_viewport_scroll_layer(false), | 526 is_outer_viewport_scroll_layer(false), |
| 527 should_flatten(false), | 527 should_flatten(false), |
| 528 user_scrollable_horizontal(false), | 528 user_scrollable_horizontal(false), |
| 529 user_scrollable_vertical(false), | 529 user_scrollable_vertical(false), |
| 530 element_id(0), | 530 element_id(0), |
| 531 transform_id(0) {} | 531 transform_id(0), |
| 532 num_drawn_descendants(0) {} |
| 532 | 533 |
| 533 ScrollNodeData::ScrollNodeData(const ScrollNodeData& other) = default; | 534 ScrollNodeData::ScrollNodeData(const ScrollNodeData& other) = default; |
| 534 | 535 |
| 535 bool ScrollNodeData::operator==(const ScrollNodeData& other) const { | 536 bool ScrollNodeData::operator==(const ScrollNodeData& other) const { |
| 536 return scrollable == other.scrollable && | 537 return scrollable == other.scrollable && |
| 537 main_thread_scrolling_reasons == other.main_thread_scrolling_reasons && | 538 main_thread_scrolling_reasons == other.main_thread_scrolling_reasons && |
| 538 contains_non_fast_scrollable_region == | 539 contains_non_fast_scrollable_region == |
| 539 other.contains_non_fast_scrollable_region && | 540 other.contains_non_fast_scrollable_region && |
| 540 scroll_clip_layer_bounds == other.scroll_clip_layer_bounds && | 541 scroll_clip_layer_bounds == other.scroll_clip_layer_bounds && |
| 541 bounds == other.bounds && | 542 bounds == other.bounds && |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1941 break; | 1942 break; |
| 1942 case ALL_TREES: | 1943 case ALL_TREES: |
| 1943 transform_tree.ResetChangeTracking(); | 1944 transform_tree.ResetChangeTracking(); |
| 1944 effect_tree.ResetChangeTracking(); | 1945 effect_tree.ResetChangeTracking(); |
| 1945 } | 1946 } |
| 1946 changed = false; | 1947 changed = false; |
| 1947 full_tree_damaged = false; | 1948 full_tree_damaged = false; |
| 1948 } | 1949 } |
| 1949 | 1950 |
| 1950 } // namespace cc | 1951 } // namespace cc |
| OLD | NEW |