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) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 void classChangedForElement(const SpaceSplitString& changedClasses, Element&
); | 173 void classChangedForElement(const SpaceSplitString& changedClasses, Element&
); |
174 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS
plitString& newClasses, Element&); | 174 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS
plitString& newClasses, Element&); |
175 void attributeChangedForElement(const QualifiedName& attributeName, Element&
); | 175 void attributeChangedForElement(const QualifiedName& attributeName, Element&
); |
176 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI
d, Element&); | 176 void idChangedForElement(const AtomicString& oldId, const AtomicString& newI
d, Element&); |
177 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); | 177 void pseudoStateChangedForElement(CSSSelector::PseudoType, Element&); |
178 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul
ingParent, unsigned minDirectAdjacent); | 178 void scheduleSiblingInvalidationsForElement(Element&, ContainerNode& schedul
ingParent, unsigned minDirectAdjacent); |
179 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element
& insertedElement); | 179 void scheduleInvalidationsForInsertedSibling(Element* beforeElement, Element
& insertedElement); |
180 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element&
removedElement, Element& afterElement); | 180 void scheduleInvalidationsForRemovedSibling(Element* beforeElement, Element&
removedElement, Element& afterElement); |
181 void scheduleNthPseudoInvalidations(ContainerNode&); | 181 void scheduleNthPseudoInvalidations(ContainerNode&); |
| 182 void scheduleInvalidationsForRuleSets(TreeScope&, const HeapVector<Member<co
nst RuleSet>>&); |
182 | 183 |
183 unsigned styleForElementCount() const { return m_styleForElementCount; } | 184 unsigned styleForElementCount() const { return m_styleForElementCount; } |
184 void incStyleForElementCount() { m_styleForElementCount++; } | 185 void incStyleForElementCount() { m_styleForElementCount++; } |
185 | 186 |
186 StyleResolverStats* stats() { return m_styleResolverStats.get(); } | 187 StyleResolverStats* stats() { return m_styleResolverStats.get(); } |
187 void setStatsEnabled(bool); | 188 void setStatsEnabled(bool); |
188 | 189 |
189 DECLARE_VIRTUAL_TRACE(); | 190 DECLARE_VIRTUAL_TRACE(); |
190 | 191 |
191 DECLARE_TRACE_WRAPPERS(); | 192 DECLARE_TRACE_WRAPPERS(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 224 } |
224 | 225 |
225 DocumentStyleSheetCollection* documentStyleSheetCollection() | 226 DocumentStyleSheetCollection* documentStyleSheetCollection() |
226 { | 227 { |
227 return m_documentStyleSheetCollection.get(); | 228 return m_documentStyleSheetCollection.get(); |
228 } | 229 } |
229 | 230 |
230 void updateActiveStyleSheetsInShadow(StyleResolverUpdateMode, TreeScope*, Un
orderedTreeScopeSet& treeScopesRemoved); | 231 void updateActiveStyleSheetsInShadow(StyleResolverUpdateMode, TreeScope*, Un
orderedTreeScopeSet& treeScopesRemoved); |
231 | 232 |
232 bool shouldSkipInvalidationFor(const Element&) const; | 233 bool shouldSkipInvalidationFor(const Element&) const; |
| 234 void scheduleRuleSetInvalidationsForElement(Element&, const HeapVector<Membe
r<const RuleSet>>&); |
233 | 235 |
234 Member<Document> m_document; | 236 Member<Document> m_document; |
235 bool m_isMaster; | 237 bool m_isMaster; |
236 | 238 |
237 // Track the number of currently loading top-level stylesheets needed for la
yout. | 239 // Track the number of currently loading top-level stylesheets needed for la
yout. |
238 // Sheets loaded using the @import directive are not included in this count. | 240 // Sheets loaded using the @import directive are not included in this count. |
239 // We use this count of pending sheets to detect when we can begin attaching | 241 // We use this count of pending sheets to detect when we can begin attaching |
240 // elements and when it is safe to execute scripts. | 242 // elements and when it is safe to execute scripts. |
241 int m_pendingScriptBlockingStylesheets = 0; | 243 int m_pendingScriptBlockingStylesheets = 0; |
242 int m_pendingRenderBlockingStylesheets = 0; | 244 int m_pendingRenderBlockingStylesheets = 0; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 278 |
277 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 279 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
278 unsigned m_styleForElementCount = 0; | 280 unsigned m_styleForElementCount = 0; |
279 | 281 |
280 friend class StyleEngineTest; | 282 friend class StyleEngineTest; |
281 }; | 283 }; |
282 | 284 |
283 } // namespace blink | 285 } // namespace blink |
284 | 286 |
285 #endif | 287 #endif |
OLD | NEW |