| 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, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
| 6 * All rights reserved. | 6 * All 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 context.element->treeScope()) | 398 context.element->treeScope()) |
| 399 return SelectorFailsCompletely; | 399 return SelectorFailsCompletely; |
| 400 | 400 |
| 401 Element* shadowHost = context.element->ownerShadowHost(); | 401 Element* shadowHost = context.element->ownerShadowHost(); |
| 402 if (!shadowHost) | 402 if (!shadowHost) |
| 403 return SelectorFailsCompletely; | 403 return SelectorFailsCompletely; |
| 404 nextContext.element = shadowHost; | 404 nextContext.element = shadowHost; |
| 405 return matchSelector(nextContext, result); | 405 return matchSelector(nextContext, result); |
| 406 } | 406 } |
| 407 | 407 |
| 408 case CSSSelector::ShadowPiercingDescendant: | |
| 409 case CSSSelector::ShadowDeep: { | 408 case CSSSelector::ShadowDeep: { |
| 410 if (!m_isUARule && !m_isQuerySelector) | 409 if (!m_isUARule && !m_isQuerySelector) |
| 411 Deprecation::countDeprecation(context.element->document(), | 410 Deprecation::countDeprecation(context.element->document(), |
| 412 UseCounter::CSSDeepCombinator); | 411 UseCounter::CSSDeepCombinator); |
| 413 if (ShadowRoot* root = context.element->containingShadowRoot()) { | 412 if (ShadowRoot* root = context.element->containingShadowRoot()) { |
| 414 if (root->type() == ShadowRootType::UserAgent) | 413 if (root->type() == ShadowRootType::UserAgent) |
| 415 return SelectorFailsCompletely; | 414 return SelectorFailsCompletely; |
| 416 } | 415 } |
| 417 | 416 |
| 418 if (context.selector->relationIsAffectedByPseudoContent()) { | 417 if (context.selector->relationIsAffectedByPseudoContent()) { |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 } | 1307 } |
| 1309 | 1308 |
| 1310 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { | 1309 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { |
| 1311 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), | 1310 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), |
| 1312 CSSSelector::PseudoFocus)) | 1311 CSSSelector::PseudoFocus)) |
| 1313 return true; | 1312 return true; |
| 1314 return element.isFocused() && isFrameFocused(element); | 1313 return element.isFocused() && isFrameFocused(element); |
| 1315 } | 1314 } |
| 1316 | 1315 |
| 1317 } // namespace blink | 1316 } // namespace blink |
| OLD | NEW |