| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 unsigned selector_index, | 119 unsigned selector_index, |
| 120 unsigned position, | 120 unsigned position, |
| 121 AddRuleFlags add_rule_flags) | 121 AddRuleFlags add_rule_flags) |
| 122 : rule_(rule), | 122 : rule_(rule), |
| 123 selector_index_(selector_index), | 123 selector_index_(selector_index), |
| 124 is_last_in_array_(false), | 124 is_last_in_array_(false), |
| 125 position_(position), | 125 position_(position), |
| 126 specificity_(Selector().Specificity()), | 126 specificity_(Selector().Specificity()), |
| 127 contains_uncommon_attribute_selector_( | 127 contains_uncommon_attribute_selector_( |
| 128 blink::ContainsUncommonAttributeSelector(Selector())), | 128 blink::ContainsUncommonAttributeSelector(Selector())), |
| 129 link_match_type_(Selector().ComputeLinkMatchType()), | |
| 130 has_document_security_origin_(add_rule_flags & | 129 has_document_security_origin_(add_rule_flags & |
| 131 kRuleHasDocumentSecurityOrigin), | 130 kRuleHasDocumentSecurityOrigin), |
| 132 property_whitelist_( | 131 property_whitelist_( |
| 133 DeterminePropertyWhitelistType(add_rule_flags, Selector())), | 132 DeterminePropertyWhitelistType(add_rule_flags, Selector())), |
| 134 descendant_selector_identifier_hashes_() { | 133 descendant_selector_identifier_hashes_() { |
| 135 SelectorFilter::CollectIdentifierHashes( | 134 SelectorFilter::CollectIdentifierHashes( |
| 136 Selector(), descendant_selector_identifier_hashes_, | 135 Selector(), descendant_selector_identifier_hashes_, |
| 137 kMaximumIdentifierCount); | 136 kMaximumIdentifierCount); |
| 138 } | 137 } |
| 139 | 138 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 } | 454 } |
| 456 | 455 |
| 457 #ifndef NDEBUG | 456 #ifndef NDEBUG |
| 458 void RuleSet::Show() const { | 457 void RuleSet::Show() const { |
| 459 for (const auto& rule : all_rules_) | 458 for (const auto& rule : all_rules_) |
| 460 rule.Selector().Show(); | 459 rule.Selector().Show(); |
| 461 } | 460 } |
| 462 #endif | 461 #endif |
| 463 | 462 |
| 464 } // namespace blink | 463 } // namespace blink |
| OLD | NEW |