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

Unified Diff: ash/devtools/view_element.cc

Issue 2902063004: View shows wrong bound when it is highlighted. (Closed)
Patch Set: . Created 3 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 | « ash/devtools/ash_devtools_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/devtools/view_element.cc
diff --git a/ash/devtools/view_element.cc b/ash/devtools/view_element.cc
index 04ef3cc8814517a828e5910bf9511354c5d49e34..862a454ab1bf1fd3f82f397f8243184f7a0895cf 100644
--- a/ash/devtools/view_element.cc
+++ b/ash/devtools/view_element.cc
@@ -75,7 +75,8 @@ void ViewElement::SetVisible(bool visible) {
std::pair<aura::Window*, gfx::Rect> ViewElement::GetNodeWindowAndBounds()
const {
- return std::make_pair(view_->GetWidget()->GetNativeWindow(), view_->bounds());
+ return std::make_pair(view_->GetWidget()->GetNativeWindow(),
+ view_->GetBoundsInScreen());
}
// static
« no previous file with comments | « ash/devtools/ash_devtools_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698