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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 { | 253 { |
254 if (component->m_match == CSSSelector::Id) { | 254 if (component->m_match == CSSSelector::Id) { |
255 addToRuleSet(component->value().impl(), ensurePendingRules()->idRules, r
uleData); | 255 addToRuleSet(component->value().impl(), ensurePendingRules()->idRules, r
uleData); |
256 return true; | 256 return true; |
257 } | 257 } |
258 if (component->m_match == CSSSelector::Class) { | 258 if (component->m_match == CSSSelector::Class) { |
259 addToRuleSet(component->value().impl(), ensurePendingRules()->classRules
, ruleData); | 259 addToRuleSet(component->value().impl(), ensurePendingRules()->classRules
, ruleData); |
260 return true; | 260 return true; |
261 } | 261 } |
262 if (component->isCustomPseudoElement()) { | 262 if (component->isCustomPseudoElement()) { |
263 StringImpl* pseudoValue = component->pseudoType() == CSSSelector::Pseudo
Part ? component->argument().impl() : component->value().impl(); | 263 addToRuleSet(component->value().impl(), ensurePendingRules()->shadowPseu
doElementRules, ruleData); |
264 addToRuleSet(pseudoValue, ensurePendingRules()->shadowPseudoElementRules
, ruleData); | |
265 return true; | 264 return true; |
266 } | 265 } |
267 if (component->pseudoType() == CSSSelector::PseudoCue) { | 266 if (component->pseudoType() == CSSSelector::PseudoCue) { |
268 m_cuePseudoRules.append(ruleData); | 267 m_cuePseudoRules.append(ruleData); |
269 return true; | 268 return true; |
270 } | 269 } |
271 if (SelectorChecker::isCommonPseudoClassSelector(component)) { | 270 if (SelectorChecker::isCommonPseudoClassSelector(component)) { |
272 switch (component->pseudoType()) { | 271 switch (component->pseudoType()) { |
273 case CSSSelector::PseudoLink: | 272 case CSSSelector::PseudoLink: |
274 case CSSSelector::PseudoVisited: | 273 case CSSSelector::PseudoVisited: |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 m_pageRules.shrinkToFit(); | 457 m_pageRules.shrinkToFit(); |
459 m_viewportRules.shrinkToFit(); | 458 m_viewportRules.shrinkToFit(); |
460 m_fontFaceRules.shrinkToFit(); | 459 m_fontFaceRules.shrinkToFit(); |
461 m_keyframesRules.shrinkToFit(); | 460 m_keyframesRules.shrinkToFit(); |
462 m_hostRules.shrinkToFit(); | 461 m_hostRules.shrinkToFit(); |
463 m_treeBoundaryCrossingRules.shrinkToFit(); | 462 m_treeBoundaryCrossingRules.shrinkToFit(); |
464 m_shadowDistributedRules.shrinkToFit(); | 463 m_shadowDistributedRules.shrinkToFit(); |
465 } | 464 } |
466 | 465 |
467 } // namespace WebCore | 466 } // namespace WebCore |
OLD | NEW |