| 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 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2436 { | 2436 { |
| 2437 unsigned count = connectedSubframeCount(); | 2437 unsigned count = connectedSubframeCount(); |
| 2438 | 2438 |
| 2439 if (!count) | 2439 if (!count) |
| 2440 return; | 2440 return; |
| 2441 | 2441 |
| 2442 for (Node* node = parentOrShadowHostNode(); node; node = node->parentOrShado
wHostNode()) | 2442 for (Node* node = parentOrShadowHostNode(); node; node = node->parentOrShado
wHostNode()) |
| 2443 node->incrementConnectedSubframeCount(count); | 2443 node->incrementConnectedSubframeCount(count); |
| 2444 } | 2444 } |
| 2445 | 2445 |
| 2446 PassRefPtrWillBeRawPtr<NodeList> Node::getDestinationInsertionPoints() | 2446 PassRefPtrWillBeRawPtr<StaticNodeList> Node::getDestinationInsertionPoints() |
| 2447 { | 2447 { |
| 2448 document().updateDistributionForNodeIfNeeded(this); | 2448 document().updateDistributionForNodeIfNeeded(this); |
| 2449 WillBeHeapVector<RawPtrWillBeMember<InsertionPoint>, 8> insertionPoints; | 2449 WillBeHeapVector<RawPtrWillBeMember<InsertionPoint>, 8> insertionPoints; |
| 2450 collectDestinationInsertionPoints(*this, insertionPoints); | 2450 collectDestinationInsertionPoints(*this, insertionPoints); |
| 2451 WillBeHeapVector<RefPtrWillBeMember<Node> > filteredInsertionPoints; | 2451 WillBeHeapVector<RefPtrWillBeMember<Node> > filteredInsertionPoints; |
| 2452 for (size_t i = 0; i < insertionPoints.size(); ++i) { | 2452 for (size_t i = 0; i < insertionPoints.size(); ++i) { |
| 2453 InsertionPoint* insertionPoint = insertionPoints[i]; | 2453 InsertionPoint* insertionPoint = insertionPoints[i]; |
| 2454 ASSERT(insertionPoint->containingShadowRoot()); | 2454 ASSERT(insertionPoint->containingShadowRoot()); |
| 2455 if (insertionPoint->containingShadowRoot()->type() != ShadowRoot::UserAg
entShadowRoot) | 2455 if (insertionPoint->containingShadowRoot()->type() != ShadowRoot::UserAg
entShadowRoot) |
| 2456 filteredInsertionPoints.append(insertionPoint); | 2456 filteredInsertionPoints.append(insertionPoint); |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2572 node->showTreeForThis(); | 2572 node->showTreeForThis(); |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 void showNodePath(const WebCore::Node* node) | 2575 void showNodePath(const WebCore::Node* node) |
| 2576 { | 2576 { |
| 2577 if (node) | 2577 if (node) |
| 2578 node->showNodePathForThis(); | 2578 node->showNodePathForThis(); |
| 2579 } | 2579 } |
| 2580 | 2580 |
| 2581 #endif | 2581 #endif |
| OLD | NEW |