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

Unified Diff: chrome/browser/android/compositor/layer/content_layer.cc

Issue 2739103004: Fix incorrect padding size with NTP. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer/content_layer.cc
diff --git a/chrome/browser/android/compositor/layer/content_layer.cc b/chrome/browser/android/compositor/layer/content_layer.cc
index d9ea86014c8ce979d7ebc95fd0f4f0574738d9e7..36dd8bd2d5881b0ee4650d24ff28ec1043658b98 100644
--- a/chrome/browser/android/compositor/layer/content_layer.cc
+++ b/chrome/browser/android/compositor/layer/content_layer.cc
@@ -64,9 +64,9 @@ void ContentLayer::SetProperties(int id,
float saturation,
bool should_clip,
const gfx::Rect& clip) {
- scoped_refptr<cc::Layer> live_layer;
- if (can_use_live_layer)
- live_layer = tab_content_manager_->GetLiveLayer(id);
+ scoped_refptr<cc::Layer> live_layer = tab_content_manager_->GetLiveLayer(id);
+ if (live_layer)
+ live_layer->SetHideLayerAndSubtree(!can_use_live_layer);
bool live_layer_draws = GetDrawsContentLeaf(live_layer);
scoped_refptr<ThumbnailLayer> static_layer =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698