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

Unified Diff: views/widget/native_widget_aura.cc

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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: views/widget/native_widget_aura.cc
===================================================================
--- views/widget/native_widget_aura.cc (revision 100773)
+++ views/widget/native_widget_aura.cc (working copy)
@@ -114,10 +114,11 @@
//NOTIMPLEMENTED();
}
-void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
- View** ancestor) {
- if (ancestor)
- *ancestor = GetWidget()->GetRootView();
+void NativeWidgetAura::CalculateOffsetToAncestorWithLayer(
+ gfx::Point* offset,
+ ui::Layer** layer_parent) {
+ if (layer_parent)
+ *layer_parent = window_->layer();
}
void NativeWidgetAura::ViewRemoved(View* view) {

Powered by Google App Engine
This is Rietveld 408576698