| 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 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 ASSERT(m_ancestorIdentifierFilter); | 103 ASSERT(m_ancestorIdentifierFilter); |
| 104 // We may get invoked for some random elements in some wacky cases during st
yle resolve. | 104 // We may get invoked for some random elements in some wacky cases during st
yle resolve. |
| 105 // Pause maintaining the stack in this case. | 105 // Pause maintaining the stack in this case. |
| 106 if (m_parentStack.last().element != parent.parentOrShadowHostElement()) | 106 if (m_parentStack.last().element != parent.parentOrShadowHostElement()) |
| 107 return; | 107 return; |
| 108 pushParentStackFrame(parent); | 108 pushParentStackFrame(parent); |
| 109 } | 109 } |
| 110 | 110 |
| 111 static inline void collectDescendantSelectorIdentifierHashes(const CSSSelector&
selector, unsigned*& hash) | 111 static inline void collectDescendantSelectorIdentifierHashes(const CSSSelector&
selector, unsigned*& hash) |
| 112 { | 112 { |
| 113 switch (selector.m_match) { | 113 switch (selector.match()) { |
| 114 case CSSSelector::Id: | 114 case CSSSelector::Id: |
| 115 if (!selector.value().isEmpty()) | 115 if (!selector.value().isEmpty()) |
| 116 (*hash++) = selector.value().impl()->existingHash() * IdAttributeSal
t; | 116 (*hash++) = selector.value().impl()->existingHash() * IdAttributeSal
t; |
| 117 break; | 117 break; |
| 118 case CSSSelector::Class: | 118 case CSSSelector::Class: |
| 119 if (!selector.value().isEmpty()) | 119 if (!selector.value().isEmpty()) |
| 120 (*hash++) = selector.value().impl()->existingHash() * ClassAttribute
Salt; | 120 (*hash++) = selector.value().impl()->existingHash() * ClassAttribute
Salt; |
| 121 break; | 121 break; |
| 122 case CSSSelector::Tag: | 122 case CSSSelector::Tag: |
| 123 if (selector.tagQName().localName() != starAtom) | 123 if (selector.tagQName().localName() != starAtom) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 164 } |
| 165 if (hash == end) | 165 if (hash == end) |
| 166 return; | 166 return; |
| 167 relation = current->relation(); | 167 relation = current->relation(); |
| 168 relationIsAffectedByPseudoContent = current->relationIsAffectedByPseudoC
ontent(); | 168 relationIsAffectedByPseudoContent = current->relationIsAffectedByPseudoC
ontent(); |
| 169 } | 169 } |
| 170 *hash = 0; | 170 *hash = 0; |
| 171 } | 171 } |
| 172 | 172 |
| 173 } | 173 } |
| OLD | NEW |