| 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 break; | 830 break; |
| 831 if (value.length() != argument.length() && value[argument.length
()] != '-') | 831 if (value.length() != argument.length() && value[argument.length
()] != '-') |
| 832 break; | 832 break; |
| 833 return true; | 833 return true; |
| 834 } | 834 } |
| 835 case CSSSelector::PseudoFullScreen: | 835 case CSSSelector::PseudoFullScreen: |
| 836 // While a Document is in the fullscreen state, and the document's c
urrent fullscreen | 836 // While a Document is in the fullscreen state, and the document's c
urrent fullscreen |
| 837 // element is an element in the document, the 'full-screen' pseudocl
ass applies to | 837 // element is an element in the document, the 'full-screen' pseudocl
ass applies to |
| 838 // that element. Also, an <iframe>, <object> or <embed> element whos
e child browsing | 838 // that element. Also, an <iframe>, <object> or <embed> element whos
e child browsing |
| 839 // context's Document is in the fullscreen state has the 'full-scree
n' pseudoclass applied. | 839 // context's Document is in the fullscreen state has the 'full-scree
n' pseudoclass applied. |
| 840 if (element.isFrameElementBase() && element.containsFullScreenElemen
t()) | 840 if (isHTMLFrameElementBase(element) && element.containsFullScreenEle
ment()) |
| 841 return true; | 841 return true; |
| 842 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fro
mIfExists(element.document())) { | 842 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fro
mIfExists(element.document())) { |
| 843 if (!fullscreen->webkitIsFullScreen()) | 843 if (!fullscreen->webkitIsFullScreen()) |
| 844 return false; | 844 return false; |
| 845 return element == fullscreen->webkitCurrentFullScreenElement(); | 845 return element == fullscreen->webkitCurrentFullScreenElement(); |
| 846 } | 846 } |
| 847 return false; | 847 return false; |
| 848 case CSSSelector::PseudoFullScreenAncestor: | 848 case CSSSelector::PseudoFullScreenAncestor: |
| 849 return element.containsFullScreenElement(); | 849 return element.containsFullScreenElement(); |
| 850 case CSSSelector::PseudoFullScreenDocument: | 850 case CSSSelector::PseudoFullScreenDocument: |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 return element.focused() && isFrameFocused(element); | 1101 return element.focused() && isFrameFocused(element); |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 template | 1104 template |
| 1105 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; | 1105 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1106 | 1106 |
| 1107 template | 1107 template |
| 1108 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; | 1108 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1109 | 1109 |
| 1110 } | 1110 } |
| OLD | NEW |