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) |