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