OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 Widget::Widget() | 33 Widget::Widget() |
34 : m_parent(nullptr) | 34 : m_parent(nullptr) |
35 , m_selfVisible(false) | 35 , m_selfVisible(false) |
36 , m_parentVisible(false) | 36 , m_parentVisible(false) |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 Widget::~Widget() | 40 Widget::~Widget() |
41 { | 41 { |
42 #if !ENABLE(OILPAN) | |
43 ASSERT(!parent()); | |
44 #endif | |
45 } | 42 } |
46 | 43 |
47 DEFINE_TRACE(Widget) | 44 DEFINE_TRACE(Widget) |
48 { | 45 { |
49 visitor->trace(m_parent); | 46 visitor->trace(m_parent); |
50 } | 47 } |
51 | 48 |
52 void Widget::setParent(Widget* widget) | 49 void Widget::setParent(Widget* widget) |
53 { | 50 { |
54 ASSERT(!widget || !m_parent); | 51 ASSERT(!widget || !m_parent); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 { | 162 { |
166 return point; | 163 return point; |
167 } | 164 } |
168 | 165 |
169 IntPoint Widget::convertSelfToChild(const Widget*, const IntPoint& point) const | 166 IntPoint Widget::convertSelfToChild(const Widget*, const IntPoint& point) const |
170 { | 167 { |
171 return point; | 168 return point; |
172 } | 169 } |
173 | 170 |
174 } // namespace blink | 171 } // namespace blink |
OLD | NEW |