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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 if (hasActiveAnimations()) | 172 if (hasActiveAnimations()) |
173 activeAnimations()->dispose(); | 173 activeAnimations()->dispose(); |
174 | 174 |
175 if (isCustomElement()) | 175 if (isCustomElement()) |
176 CustomElement::wasDestroyed(this); | 176 CustomElement::wasDestroyed(this); |
177 | 177 |
178 if (hasSyntheticAttrChildNodes()) | 178 if (hasSyntheticAttrChildNodes()) |
179 detachAllAttrNodesFromElement(); | 179 detachAllAttrNodesFromElement(); |
180 | 180 |
| 181 #if !ENABLE(OILPAN) |
| 182 // With Oilpan, either the Element has been removed from the Document |
| 183 // or the Document is dead as well. If the Element has been removed from |
| 184 // the Document the element has already been removed from the pending |
| 185 // resources. If the document is also dead, there is no need to remove |
| 186 // the element from the pending resources. |
181 if (hasPendingResources()) { | 187 if (hasPendingResources()) { |
182 document().accessSVGExtensions().removeElementFromPendingResources(this)
; | 188 document().accessSVGExtensions().removeElementFromPendingResources(this)
; |
183 ASSERT(!hasPendingResources()); | 189 ASSERT(!hasPendingResources()); |
184 } | 190 } |
| 191 #endif |
185 } | 192 } |
186 | 193 |
187 inline ElementRareData* Element::elementRareData() const | 194 inline ElementRareData* Element::elementRareData() const |
188 { | 195 { |
189 ASSERT(hasRareData()); | 196 ASSERT(hasRareData()); |
190 return static_cast<ElementRareData*>(rareData()); | 197 return static_cast<ElementRareData*>(rareData()); |
191 } | 198 } |
192 | 199 |
193 inline ElementRareData& Element::ensureElementRareData() | 200 inline ElementRareData& Element::ensureElementRareData() |
194 { | 201 { |
(...skipping 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3255 || isHTMLObjectElement(*this) | 3262 || isHTMLObjectElement(*this) |
3256 || isHTMLAppletElement(*this) | 3263 || isHTMLAppletElement(*this) |
3257 || isHTMLCanvasElement(*this)) | 3264 || isHTMLCanvasElement(*this)) |
3258 return false; | 3265 return false; |
3259 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3266 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3260 return false; | 3267 return false; |
3261 return true; | 3268 return true; |
3262 } | 3269 } |
3263 | 3270 |
3264 } // namespace WebCore | 3271 } // namespace WebCore |
OLD | NEW |