| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * | 10 * |
| (...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1954 const QualifiedName* attributeName) { | 1954 const QualifiedName* attributeName) { |
| 1955 if (!registry) | 1955 if (!registry) |
| 1956 return; | 1956 return; |
| 1957 | 1957 |
| 1958 for (const auto& registration : *registry) { | 1958 for (const auto& registration : *registry) { |
| 1959 if (registration->shouldReceiveMutationFrom(target, type, attributeName)) { | 1959 if (registration->shouldReceiveMutationFrom(target, type, attributeName)) { |
| 1960 MutationRecordDeliveryOptions deliveryOptions = | 1960 MutationRecordDeliveryOptions deliveryOptions = |
| 1961 registration->deliveryOptions(); | 1961 registration->deliveryOptions(); |
| 1962 HeapHashMap<Member<MutationObserver>, | 1962 HeapHashMap<Member<MutationObserver>, |
| 1963 MutationRecordDeliveryOptions>::AddResult result = | 1963 MutationRecordDeliveryOptions>::AddResult result = |
| 1964 observers.add(®istration->observer(), deliveryOptions); | 1964 observers.insert(®istration->observer(), deliveryOptions); |
| 1965 if (!result.isNewEntry) | 1965 if (!result.isNewEntry) |
| 1966 result.storedValue->value |= deliveryOptions; | 1966 result.storedValue->value |= deliveryOptions; |
| 1967 } | 1967 } |
| 1968 } | 1968 } |
| 1969 } | 1969 } |
| 1970 | 1970 |
| 1971 void Node::getRegisteredMutationObserversOfType( | 1971 void Node::getRegisteredMutationObserversOfType( |
| 1972 HeapHashMap<Member<MutationObserver>, MutationRecordDeliveryOptions>& | 1972 HeapHashMap<Member<MutationObserver>, MutationRecordDeliveryOptions>& |
| 1973 observers, | 1973 observers, |
| 1974 MutationObserver::MutationType type, | 1974 MutationObserver::MutationType type, |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2566 if (node) { | 2566 if (node) { |
| 2567 std::stringstream stream; | 2567 std::stringstream stream; |
| 2568 node->printNodePathTo(stream); | 2568 node->printNodePathTo(stream); |
| 2569 LOG(INFO) << stream.str(); | 2569 LOG(INFO) << stream.str(); |
| 2570 } else { | 2570 } else { |
| 2571 LOG(INFO) << "Cannot showNodePath for <null>"; | 2571 LOG(INFO) << "Cannot showNodePath for <null>"; |
| 2572 } | 2572 } |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 #endif | 2575 #endif |
| OLD | NEW |