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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 // WebKit notifies this callback regardless if the subtree of the node is a
document tree or a floating subtree. | 537 // WebKit notifies this callback regardless if the subtree of the node is a
document tree or a floating subtree. |
538 // Implementation can determine the type of subtree by seeing insertionPoint
->inDocument(). | 538 // Implementation can determine the type of subtree by seeing insertionPoint
->inDocument(). |
539 // For a performance reason, notifications are delivered only to ContainerNo
de subclasses if the insertionPoint is out of document. | 539 // For a performance reason, notifications are delivered only to ContainerNo
de subclasses if the insertionPoint is out of document. |
540 // | 540 // |
541 // There are another callback named didNotifyDescendantInsertions(), which i
s called after all the descendant is notified. | 541 // There are another callback named didNotifyDescendantInsertions(), which i
s called after all the descendant is notified. |
542 // Only a few subclasses actually need this. To utilize this, the node shoul
d return InsertionShouldCallDidNotifyDescendantInsertions | 542 // Only a few subclasses actually need this. To utilize this, the node shoul
d return InsertionShouldCallDidNotifyDescendantInsertions |
543 // from insrtedInto(). | 543 // from insrtedInto(). |
544 // | 544 // |
545 enum InsertionNotificationRequest { | 545 enum InsertionNotificationRequest { |
546 InsertionDone, | 546 InsertionDone, |
547 InsertionShouldCallDidNotifyDescendantInsertions | 547 InsertionShouldCallDidNotifyDescendantInsertions, |
| 548 InsertionShouldCallDidNotifySubtreeInsertions |
548 }; | 549 }; |
549 | 550 |
550 virtual InsertionNotificationRequest insertedInto(ContainerNode* insertionPo
int); | 551 virtual InsertionNotificationRequest insertedInto(ContainerNode* insertionPo
int); |
551 virtual void didNotifyDescendantInsertions(ContainerNode*) { } | 552 virtual void didNotifyDescendantInsertions(ContainerNode*) { } |
| 553 virtual void didNotifySubtreeInsertions(ContainerNode*) { } |
552 | 554 |
553 // Notifies the node that it is no longer part of the tree. | 555 // Notifies the node that it is no longer part of the tree. |
554 // | 556 // |
555 // This is a dual of insertedInto(), and is similar to the DOMNodeRemovedFro
mDocument DOM event, but does not require the overhead of event | 557 // This is a dual of insertedInto(), and is similar to the DOMNodeRemovedFro
mDocument DOM event, but does not require the overhead of event |
556 // dispatching, and is called _after_ the node is removed from the tree. | 558 // dispatching, and is called _after_ the node is removed from the tree. |
557 // | 559 // |
558 virtual void removedFrom(ContainerNode* insertionPoint); | 560 virtual void removedFrom(ContainerNode* insertionPoint); |
559 | 561 |
560 #ifndef NDEBUG | 562 #ifndef NDEBUG |
561 virtual void formatForDebugger(char* buffer, unsigned length) const; | 563 virtual void formatForDebugger(char* buffer, unsigned length) const; |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 | 877 |
876 } //namespace | 878 } //namespace |
877 | 879 |
878 #ifndef NDEBUG | 880 #ifndef NDEBUG |
879 // Outside the WebCore namespace for ease of invocation from gdb. | 881 // Outside the WebCore namespace for ease of invocation from gdb. |
880 void showTree(const WebCore::Node*); | 882 void showTree(const WebCore::Node*); |
881 void showNodePath(const WebCore::Node*); | 883 void showNodePath(const WebCore::Node*); |
882 #endif | 884 #endif |
883 | 885 |
884 #endif | 886 #endif |
OLD | NEW |