| 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 void StyleEngine::scheduleInvalidationsForRemovedSibling(Element* beforeElement,
Element& removedElement, Element& afterElement) | 729 void StyleEngine::scheduleInvalidationsForRemovedSibling(Element* beforeElement,
Element& removedElement, Element& afterElement) |
| 730 { | 730 { |
| 731 unsigned affectedSiblings = afterElement.parentNode()->childrenAffectedByInd
irectAdjacentRules() ? UINT_MAX : m_maxDirectAdjacentSelectors; | 731 unsigned affectedSiblings = afterElement.parentNode()->childrenAffectedByInd
irectAdjacentRules() ? UINT_MAX : m_maxDirectAdjacentSelectors; |
| 732 | 732 |
| 733 ContainerNode* schedulingParent = afterElement.parentElementOrShadowRoot(); | 733 ContainerNode* schedulingParent = afterElement.parentElementOrShadowRoot(); |
| 734 if (!schedulingParent) | 734 if (!schedulingParent) |
| 735 return; | 735 return; |
| 736 | 736 |
| 737 scheduleSiblingInvalidationsForElement(removedElement, *schedulingParent, 1)
; | 737 scheduleSiblingInvalidationsForElement(removedElement, *schedulingParent, 1)
; |
| 738 | 738 |
| 739 for (unsigned i = 2; beforeElement && i <= affectedSiblings; i++, beforeElem
ent = ElementTraversal::previousSibling(*beforeElement)) | 739 for (unsigned i = 1; beforeElement && i <= affectedSiblings; i++, beforeElem
ent = ElementTraversal::previousSibling(*beforeElement)) |
| 740 scheduleSiblingInvalidationsForElement(*beforeElement, *schedulingParent
, i); | 740 scheduleSiblingInvalidationsForElement(*beforeElement, *schedulingParent
, i); |
| 741 } | 741 } |
| 742 | 742 |
| 743 void StyleEngine::scheduleNthPseudoInvalidations(ContainerNode& nthParent) | 743 void StyleEngine::scheduleNthPseudoInvalidations(ContainerNode& nthParent) |
| 744 { | 744 { |
| 745 InvalidationLists invalidationLists; | 745 InvalidationLists invalidationLists; |
| 746 ensureResolver().ensureUpdatedRuleFeatureSet().collectNthInvalidationSet(inv
alidationLists); | 746 ensureResolver().ensureUpdatedRuleFeatureSet().collectNthInvalidationSet(inv
alidationLists); |
| 747 m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, nthPar
ent); | 747 m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, nthPar
ent); |
| 748 } | 748 } |
| 749 | 749 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 | 833 |
| 834 DEFINE_TRACE_WRAPPERS(StyleEngine) | 834 DEFINE_TRACE_WRAPPERS(StyleEngine) |
| 835 { | 835 { |
| 836 for (auto sheet : m_injectedAuthorStyleSheets) { | 836 for (auto sheet : m_injectedAuthorStyleSheets) { |
| 837 visitor->traceWrappers(sheet); | 837 visitor->traceWrappers(sheet); |
| 838 } | 838 } |
| 839 visitor->traceWrappers(m_documentStyleSheetCollection); | 839 visitor->traceWrappers(m_documentStyleSheetCollection); |
| 840 } | 840 } |
| 841 | 841 |
| 842 } // namespace blink | 842 } // namespace blink |
| OLD | NEW |