| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 } | 203 } |
| 204 | 204 |
| 205 bool RuleFeatureSet::classInvalidationRequiresSubtreeRecalc(const AtomicString&
className) | 205 bool RuleFeatureSet::classInvalidationRequiresSubtreeRecalc(const AtomicString&
className) |
| 206 { | 206 { |
| 207 DescendantInvalidationSet* set = m_classInvalidationSets.get(className); | 207 DescendantInvalidationSet* set = m_classInvalidationSets.get(className); |
| 208 return set && set->wholeSubtreeInvalid(); | 208 return set && set->wholeSubtreeInvalid(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 DescendantInvalidationSet& RuleFeatureSet::ensureClassInvalidationSet(const Atom
icString& className) | 211 DescendantInvalidationSet& RuleFeatureSet::ensureClassInvalidationSet(const Atom
icString& className) |
| 212 { | 212 { |
| 213 InvalidationSetMap::AddResult addResult = m_classInvalidationSets.add(classN
ame, 0); | 213 InvalidationSetMap::AddResult addResult = m_classInvalidationSets.add(classN
ame, nullptr); |
| 214 if (addResult.isNewEntry) | 214 if (addResult.isNewEntry) |
| 215 addResult.storedValue->value = DescendantInvalidationSet::create(); | 215 addResult.storedValue->value = DescendantInvalidationSet::create(); |
| 216 return *addResult.storedValue->value; | 216 return *addResult.storedValue->value; |
| 217 } | 217 } |
| 218 | 218 |
| 219 void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector) | 219 void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector) |
| 220 { | 220 { |
| 221 collectFeaturesFromSelector(selector, m_metadata, ProcessClasses); | 221 collectFeaturesFromSelector(selector, m_metadata, ProcessClasses); |
| 222 } | 222 } |
| 223 | 223 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 } | 464 } |
| 465 | 465 |
| 466 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize); | 466 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize); |
| 467 element->clearChildNeedsStyleInvalidation(); | 467 element->clearChildNeedsStyleInvalidation(); |
| 468 element->clearNeedsStyleInvalidation(); | 468 element->clearNeedsStyleInvalidation(); |
| 469 | 469 |
| 470 return thisElementNeedsStyleRecalc; | 470 return thisElementNeedsStyleRecalc; |
| 471 } | 471 } |
| 472 | 472 |
| 473 } // namespace WebCore | 473 } // namespace WebCore |
| OLD | NEW |