| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 } | 199 } |
| 200 } | 200 } |
| 201 | 201 |
| 202 RuleFeature::RuleFeature(StyleRule* rule, unsigned selectorIndex, bool hasDocume
ntSecurityOrigin) | 202 RuleFeature::RuleFeature(StyleRule* rule, unsigned selectorIndex, bool hasDocume
ntSecurityOrigin) |
| 203 : rule(rule) | 203 : rule(rule) |
| 204 , selectorIndex(selectorIndex) | 204 , selectorIndex(selectorIndex) |
| 205 , hasDocumentSecurityOrigin(hasDocumentSecurityOrigin) | 205 , hasDocumentSecurityOrigin(hasDocumentSecurityOrigin) |
| 206 { | 206 { |
| 207 } | 207 } |
| 208 | 208 |
| 209 void RuleFeature::trace(Visitor* visitor) | 209 DEFINE_TRACE(RuleFeature) |
| 210 { | 210 { |
| 211 visitor->trace(rule); | 211 visitor->trace(rule); |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool RuleFeatureSet::extractInvalidationSetFeature(const CSSSelector& selector,
InvalidationSetFeatures& features) | 214 bool RuleFeatureSet::extractInvalidationSetFeature(const CSSSelector& selector,
InvalidationSetFeatures& features) |
| 215 { | 215 { |
| 216 if (selector.match() == CSSSelector::Tag && selector.tagQName().localName()
!= starAtom) | 216 if (selector.match() == CSSSelector::Tag && selector.tagQName().localName()
!= starAtom) |
| 217 features.tagName = selector.tagQName().localName(); | 217 features.tagName = selector.tagQName().localName(); |
| 218 else if (selector.match() == CSSSelector::Id) | 218 else if (selector.match() == CSSSelector::Id) |
| 219 features.id = selector.value(); | 219 features.id = selector.value(); |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 TRACE_SCHEDULE_STYLE_INVALIDATION(element, *invalidationSet, classChange
, className); | 631 TRACE_SCHEDULE_STYLE_INVALIDATION(element, *invalidationSet, classChange
, className); |
| 632 m_styleInvalidator.scheduleInvalidation(invalidationSet, element); | 632 m_styleInvalidator.scheduleInvalidation(invalidationSet, element); |
| 633 } | 633 } |
| 634 } | 634 } |
| 635 | 635 |
| 636 StyleInvalidator& RuleFeatureSet::styleInvalidator() | 636 StyleInvalidator& RuleFeatureSet::styleInvalidator() |
| 637 { | 637 { |
| 638 return m_styleInvalidator; | 638 return m_styleInvalidator; |
| 639 } | 639 } |
| 640 | 640 |
| 641 void RuleFeatureSet::trace(Visitor* visitor) | 641 DEFINE_TRACE(RuleFeatureSet) |
| 642 { | 642 { |
| 643 #if ENABLE(OILPAN) | 643 #if ENABLE(OILPAN) |
| 644 visitor->trace(siblingRules); | 644 visitor->trace(siblingRules); |
| 645 visitor->trace(uncommonAttributeRules); | 645 visitor->trace(uncommonAttributeRules); |
| 646 visitor->trace(m_classInvalidationSets); | 646 visitor->trace(m_classInvalidationSets); |
| 647 visitor->trace(m_attributeInvalidationSets); | 647 visitor->trace(m_attributeInvalidationSets); |
| 648 visitor->trace(m_idInvalidationSets); | 648 visitor->trace(m_idInvalidationSets); |
| 649 visitor->trace(m_pseudoInvalidationSets); | 649 visitor->trace(m_pseudoInvalidationSets); |
| 650 visitor->trace(m_styleInvalidator); | 650 visitor->trace(m_styleInvalidator); |
| 651 #endif | 651 #endif |
| 652 } | 652 } |
| 653 | 653 |
| 654 } // namespace blink | 654 } // namespace blink |
| OLD | NEW |