Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: third_party/WebKit/Source/core/css/RuleFeature.cpp

Issue 1368313005: Missing clear() for pseudo invalidation sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/invalidation/removed-hover-shadow-rule-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 540 }
541 541
542 void RuleFeatureSet::clear() 542 void RuleFeatureSet::clear()
543 { 543 {
544 siblingRules.clear(); 544 siblingRules.clear();
545 uncommonAttributeRules.clear(); 545 uncommonAttributeRules.clear();
546 m_metadata.clear(); 546 m_metadata.clear();
547 m_classInvalidationSets.clear(); 547 m_classInvalidationSets.clear();
548 m_attributeInvalidationSets.clear(); 548 m_attributeInvalidationSets.clear();
549 m_idInvalidationSets.clear(); 549 m_idInvalidationSets.clear();
550 m_pseudoInvalidationSets.clear();
550 } 551 }
551 552
552 void RuleFeatureSet::collectInvalidationSetsForClass(InvalidationSetVector& inva lidationSets, Element& element, const AtomicString& className) const 553 void RuleFeatureSet::collectInvalidationSetsForClass(InvalidationSetVector& inva lidationSets, Element& element, const AtomicString& className) const
553 { 554 {
554 if (RefPtrWillBeRawPtr<InvalidationSet> invalidationSet = m_classInvalidatio nSets.get(className)) { 555 if (RefPtrWillBeRawPtr<InvalidationSet> invalidationSet = m_classInvalidatio nSets.get(className)) {
555 TRACE_SCHEDULE_STYLE_INVALIDATION(element, *invalidationSet, classChange , className); 556 TRACE_SCHEDULE_STYLE_INVALIDATION(element, *invalidationSet, classChange , className);
556 invalidationSets.append(invalidationSet); 557 invalidationSets.append(invalidationSet);
557 } 558 }
558 } 559 }
559 560
(...skipping 27 matching lines...) Expand all
587 visitor->trace(siblingRules); 588 visitor->trace(siblingRules);
588 visitor->trace(uncommonAttributeRules); 589 visitor->trace(uncommonAttributeRules);
589 visitor->trace(m_classInvalidationSets); 590 visitor->trace(m_classInvalidationSets);
590 visitor->trace(m_attributeInvalidationSets); 591 visitor->trace(m_attributeInvalidationSets);
591 visitor->trace(m_idInvalidationSets); 592 visitor->trace(m_idInvalidationSets);
592 visitor->trace(m_pseudoInvalidationSets); 593 visitor->trace(m_pseudoInvalidationSets);
593 #endif 594 #endif
594 } 595 }
595 596
596 } // namespace blink 597 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/invalidation/removed-hover-shadow-rule-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698