| 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 if (&sibling_features == &descendant_features) | 1210 if (&sibling_features == &descendant_features) |
| 1211 universal_set.SetInvalidatesSelf(); | 1211 universal_set.SetInvalidatesSelf(); |
| 1212 else | 1212 else |
| 1213 AddFeaturesToInvalidationSet(universal_set.EnsureSiblingDescendants(), | 1213 AddFeaturesToInvalidationSet(universal_set.EnsureSiblingDescendants(), |
| 1214 descendant_features); | 1214 descendant_features); |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 DEFINE_TRACE(RuleFeatureSet) { | 1217 DEFINE_TRACE(RuleFeatureSet) { |
| 1218 visitor->Trace(sibling_rules_); | 1218 visitor->Trace(sibling_rules_); |
| 1219 visitor->Trace(uncommon_attribute_rules_); | 1219 visitor->Trace(uncommon_attribute_rules_); |
| 1220 visitor->Trace(viewport_dependent_media_query_results_); | |
| 1221 visitor->Trace(device_dependent_media_query_results_); | |
| 1222 } | 1220 } |
| 1223 | 1221 |
| 1224 void RuleFeatureSet::InvalidationSetFeatures::Add( | 1222 void RuleFeatureSet::InvalidationSetFeatures::Add( |
| 1225 const InvalidationSetFeatures& other) { | 1223 const InvalidationSetFeatures& other) { |
| 1226 classes.AppendVector(other.classes); | 1224 classes.AppendVector(other.classes); |
| 1227 attributes.AppendVector(other.attributes); | 1225 attributes.AppendVector(other.attributes); |
| 1228 ids.AppendVector(other.ids); | 1226 ids.AppendVector(other.ids); |
| 1229 tag_names.AppendVector(other.tag_names); | 1227 tag_names.AppendVector(other.tag_names); |
| 1230 max_direct_adjacent_selectors = std::max(max_direct_adjacent_selectors, | 1228 max_direct_adjacent_selectors = std::max(max_direct_adjacent_selectors, |
| 1231 other.max_direct_adjacent_selectors); | 1229 other.max_direct_adjacent_selectors); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1242 bool RuleFeatureSet::InvalidationSetFeatures::HasFeatures() const { | 1240 bool RuleFeatureSet::InvalidationSetFeatures::HasFeatures() const { |
| 1243 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty() || | 1241 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty() || |
| 1244 !tag_names.IsEmpty() || custom_pseudo_element; | 1242 !tag_names.IsEmpty() || custom_pseudo_element; |
| 1245 } | 1243 } |
| 1246 | 1244 |
| 1247 bool RuleFeatureSet::InvalidationSetFeatures::HasIdClassOrAttribute() const { | 1245 bool RuleFeatureSet::InvalidationSetFeatures::HasIdClassOrAttribute() const { |
| 1248 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty(); | 1246 return !classes.IsEmpty() || !attributes.IsEmpty() || !ids.IsEmpty(); |
| 1249 } | 1247 } |
| 1250 | 1248 |
| 1251 } // namespace blink | 1249 } // namespace blink |
| OLD | NEW |