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

Unified Diff: cc/test/layer_tree_json_parser.cc

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Backup 2013.10.29 Created 7 years, 2 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/test/layer_tree_json_parser.cc
diff --git a/cc/test/layer_tree_json_parser.cc b/cc/test/layer_tree_json_parser.cc
index af24571be9f0fd21891311562e38a66fbd84970e..5cb507e500d22d3c9b94593a76ca0e5ae62531c3 100644
--- a/cc/test/layer_tree_json_parser.cc
+++ b/cc/test/layer_tree_json_parser.cc
@@ -101,8 +101,9 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val,
new_layer->SetContentsOpaque(contents_opaque);
bool scrollable;
+ // TODO(wjmaclean) Fix the JSON layer parsing format.
if (dict->GetBoolean("Scrollable", &scrollable))
- new_layer->SetScrollable(scrollable);
+ new_layer->SetScrollable(scrollable ? new_layer.get() : NULL);
success &= dict->GetList("DrawTransform", &list);
double transform[16];

Powered by Google App Engine
This is Rietveld 408576698