| 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 | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "core/css/CSSSelector.h" | 36 #include "core/css/CSSSelector.h" |
| 37 #include "core/css/CSSSelectorList.h" | 37 #include "core/css/CSSSelectorList.h" |
| 38 #include "core/css/CSSValueList.h" | 38 #include "core/css/CSSValueList.h" |
| 39 #include "core/css/RuleSet.h" | 39 #include "core/css/RuleSet.h" |
| 40 #include "core/css/StylePropertySet.h" | 40 #include "core/css/StylePropertySet.h" |
| 41 #include "core/css/StyleRule.h" | 41 #include "core/css/StyleRule.h" |
| 42 #include "core/css/invalidation/InvalidationSet.h" | 42 #include "core/css/invalidation/InvalidationSet.h" |
| 43 #include "core/dom/Element.h" | 43 #include "core/dom/Element.h" |
| 44 #include "core/dom/Node.h" | 44 #include "core/dom/Node.h" |
| 45 #include "core/inspector/InspectorTraceEvents.h" | 45 #include "core/inspector/InspectorTraceEvents.h" |
| 46 #include "wtf/BitVector.h" | 46 #include "platform/wtf/BitVector.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 namespace { | 50 namespace { |
| 51 | 51 |
| 52 bool SupportsInvalidation(CSSSelector::MatchType match) { | 52 bool SupportsInvalidation(CSSSelector::MatchType match) { |
| 53 switch (match) { | 53 switch (match) { |
| 54 case CSSSelector::kTag: | 54 case CSSSelector::kTag: |
| 55 case CSSSelector::kId: | 55 case CSSSelector::kId: |
| 56 case CSSSelector::kClass: | 56 case CSSSelector::kClass: |
| (...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 bool RuleFeatureSet::InvalidationSetFeatures::HasFeatures() const { | 1240 bool RuleFeatureSet::InvalidationSetFeatures::HasFeatures() const { |
| 1241 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty() || | 1241 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty() || |
| 1242 !tag_names.IsEmpty() || custom_pseudo_element; | 1242 !tag_names.IsEmpty() || custom_pseudo_element; |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 bool RuleFeatureSet::InvalidationSetFeatures::HasIdClassOrAttribute() const { | 1245 bool RuleFeatureSet::InvalidationSetFeatures::HasIdClassOrAttribute() const { |
| 1246 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty(); | 1246 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty(); |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 } // namespace blink | 1249 } // namespace blink |
| OLD | NEW |