| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 234 } |
| 235 } else if (!foundSiblingSelector && selector->isSiblingSelector()) | 235 } else if (!foundSiblingSelector && selector->isSiblingSelector()) |
| 236 foundSiblingSelector = true; | 236 foundSiblingSelector = true; |
| 237 } | 237 } |
| 238 if (foundSiblingSelector) | 238 if (foundSiblingSelector) |
| 239 features.siblingRules.append(RuleFeature(ruleData.rule(), ruleData.selec
torIndex(), ruleData.hasDocumentSecurityOrigin())); | 239 features.siblingRules.append(RuleFeature(ruleData.rule(), ruleData.selec
torIndex(), ruleData.hasDocumentSecurityOrigin())); |
| 240 if (ruleData.containsUncommonAttributeSelector()) | 240 if (ruleData.containsUncommonAttributeSelector()) |
| 241 features.uncommonAttributeRules.append(RuleFeature(ruleData.rule(), rule
Data.selectorIndex(), ruleData.hasDocumentSecurityOrigin())); | 241 features.uncommonAttributeRules.append(RuleFeature(ruleData.rule(), rule
Data.selectorIndex(), ruleData.hasDocumentSecurityOrigin())); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void RuleSet::addToRuleSet(AtomicStringImpl* key, PendingRuleMap& map, const Rul
eData& ruleData) | 244 void RuleSet::addToRuleSet(StringImpl* key, PendingRuleMap& map, const RuleData&
ruleData) |
| 245 { | 245 { |
| 246 if (!key) | 246 if (!key) |
| 247 return; | 247 return; |
| 248 OwnPtr<LinkedStack<RuleData> >& rules = map.add(key, nullptr).iterator->valu
e; | 248 OwnPtr<LinkedStack<RuleData> >& rules = map.add(key, nullptr).iterator->valu
e; |
| 249 if (!rules) | 249 if (!rules) |
| 250 rules = adoptPtr(new LinkedStack<RuleData>); | 250 rules = adoptPtr(new LinkedStack<RuleData>); |
| 251 rules->push(ruleData); | 251 rules->push(ruleData); |
| 252 } | 252 } |
| 253 | 253 |
| 254 bool RuleSet::findBestRuleSetAndAdd(const CSSSelector* component, RuleData& rule
Data) | 254 bool RuleSet::findBestRuleSetAndAdd(const CSSSelector* component, RuleData& rule
Data) |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 compactPendingRules(pendingRules->shadowPseudoElementRules, m_shadowPseudoEl
ementRules); | 453 compactPendingRules(pendingRules->shadowPseudoElementRules, m_shadowPseudoEl
ementRules); |
| 454 m_linkPseudoClassRules.shrinkToFit(); | 454 m_linkPseudoClassRules.shrinkToFit(); |
| 455 m_cuePseudoRules.shrinkToFit(); | 455 m_cuePseudoRules.shrinkToFit(); |
| 456 m_focusPseudoClassRules.shrinkToFit(); | 456 m_focusPseudoClassRules.shrinkToFit(); |
| 457 m_universalRules.shrinkToFit(); | 457 m_universalRules.shrinkToFit(); |
| 458 m_pageRules.shrinkToFit(); | 458 m_pageRules.shrinkToFit(); |
| 459 m_viewportRules.shrinkToFit(); | 459 m_viewportRules.shrinkToFit(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 } // namespace WebCore | 462 } // namespace WebCore |
| OLD | NEW |