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