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

Unified Diff: components/mus/public/cpp/lib/window.cc

Issue 1848653006: Random wm frame painting fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 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 | « no previous file | components/mus/public/cpp/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 0fe9dbbebcb143ae1914a73ff6e1a6cf980788fc..d9a45ae2e9a3dee66497acf9ff7567b110c32437 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -316,14 +316,14 @@ void Window::MoveToBack() {
Reorder(parent_->children_.front(), mojom::OrderDirection::BELOW);
}
-bool Window::Contains(Window* child) const {
+bool Window::Contains(const Window* child) const {
if (!child)
return false;
if (child == this)
return true;
if (connection_)
- CHECK_EQ(child->connection(), connection_);
- for (Window* p = child->parent(); p; p = p->parent()) {
+ CHECK_EQ(child->connection_, connection_);
+ for (const Window* p = child->parent(); p; p = p->parent()) {
if (p == this)
return true;
}
« no previous file with comments | « no previous file | components/mus/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698