| 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 11 matching lines...) Expand all Loading... |
| 22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
| 23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "core/dom/StyleSheetScopingNodeList.h" | 29 #include "core/dom/StyleSheetScopingNodeList.h" |
| 30 | 30 |
| 31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
| 32 #include "core/dom/Node.h" | |
| 33 | 32 |
| 34 namespace WebCore { | 33 namespace WebCore { |
| 35 | 34 |
| 36 void StyleSheetScopingNodeList::add(ContainerNode* node) | 35 void StyleSheetScopingNodeList::add(ContainerNode* node) |
| 37 { | 36 { |
| 38 ASSERT(node && node->inDocument()); | 37 ASSERT(node && node->inDocument()); |
| 39 if (isTreeScopeRoot(node)) | 38 if (isTreeScopeRoot(node)) |
| 40 return; | 39 return; |
| 41 | 40 |
| 42 if (!m_scopingNodes) | 41 if (!m_scopingNodes) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 56 if (node->inDocument()) | 55 if (node->inDocument()) |
| 57 return; | 56 return; |
| 58 | 57 |
| 59 m_scopingNodes->remove(node); | 58 m_scopingNodes->remove(node); |
| 60 if (!m_scopingNodesRemoved) | 59 if (!m_scopingNodesRemoved) |
| 61 m_scopingNodesRemoved = adoptPtr(new ListHashSet<Node*, 4>()); | 60 m_scopingNodesRemoved = adoptPtr(new ListHashSet<Node*, 4>()); |
| 62 m_scopingNodesRemoved->add(node); | 61 m_scopingNodesRemoved->add(node); |
| 63 } | 62 } |
| 64 | 63 |
| 65 } | 64 } |
| OLD | NEW |