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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 notifyNodeInserted(*newChild, ChildrenChangeSourceParser); | 686 notifyNodeInserted(*newChild, ChildrenChangeSourceParser); |
687 } | 687 } |
688 | 688 |
689 void ContainerNode::notifyNodeInserted(Node& root, ChildrenChangeSource source) | 689 void ContainerNode::notifyNodeInserted(Node& root, ChildrenChangeSource source) |
690 { | 690 { |
691 #if DCHECK_IS_ON() | 691 #if DCHECK_IS_ON() |
692 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); | 692 DCHECK(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
693 #endif | 693 #endif |
694 DCHECK(!root.isShadowRoot()); | 694 DCHECK(!root.isShadowRoot()); |
695 | 695 |
| 696 if (document().containsV1ShadowTree()) |
| 697 root.checkSlotChangeAfterInserted(); |
| 698 |
696 InspectorInstrumentation::didInsertDOMNode(&root); | 699 InspectorInstrumentation::didInsertDOMNode(&root); |
697 | 700 |
698 NodeVector postInsertionNotificationTargets; | 701 NodeVector postInsertionNotificationTargets; |
699 notifyNodeInsertedInternal(root, postInsertionNotificationTargets); | 702 notifyNodeInsertedInternal(root, postInsertionNotificationTargets); |
700 | 703 |
701 childrenChanged(ChildrenChange::forInsertion(root, source)); | 704 childrenChanged(ChildrenChange::forInsertion(root, source)); |
702 | 705 |
703 for (const auto& targetNode : postInsertionNotificationTargets) { | 706 for (const auto& targetNode : postInsertionNotificationTargets) { |
704 if (targetNode->inShadowIncludingDocument()) | 707 if (targetNode->inShadowIncludingDocument()) |
705 targetNode->didNotifySubtreeInsertionsToDocument(); | 708 targetNode->didNotifySubtreeInsertionsToDocument(); |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 return true; | 1388 return true; |
1386 | 1389 |
1387 if (node->isElementNode() && toElement(node)->shadow()) | 1390 if (node->isElementNode() && toElement(node)->shadow()) |
1388 return true; | 1391 return true; |
1389 | 1392 |
1390 return false; | 1393 return false; |
1391 } | 1394 } |
1392 #endif | 1395 #endif |
1393 | 1396 |
1394 } // namespace blink | 1397 } // namespace blink |
OLD | NEW |