| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 } | 387 } |
| 388 | 388 |
| 389 DescendantInvalidationSet& RuleFeatureSet::ensurePseudoInvalidationSet(CSSSelect
or::PseudoType pseudoType) | 389 DescendantInvalidationSet& RuleFeatureSet::ensurePseudoInvalidationSet(CSSSelect
or::PseudoType pseudoType) |
| 390 { | 390 { |
| 391 PseudoTypeInvalidationSetMap::AddResult addResult = m_pseudoInvalidationSets
.add(pseudoType, nullptr); | 391 PseudoTypeInvalidationSetMap::AddResult addResult = m_pseudoInvalidationSets
.add(pseudoType, nullptr); |
| 392 if (addResult.isNewEntry) | 392 if (addResult.isNewEntry) |
| 393 addResult.storedValue->value = DescendantInvalidationSet::create(); | 393 addResult.storedValue->value = DescendantInvalidationSet::create(); |
| 394 return *addResult.storedValue->value; | 394 return *addResult.storedValue->value; |
| 395 } | 395 } |
| 396 | 396 |
| 397 void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector) | |
| 398 { | |
| 399 collectFeaturesFromSelector(selector, m_metadata, UseSubtreeStyleChange); | |
| 400 } | |
| 401 | |
| 402 void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector, Ru
leFeatureSet::FeatureMetadata& metadata, InvalidationSetMode mode) | 397 void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector, Ru
leFeatureSet::FeatureMetadata& metadata, InvalidationSetMode mode) |
| 403 { | 398 { |
| 404 unsigned maxDirectAdjacentSelectors = 0; | 399 unsigned maxDirectAdjacentSelectors = 0; |
| 405 | 400 |
| 406 for (const CSSSelector* current = &selector; current; current = current->tag
History()) { | 401 for (const CSSSelector* current = &selector; current; current = current->tag
History()) { |
| 407 if (mode != AddFeatures) { | 402 if (mode != AddFeatures) { |
| 408 if (DescendantInvalidationSet* invalidationSet = invalidationSetForS
elector(*current)) { | 403 if (DescendantInvalidationSet* invalidationSet = invalidationSetForS
elector(*current)) { |
| 409 if (mode == UseSubtreeStyleChange) | 404 if (mode == UseSubtreeStyleChange) |
| 410 invalidationSet->setWholeSubtreeInvalid(); | 405 invalidationSet->setWholeSubtreeInvalid(); |
| 411 } | 406 } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 visitor->trace(uncommonAttributeRules); | 565 visitor->trace(uncommonAttributeRules); |
| 571 visitor->trace(m_classInvalidationSets); | 566 visitor->trace(m_classInvalidationSets); |
| 572 visitor->trace(m_attributeInvalidationSets); | 567 visitor->trace(m_attributeInvalidationSets); |
| 573 visitor->trace(m_idInvalidationSets); | 568 visitor->trace(m_idInvalidationSets); |
| 574 visitor->trace(m_pseudoInvalidationSets); | 569 visitor->trace(m_pseudoInvalidationSets); |
| 575 visitor->trace(m_styleInvalidator); | 570 visitor->trace(m_styleInvalidator); |
| 576 #endif | 571 #endif |
| 577 } | 572 } |
| 578 | 573 |
| 579 } // namespace blink | 574 } // namespace blink |
| OLD | NEW |