| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return PropertyWhitelistNone; | 105 return PropertyWhitelistNone; |
| 106 } | 106 } |
| 107 | 107 |
| 108 RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, A
ddRuleFlags addRuleFlags) | 108 RuleData::RuleData(StyleRule* rule, unsigned selectorIndex, unsigned position, A
ddRuleFlags addRuleFlags) |
| 109 : m_rule(rule) | 109 : m_rule(rule) |
| 110 , m_selectorIndex(selectorIndex) | 110 , m_selectorIndex(selectorIndex) |
| 111 , m_isLastInArray(false) | 111 , m_isLastInArray(false) |
| 112 , m_position(position) | 112 , m_position(position) |
| 113 , m_specificity(selector().specificity()) | 113 , m_specificity(selector().specificity()) |
| 114 , m_containsUncommonAttributeSelector(blink::containsUncommonAttributeSelect
or(selector())) | 114 , m_containsUncommonAttributeSelector(blink::containsUncommonAttributeSelect
or(selector())) |
| 115 , m_linkMatchType(selector().computeLinkMatchType()) | |
| 116 , m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin) | 115 , m_hasDocumentSecurityOrigin(addRuleFlags & RuleHasDocumentSecurityOrigin) |
| 117 , m_propertyWhitelistType(determinePropertyWhitelistType(addRuleFlags, selec
tor())) | 116 , m_propertyWhitelistType(determinePropertyWhitelistType(addRuleFlags, selec
tor())) |
| 118 { | 117 { |
| 119 ASSERT(m_position == position); | 118 ASSERT(m_position == position); |
| 120 ASSERT(m_selectorIndex == selectorIndex); | 119 ASSERT(m_selectorIndex == selectorIndex); |
| 121 SelectorFilter::collectIdentifierHashes(selector(), m_descendantSelectorIden
tifierHashes, maximumIdentifierCount); | 120 SelectorFilter::collectIdentifierHashes(selector(), m_descendantSelectorIden
tifierHashes, maximumIdentifierCount); |
| 122 } | 121 } |
| 123 | 122 |
| 124 void RuleSet::addToRuleSet(const AtomicString& key, PendingRuleMap& map, const R
uleData& ruleData) | 123 void RuleSet::addToRuleSet(const AtomicString& key, PendingRuleMap& map, const R
uleData& ruleData) |
| 125 { | 124 { |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 395 |
| 397 #ifndef NDEBUG | 396 #ifndef NDEBUG |
| 398 void RuleSet::show() | 397 void RuleSet::show() |
| 399 { | 398 { |
| 400 for (const auto& rule: m_allRules) | 399 for (const auto& rule: m_allRules) |
| 401 rule.selector().show(); | 400 rule.selector().show(); |
| 402 } | 401 } |
| 403 #endif | 402 #endif |
| 404 | 403 |
| 405 } // namespace blink | 404 } // namespace blink |
| OLD | NEW |