| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 break; | 870 break; |
| 871 return true; | 871 return true; |
| 872 } | 872 } |
| 873 case CSSSelector::PseudoFullScreen: | 873 case CSSSelector::PseudoFullScreen: |
| 874 // While a Document is in the fullscreen state, and the document's curre
nt fullscreen | 874 // While a Document is in the fullscreen state, and the document's curre
nt fullscreen |
| 875 // element is an element in the document, the 'full-screen' pseudoclass
applies to | 875 // element is an element in the document, the 'full-screen' pseudoclass
applies to |
| 876 // that element. Also, an <iframe>, <object> or <embed> element whose ch
ild browsing | 876 // that element. Also, an <iframe>, <object> or <embed> element whose ch
ild browsing |
| 877 // context's Document is in the fullscreen state has the 'full-screen' p
seudoclass applied. | 877 // context's Document is in the fullscreen state has the 'full-screen' p
seudoclass applied. |
| 878 if (isHTMLFrameElementBase(element) && element.containsFullScreenElement
()) | 878 if (isHTMLFrameElementBase(element) && element.containsFullScreenElement
()) |
| 879 return true; | 879 return true; |
| 880 return Fullscreen::isActiveFullScreenElement(element); | 880 return Fullscreen::isCurrentFullScreenElement(element); |
| 881 case CSSSelector::PseudoFullScreenAncestor: | 881 case CSSSelector::PseudoFullScreenAncestor: |
| 882 return element.containsFullScreenElement(); | 882 return element.containsFullScreenElement(); |
| 883 case CSSSelector::PseudoInRange: | 883 case CSSSelector::PseudoInRange: |
| 884 if (m_mode == ResolvingStyle) | 884 if (m_mode == ResolvingStyle) |
| 885 element.document().setContainsValidityStyleRules(); | 885 element.document().setContainsValidityStyleRules(); |
| 886 return element.isInRange(); | 886 return element.isInRange(); |
| 887 case CSSSelector::PseudoOutOfRange: | 887 case CSSSelector::PseudoOutOfRange: |
| 888 if (m_mode == ResolvingStyle) | 888 if (m_mode == ResolvingStyle) |
| 889 element.document().setContainsValidityStyleRules(); | 889 element.document().setContainsValidityStyleRules(); |
| 890 return element.isOutOfRange(); | 890 return element.isOutOfRange(); |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 } | 1144 } |
| 1145 | 1145 |
| 1146 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) | 1146 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) |
| 1147 { | 1147 { |
| 1148 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) | 1148 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) |
| 1149 return true; | 1149 return true; |
| 1150 return element.focused() && isFrameFocused(element); | 1150 return element.focused() && isFrameFocused(element); |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 } // namespace blink | 1153 } // namespace blink |
| OLD | NEW |