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

Unified Diff: ui/gfx/compositor/layer.cc

Issue 9703068: Clip constrained windows to the tabcontents bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « ui/gfx/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer.cc
===================================================================
--- ui/gfx/compositor/layer.cc (revision 126769)
+++ ui/gfx/compositor/layer.cc (working copy)
@@ -171,6 +171,14 @@
return bounds_;
}
+void Layer::SetMasksToBounds(bool masks_to_bounds) {
+ web_layer_.setMasksToBounds(masks_to_bounds);
+}
+
+bool Layer::GetMasksToBounds() const {
+ return web_layer_.masksToBounds();
+}
+
void Layer::SetOpacity(float opacity) {
GetAnimator()->SetOpacity(opacity);
}
« no previous file with comments | « ui/gfx/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698