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