| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2255 frame()->eventHandler()->stopAutoscrollTimer(true); | 2255 frame()->eventHandler()->stopAutoscrollTimer(true); |
| 2256 | 2256 |
| 2257 if (AXObjectCache::accessibilityEnabled()) { | 2257 if (AXObjectCache::accessibilityEnabled()) { |
| 2258 document()->axObjectCache()->childrenChanged(this->parent()); | 2258 document()->axObjectCache()->childrenChanged(this->parent()); |
| 2259 document()->axObjectCache()->remove(this); | 2259 document()->axObjectCache()->remove(this); |
| 2260 } | 2260 } |
| 2261 animation()->cancelAnimations(this); | 2261 animation()->cancelAnimations(this); |
| 2262 | 2262 |
| 2263 remove(); | 2263 remove(); |
| 2264 | 2264 |
| 2265 #ifndef NDEBUG |
| 2266 if (!documentBeingDestroyed() && view() && view()->hasRenderFlowThreads()) { |
| 2267 // After remove, the object and the associated information should not be
in any flow thread. |
| 2268 const RenderFlowThreadList* flowThreadList = view()->renderFlowThreadLis
t(); |
| 2269 for (RenderFlowThreadList::const_iterator iter = flowThreadList->begin()
; iter != flowThreadList->end(); ++iter) { |
| 2270 const RenderFlowThread* renderFlowThread = *iter; |
| 2271 ASSERT(!renderFlowThread->hasChild(this)); |
| 2272 ASSERT(!renderFlowThread->hasChildInfo(this)); |
| 2273 } |
| 2274 } |
| 2275 #endif |
| 2276 |
| 2265 // If this renderer had a parent, remove should have destroyed any counters | 2277 // If this renderer had a parent, remove should have destroyed any counters |
| 2266 // attached to this renderer and marked the affected other counters for | 2278 // attached to this renderer and marked the affected other counters for |
| 2267 // reevaluation. This apparently redundant check is here for the case when | 2279 // reevaluation. This apparently redundant check is here for the case when |
| 2268 // this renderer had no parent at the time remove() was called. | 2280 // this renderer had no parent at the time remove() was called. |
| 2269 | 2281 |
| 2270 if (hasCounterNodeMap()) | 2282 if (hasCounterNodeMap()) |
| 2271 RenderCounter::destroyCounterNodes(this); | 2283 RenderCounter::destroyCounterNodes(this); |
| 2272 | 2284 |
| 2273 // FIXME: Would like to do this in RenderBoxModelObject, but the timing is s
o complicated that this can't easily | 2285 // FIXME: Would like to do this in RenderBoxModelObject, but the timing is s
o complicated that this can't easily |
| 2274 // be moved into RenderBoxModelObject::destroy. | 2286 // be moved into RenderBoxModelObject::destroy. |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2853 { | 2865 { |
| 2854 if (object1) { | 2866 if (object1) { |
| 2855 const WebCore::RenderObject* root = object1; | 2867 const WebCore::RenderObject* root = object1; |
| 2856 while (root->parent()) | 2868 while (root->parent()) |
| 2857 root = root->parent(); | 2869 root = root->parent(); |
| 2858 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2870 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 2859 } | 2871 } |
| 2860 } | 2872 } |
| 2861 | 2873 |
| 2862 #endif | 2874 #endif |
| OLD | NEW |