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

Unified Diff: cc/layers/layer.h

Issue 307963008: Highlighting on UAOS - alternate approach (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | webkit/renderer/compositor_bindings/web_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 7e7d28610920548fec9a08eee263f2183688077c..b91949d7477271ba88f50f5c48b6cfde67c82fca 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -190,6 +190,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void AddScrollChild(Layer* child);
void RemoveScrollChild(Layer* child);
+ bool has_scroll_children() const {
+ return scroll_children_ && !scroll_children_->empty();
+ }
+
std::set<Layer*>* scroll_children() { return scroll_children_.get(); }
const std::set<Layer*>* scroll_children() const {
return scroll_children_.get();
« no previous file with comments | « no previous file | webkit/renderer/compositor_bindings/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698