| 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.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 case CSSSelector::SubSelector: | 443 case CSSSelector::SubSelector: |
| 444 ASSERT_NOT_REACHED(); | 444 ASSERT_NOT_REACHED(); |
| 445 } | 445 } |
| 446 | 446 |
| 447 ASSERT_NOT_REACHED(); | 447 ASSERT_NOT_REACHED(); |
| 448 return SelectorFailsCompletely; | 448 return SelectorFailsCompletely; |
| 449 } | 449 } |
| 450 | 450 |
| 451 SelectorChecker::Match SelectorChecker::matchForPseudoContent(const SelectorChec
kingContext& context, const Element& element, MatchResult& result) const | 451 SelectorChecker::Match SelectorChecker::matchForPseudoContent(const SelectorChec
kingContext& context, const Element& element, MatchResult& result) const |
| 452 { | 452 { |
| 453 WillBeHeapVector<RawPtrWillBeMember<InsertionPoint>, 8> insertionPoints; | 453 HeapVector<Member<InsertionPoint>, 8> insertionPoints; |
| 454 collectDestinationInsertionPoints(element, insertionPoints); | 454 collectDestinationInsertionPoints(element, insertionPoints); |
| 455 SelectorCheckingContext nextContext(context); | 455 SelectorCheckingContext nextContext(context); |
| 456 for (const auto& insertionPoint : insertionPoints) { | 456 for (const auto& insertionPoint : insertionPoints) { |
| 457 nextContext.element = insertionPoint; | 457 nextContext.element = insertionPoint; |
| 458 // TODO(esprehn): Why does SharingRules have a special case? | 458 // TODO(esprehn): Why does SharingRules have a special case? |
| 459 if (m_mode == SharingRules) | 459 if (m_mode == SharingRules) |
| 460 nextContext.scope = insertionPoint->containingShadowRoot(); | 460 nextContext.scope = insertionPoint->containingShadowRoot(); |
| 461 if (match(nextContext, result)) | 461 if (match(nextContext, result)) |
| 462 return SelectorMatches; | 462 return SelectorMatches; |
| 463 } | 463 } |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) | 1189 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) |
| 1190 { | 1190 { |
| 1191 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) | 1191 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) |
| 1192 return true; | 1192 return true; |
| 1193 return element.focused() && isFrameFocused(element); | 1193 return element.focused() && isFrameFocused(element); |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 } // namespace blink | 1196 } // namespace blink |
| OLD | NEW |