| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 if (current->isShadowSelector()) | 480 if (current->isShadowSelector()) |
| 481 descendantFeatures.treeBoundaryCrossing = true; | 481 descendantFeatures.treeBoundaryCrossing = true; |
| 482 | 482 |
| 483 if (!current->isAdjacentSelector()) { | 483 if (!current->isAdjacentSelector()) { |
| 484 lastCompoundSelectorInAdjacentChain = current->tagHistory(); | 484 lastCompoundSelectorInAdjacentChain = current->tagHistory(); |
| 485 siblingFeatures = nullptr; | 485 siblingFeatures = nullptr; |
| 486 continue; | 486 continue; |
| 487 } | 487 } |
| 488 | 488 |
| 489 if (siblingFeatures) { | 489 if (siblingFeatures) { |
| 490 if (siblingFeatures->maxDirectAdjacentSelectors == std::numeric_limi
ts<unsigned>::max()) | 490 if (siblingFeatures->maxDirectAdjacentSelectors == UINT_MAX) |
| 491 continue; | 491 continue; |
| 492 | 492 |
| 493 if (current->relation() == CSSSelector::DirectAdjacent) | 493 if (current->relation() == CSSSelector::DirectAdjacent) |
| 494 siblingFeatures->maxDirectAdjacentSelectors++; | 494 siblingFeatures->maxDirectAdjacentSelectors++; |
| 495 else | 495 else |
| 496 siblingFeatures->maxDirectAdjacentSelectors = std::numeric_limit
s<unsigned>::max(); | 496 siblingFeatures->maxDirectAdjacentSelectors = UINT_MAX; |
| 497 continue; | 497 continue; |
| 498 } | 498 } |
| 499 | 499 |
| 500 localFeatures = InvalidationSetFeatures(); | 500 localFeatures = InvalidationSetFeatures(); |
| 501 auto result = extractInvalidationSetFeatures(*lastCompoundSelectorInAdja
centChain, localFeatures, false); | 501 auto result = extractInvalidationSetFeatures(*lastCompoundSelectorInAdja
centChain, localFeatures, false); |
| 502 ASSERT(result.first); | 502 ASSERT(result.first); |
| 503 localFeatures.forceSubtree = result.second == ForceSubtree; | 503 localFeatures.forceSubtree = result.second == ForceSubtree; |
| 504 siblingFeatures = &localFeatures; | 504 siblingFeatures = &localFeatures; |
| 505 } | 505 } |
| 506 } | 506 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 | 655 |
| 656 DEFINE_TRACE(RuleFeatureSet) | 656 DEFINE_TRACE(RuleFeatureSet) |
| 657 { | 657 { |
| 658 #if ENABLE(OILPAN) | 658 #if ENABLE(OILPAN) |
| 659 visitor->trace(siblingRules); | 659 visitor->trace(siblingRules); |
| 660 visitor->trace(uncommonAttributeRules); | 660 visitor->trace(uncommonAttributeRules); |
| 661 #endif | 661 #endif |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace blink | 664 } // namespace blink |
| OLD | NEW |