| 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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 return false; | 687 return false; |
| 688 return element->document()->isAnimatingFullScreen(); | 688 return element->document()->isAnimatingFullScreen(); |
| 689 case CSSSelector::PseudoFullScreenAncestor: | 689 case CSSSelector::PseudoFullScreenAncestor: |
| 690 return element->containsFullScreenElement(); | 690 return element->containsFullScreenElement(); |
| 691 case CSSSelector::PseudoFullScreenDocument: | 691 case CSSSelector::PseudoFullScreenDocument: |
| 692 // While a Document is in the fullscreen state, the 'full-screen-doc
ument' pseudoclass applies | 692 // While a Document is in the fullscreen state, the 'full-screen-doc
ument' pseudoclass applies |
| 693 // to all elements of that Document. | 693 // to all elements of that Document. |
| 694 if (!element->document()->webkitIsFullScreen()) | 694 if (!element->document()->webkitIsFullScreen()) |
| 695 return false; | 695 return false; |
| 696 return true; | 696 return true; |
| 697 #if ENABLE(IFRAME_SEAMLESS) | |
| 698 case CSSSelector::PseudoSeamlessDocument: | 697 case CSSSelector::PseudoSeamlessDocument: |
| 699 // While a document is rendered in a seamless iframe, the 'seamless-
document' pseudoclass applies | 698 // While a document is rendered in a seamless iframe, the 'seamless-
document' pseudoclass applies |
| 700 // to all elements of that Document. | 699 // to all elements of that Document. |
| 701 return element->document()->shouldDisplaySeamlesslyWithParent(); | 700 return element->document()->shouldDisplaySeamlesslyWithParent(); |
| 702 #endif | |
| 703 case CSSSelector::PseudoInRange: | 701 case CSSSelector::PseudoInRange: |
| 704 if (!element) | 702 if (!element) |
| 705 return false; | 703 return false; |
| 706 element->document()->setContainsValidityStyleRules(); | 704 element->document()->setContainsValidityStyleRules(); |
| 707 return element->isInRange(); | 705 return element->isInRange(); |
| 708 case CSSSelector::PseudoOutOfRange: | 706 case CSSSelector::PseudoOutOfRange: |
| 709 if (!element) | 707 if (!element) |
| 710 return false; | 708 return false; |
| 711 element->document()->setContainsValidityStyleRules(); | 709 element->document()->setContainsValidityStyleRules(); |
| 712 return element->isOutOfRange(); | 710 return element->isOutOfRange(); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 return element->focused() && isFrameFocused(element); | 899 return element->focused() && isFrameFocused(element); |
| 902 } | 900 } |
| 903 | 901 |
| 904 template | 902 template |
| 905 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, Ps
eudoId&, const DOMSiblingTraversalStrategy&) const; | 903 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, Ps
eudoId&, const DOMSiblingTraversalStrategy&) const; |
| 906 | 904 |
| 907 template | 905 template |
| 908 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, Ps
eudoId&, const ShadowDOMSiblingTraversalStrategy&) const; | 906 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, Ps
eudoId&, const ShadowDOMSiblingTraversalStrategy&) const; |
| 909 | 907 |
| 910 } | 908 } |
| OLD | NEW |