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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 3542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3553 { | 3553 { |
3554 if (m_cssTarget) | 3554 if (m_cssTarget) |
3555 m_cssTarget->didAffectSelector(AffectedSelectorTarget); | 3555 m_cssTarget->didAffectSelector(AffectedSelectorTarget); |
3556 m_cssTarget = n; | 3556 m_cssTarget = n; |
3557 if (n) | 3557 if (n) |
3558 n->didAffectSelector(AffectedSelectorTarget); | 3558 n->didAffectSelector(AffectedSelectorTarget); |
3559 } | 3559 } |
3560 | 3560 |
3561 void Document::registerNodeList(LiveNodeListBase* list) | 3561 void Document::registerNodeList(LiveNodeListBase* list) |
3562 { | 3562 { |
3563 if (list->hasIdNameCache()) | |
Inactive
2014/02/12 18:26:08
We only want to cause invalidation if the NodeList
| |
3564 m_nodeListCounts[InvalidateOnIdNameAttrChange]++; | |
3565 m_nodeListCounts[list->invalidationType()]++; | 3563 m_nodeListCounts[list->invalidationType()]++; |
3566 if (list->isRootedAtDocument()) | 3564 if (list->isRootedAtDocument()) |
3567 m_listsInvalidatedAtDocument.add(list); | 3565 m_listsInvalidatedAtDocument.add(list); |
3568 } | 3566 } |
3569 | 3567 |
3570 void Document::unregisterNodeList(LiveNodeListBase* list) | 3568 void Document::unregisterNodeList(LiveNodeListBase* list) |
3571 { | 3569 { |
3572 if (list->hasIdNameCache()) | |
3573 m_nodeListCounts[InvalidateOnIdNameAttrChange]--; | |
3574 m_nodeListCounts[list->invalidationType()]--; | 3570 m_nodeListCounts[list->invalidationType()]--; |
3575 if (list->isRootedAtDocument()) { | 3571 if (list->isRootedAtDocument()) { |
3576 ASSERT(m_listsInvalidatedAtDocument.contains(list)); | 3572 ASSERT(m_listsInvalidatedAtDocument.contains(list)); |
3577 m_listsInvalidatedAtDocument.remove(list); | 3573 m_listsInvalidatedAtDocument.remove(list); |
3578 } | 3574 } |
3579 } | 3575 } |
3580 | 3576 |
3581 void Document::attachNodeIterator(NodeIterator* ni) | 3577 void Document::attachNodeIterator(NodeIterator* ni) |
3582 { | 3578 { |
3583 m_nodeIterators.add(ni); | 3579 m_nodeIterators.add(ni); |
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5455 void Document::defaultEventHandler(Event* event) | 5451 void Document::defaultEventHandler(Event* event) |
5456 { | 5452 { |
5457 if (frame() && frame()->remotePlatformLayer()) { | 5453 if (frame() && frame()->remotePlatformLayer()) { |
5458 frame()->chromeClient().forwardInputEvent(this, event); | 5454 frame()->chromeClient().forwardInputEvent(this, event); |
5459 return; | 5455 return; |
5460 } | 5456 } |
5461 Node::defaultEventHandler(event); | 5457 Node::defaultEventHandler(event); |
5462 } | 5458 } |
5463 | 5459 |
5464 } // namespace WebCore | 5460 } // namespace WebCore |
OLD | NEW |