| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 clearAXObjectCache(); | 540 clearAXObjectCache(); |
| 541 | 541 |
| 542 if (m_styleSheetList) | 542 if (m_styleSheetList) |
| 543 m_styleSheetList->detachFromDocument(); | 543 m_styleSheetList->detachFromDocument(); |
| 544 | 544 |
| 545 if (m_import) { | 545 if (m_import) { |
| 546 m_import->wasDetachedFromDocument(); | 546 m_import->wasDetachedFromDocument(); |
| 547 m_import = 0; | 547 m_import = 0; |
| 548 } | 548 } |
| 549 | 549 |
| 550 if (m_timeline) { | 550 m_timeline->detachFromDocument(); |
| 551 m_timeline->detachFromDocument(); | 551 m_transitionTimeline->detachFromDocument(); |
| 552 } | |
| 553 | |
| 554 if (m_transitionTimeline) { | |
| 555 m_transitionTimeline->detachFromDocument(); | |
| 556 } | |
| 557 | 552 |
| 558 m_styleEngine.clear(); // We need to destory CSSFontSelector before destroyi
ng m_fetcher. | 553 m_styleEngine.clear(); // We need to destory CSSFontSelector before destroyi
ng m_fetcher. |
| 559 | 554 |
| 560 if (m_elemSheet) | 555 if (m_elemSheet) |
| 561 m_elemSheet->clearOwnerNode(); | 556 m_elemSheet->clearOwnerNode(); |
| 562 | 557 |
| 563 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages | 558 // It's possible for multiple Documents to end up referencing the same Resou
rceFetcher (e.g., SVGImages |
| 564 // load the initial empty document and the SVGDocument with the same Documen
tLoader). | 559 // load the initial empty document and the SVGDocument with the same Documen
tLoader). |
| 565 if (m_fetcher->document() == this) | 560 if (m_fetcher->document() == this) |
| 566 m_fetcher->setDocument(0); | 561 m_fetcher->setDocument(0); |
| (...skipping 4871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5438 void Document::defaultEventHandler(Event* event) | 5433 void Document::defaultEventHandler(Event* event) |
| 5439 { | 5434 { |
| 5440 if (frame() && frame()->remotePlatformLayer()) { | 5435 if (frame() && frame()->remotePlatformLayer()) { |
| 5441 frame()->chromeClient().forwardInputEvent(this, event); | 5436 frame()->chromeClient().forwardInputEvent(this, event); |
| 5442 return; | 5437 return; |
| 5443 } | 5438 } |
| 5444 Node::defaultEventHandler(event); | 5439 Node::defaultEventHandler(event); |
| 5445 } | 5440 } |
| 5446 | 5441 |
| 5447 } // namespace WebCore | 5442 } // namespace WebCore |
| OLD | NEW |