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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 1021823006: Fix scroll position adjustment for fixed-position layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 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
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 41aa81b3354250877fa3ca7910c722438f5316d1..f38da61a093ddd338b52979c0519a07abffd7597 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -69,7 +69,7 @@ void CalculateVisibleRects(
gfx::RectF layer_content_bounds_in_target_space =
MathUtil::MapClippedRect(content_to_target, layer_content_rect);
gfx::RectF clip_rect_in_target_space;
- if (target_node->id > clip_node->id) {
+ if (target_node->id > clip_node->data.transform_id) {
clip_rect_in_target_space = MathUtil::ProjectClippedRect(
clip_to_target, clip_node->data.combined_clip);
} else {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | cc/trees/layer_tree_host_common_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698