| 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, 2013 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights
reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 notifyNodeInserted(*newChild, ChildrenChangeSourceParser); | 685 notifyNodeInserted(*newChild, ChildrenChangeSourceParser); |
| 686 } | 686 } |
| 687 | 687 |
| 688 void ContainerNode::notifyNodeInserted(Node& root, ChildrenChangeSource source) | 688 void ContainerNode::notifyNodeInserted(Node& root, ChildrenChangeSource source) |
| 689 { | 689 { |
| 690 #if DCHECK_IS_ON() | 690 #if DCHECK_IS_ON() |
| 691 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 691 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
| 692 #endif | 692 #endif |
| 693 DCHECK(!root.isShadowRoot()); | 693 DCHECK(!root.isShadowRoot()); |
| 694 | 694 |
| 695 if (document().containsV1ShadowTree()) |
| 696 root.checkSlotChangeAfterInserted(); |
| 697 |
| 695 InspectorInstrumentation::didInsertDOMNode(&root); | 698 InspectorInstrumentation::didInsertDOMNode(&root); |
| 696 | 699 |
| 697 NodeVector postInsertionNotificationTargets; | 700 NodeVector postInsertionNotificationTargets; |
| 698 notifyNodeInsertedInternal(root, postInsertionNotificationTargets); | 701 notifyNodeInsertedInternal(root, postInsertionNotificationTargets); |
| 699 | 702 |
| 700 childrenChanged(ChildrenChange::forInsertion(root, source)); | 703 childrenChanged(ChildrenChange::forInsertion(root, source)); |
| 701 | 704 |
| 702 for (const auto& targetNode : postInsertionNotificationTargets) { | 705 for (const auto& targetNode : postInsertionNotificationTargets) { |
| 703 if (targetNode->inShadowIncludingDocument()) | 706 if (targetNode->inShadowIncludingDocument()) |
| 704 targetNode->didNotifySubtreeInsertionsToDocument(); | 707 targetNode->didNotifySubtreeInsertionsToDocument(); |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 return true; | 1387 return true; |
| 1385 | 1388 |
| 1386 if (node->isElementNode() && toElement(node)->shadow()) | 1389 if (node->isElementNode() && toElement(node)->shadow()) |
| 1387 return true; | 1390 return true; |
| 1388 | 1391 |
| 1389 return false; | 1392 return false; |
| 1390 } | 1393 } |
| 1391 #endif | 1394 #endif |
| 1392 | 1395 |
| 1393 } // namespace blink | 1396 } // namespace blink |
| OLD | NEW |