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, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "core/html/HTMLStyleElement.h" | 37 #include "core/html/HTMLStyleElement.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 TreeScopeStyleSheetCollection::TreeScopeStyleSheetCollection(TreeScope& treeScop
e) | 41 TreeScopeStyleSheetCollection::TreeScopeStyleSheetCollection(TreeScope& treeScop
e) |
42 : m_treeScope(treeScope) | 42 : m_treeScope(treeScope) |
43 , m_hadActiveLoadingStylesheet(false) | 43 , m_hadActiveLoadingStylesheet(false) |
44 { | 44 { |
45 } | 45 } |
46 | 46 |
47 void TreeScopeStyleSheetCollection::addStyleSheetCandidateNode(Node* node, bool
createdByParser) | 47 void TreeScopeStyleSheetCollection::addStyleSheetCandidateNode(Node* node) |
48 { | 48 { |
49 if (!node->inDocument()) | 49 if (!node->inDocument()) |
50 return; | 50 return; |
51 | 51 |
52 m_styleSheetCandidateNodes.add(node); | 52 m_styleSheetCandidateNodes.add(node); |
53 } | 53 } |
54 | 54 |
55 TreeScopeStyleSheetCollection::StyleResolverUpdateType TreeScopeStyleSheetCollec
tion::compareStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet
>>& oldStyleSheets, const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& n
ewStylesheets, WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& addedSh
eets) | 55 TreeScopeStyleSheetCollection::StyleResolverUpdateType TreeScopeStyleSheetCollec
tion::compareStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet
>>& oldStyleSheets, const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& n
ewStylesheets, WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>& addedSh
eets) |
56 { | 56 { |
57 unsigned newStyleSheetCount = newStylesheets.size(); | 57 unsigned newStyleSheetCount = newStylesheets.size(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 168 } |
169 | 169 |
170 DEFINE_TRACE(TreeScopeStyleSheetCollection) | 170 DEFINE_TRACE(TreeScopeStyleSheetCollection) |
171 { | 171 { |
172 visitor->trace(m_treeScope); | 172 visitor->trace(m_treeScope); |
173 visitor->trace(m_styleSheetCandidateNodes); | 173 visitor->trace(m_styleSheetCandidateNodes); |
174 StyleSheetCollection::trace(visitor); | 174 StyleSheetCollection::trace(visitor); |
175 } | 175 } |
176 | 176 |
177 } // namespace blink | 177 } // namespace blink |
OLD | NEW |