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

Unified Diff: Source/platform/Widget.cpp

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ~Scrollbar assert Created 6 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: Source/platform/Widget.cpp
diff --git a/Source/platform/Widget.cpp b/Source/platform/Widget.cpp
index 01ae2092f56a10a89290abca950fe3ed8b696d65..b0b8dab495857a438b4e8e6d01fc7abe1942003f 100644
--- a/Source/platform/Widget.cpp
+++ b/Source/platform/Widget.cpp
@@ -33,7 +33,7 @@
namespace blink {
Widget::Widget()
- : m_parent(0)
+ : m_parent(nullptr)
, m_selfVisible(false)
, m_parentVisible(false)
{
@@ -41,7 +41,14 @@ Widget::Widget()
Widget::~Widget()
{
+#if !ENABLE(OILPAN)
ASSERT(!parent());
+#endif
+}
+
+void Widget::trace(Visitor* visitor)
+{
+ visitor->trace(m_parent);
}
void Widget::setParent(Widget* widget)

Powered by Google App Engine
This is Rietveld 408576698