| 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 // when a node is added through the DOM methods insertBefore(), appendChild(
) or replaceChild(). The call happens _after_ the node has been added to the tre
e. | 555 // when a node is added through the DOM methods insertBefore(), appendChild(
) or replaceChild(). The call happens _after_ the node has been added to the tre
e. |
| 556 // This is similar to the DOMNodeInsertedIntoDocument DOM event, but does no
t require the overhead of event | 556 // This is similar to the DOMNodeInsertedIntoDocument DOM event, but does no
t require the overhead of event |
| 557 // dispatching. | 557 // dispatching. |
| 558 // | 558 // |
| 559 // WebKit notifies this callback regardless if the subtree of the node is a
document tree or a floating subtree. | 559 // WebKit notifies this callback regardless if the subtree of the node is a
document tree or a floating subtree. |
| 560 // Implementation can determine the type of subtree by seeing insertionPoint
->inDocument(). | 560 // Implementation can determine the type of subtree by seeing insertionPoint
->inDocument(). |
| 561 // For a performance reason, notifications are delivered only to ContainerNo
de subclasses if the insertionPoint is out of document. | 561 // For a performance reason, notifications are delivered only to ContainerNo
de subclasses if the insertionPoint is out of document. |
| 562 // | 562 // |
| 563 // There are another callback named didNotifySubtreeInsertionsToDocument(),
which is called after all the descendant is notified, | 563 // There are another callback named didNotifySubtreeInsertionsToDocument(),
which is called after all the descendant is notified, |
| 564 // if this node was inserted into the document tree. Only a few subclasses a
ctually need this. To utilize this, the node should | 564 // if this node was inserted into the document tree. Only a few subclasses a
ctually need this. To utilize this, the node should |
| 565 // return InsertionShouldCallDidNotifySubtreeInsertions from insrtedInto(). | 565 // return InsertionShouldCallDidNotifySubtreeInsertions from insertedInto(). |
| 566 // | 566 // |
| 567 enum InsertionNotificationRequest { | 567 enum InsertionNotificationRequest { |
| 568 InsertionDone, | 568 InsertionDone, |
| 569 InsertionShouldCallDidNotifySubtreeInsertions | 569 InsertionShouldCallDidNotifySubtreeInsertions |
| 570 }; | 570 }; |
| 571 | 571 |
| 572 virtual InsertionNotificationRequest insertedInto(ContainerNode* insertionPo
int); | 572 virtual InsertionNotificationRequest insertedInto(ContainerNode* insertionPo
int); |
| 573 virtual void didNotifySubtreeInsertionsToDocument() { } | 573 virtual void didNotifySubtreeInsertionsToDocument() { } |
| 574 | 574 |
| 575 // Notifies the node that it is no longer part of the tree. | 575 // Notifies the node that it is no longer part of the tree. |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 | 907 |
| 908 } // namespace WebCore | 908 } // namespace WebCore |
| 909 | 909 |
| 910 #ifndef NDEBUG | 910 #ifndef NDEBUG |
| 911 // Outside the WebCore namespace for ease of invocation from gdb. | 911 // Outside the WebCore namespace for ease of invocation from gdb. |
| 912 void showTree(const WebCore::Node*); | 912 void showTree(const WebCore::Node*); |
| 913 void showNodePath(const WebCore::Node*); | 913 void showNodePath(const WebCore::Node*); |
| 914 #endif | 914 #endif |
| 915 | 915 |
| 916 #endif | 916 #endif |
| OLD | NEW |