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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 } | 998 } |
999 case CSSSelector::PseudoFullScreen: | 999 case CSSSelector::PseudoFullScreen: |
1000 // While a Document is in the fullscreen state, and the document's current | 1000 // While a Document is in the fullscreen state, and the document's current |
1001 // fullscreen element is an element in the document, the 'full-screen' | 1001 // fullscreen element is an element in the document, the 'full-screen' |
1002 // pseudoclass applies to that element. Also, an <iframe>, <object> or | 1002 // pseudoclass applies to that element. Also, an <iframe>, <object> or |
1003 // <embed> element whose child browsing context's Document is in the | 1003 // <embed> element whose child browsing context's Document is in the |
1004 // fullscreen state has the 'full-screen' pseudoclass applied. | 1004 // fullscreen state has the 'full-screen' pseudoclass applied. |
1005 if (isHTMLFrameElementBase(element) && | 1005 if (isHTMLFrameElementBase(element) && |
1006 element.containsFullScreenElement()) | 1006 element.containsFullScreenElement()) |
1007 return true; | 1007 return true; |
1008 return Fullscreen::isFullscreenElement(element); | 1008 return Fullscreen::isCurrentFullScreenElement(element); |
1009 case CSSSelector::PseudoFullScreenAncestor: | 1009 case CSSSelector::PseudoFullScreenAncestor: |
1010 return element.containsFullScreenElement(); | 1010 return element.containsFullScreenElement(); |
1011 case CSSSelector::PseudoInRange: | 1011 case CSSSelector::PseudoInRange: |
1012 if (m_mode == ResolvingStyle) | 1012 if (m_mode == ResolvingStyle) |
1013 element.document().setContainsValidityStyleRules(); | 1013 element.document().setContainsValidityStyleRules(); |
1014 return element.isInRange(); | 1014 return element.isInRange(); |
1015 case CSSSelector::PseudoOutOfRange: | 1015 case CSSSelector::PseudoOutOfRange: |
1016 if (m_mode == ResolvingStyle) | 1016 if (m_mode == ResolvingStyle) |
1017 element.document().setContainsValidityStyleRules(); | 1017 element.document().setContainsValidityStyleRules(); |
1018 return element.isOutOfRange(); | 1018 return element.isOutOfRange(); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 } | 1308 } |
1309 | 1309 |
1310 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { | 1310 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { |
1311 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), | 1311 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), |
1312 CSSSelector::PseudoFocus)) | 1312 CSSSelector::PseudoFocus)) |
1313 return true; | 1313 return true; |
1314 return element.isFocused() && isFrameFocused(element); | 1314 return element.isFocused() && isFrameFocused(element); |
1315 } | 1315 } |
1316 | 1316 |
1317 } // namespace blink | 1317 } // namespace blink |
OLD | NEW |