| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "core/html/HTMLSlotElement.h" | 52 #include "core/html/HTMLSlotElement.h" |
| 53 #include "core/html/HTMLVideoElement.h" | 53 #include "core/html/HTMLVideoElement.h" |
| 54 #include "core/html/parser/HTMLParserIdioms.h" | 54 #include "core/html/parser/HTMLParserIdioms.h" |
| 55 #include "core/html/track/vtt/VTTElement.h" | 55 #include "core/html/track/vtt/VTTElement.h" |
| 56 #include "core/page/FocusController.h" | 56 #include "core/page/FocusController.h" |
| 57 #include "core/page/Page.h" | 57 #include "core/page/Page.h" |
| 58 #include "core/probe/CoreProbes.h" | 58 #include "core/probe/CoreProbes.h" |
| 59 #include "core/style/ComputedStyle.h" | 59 #include "core/style/ComputedStyle.h" |
| 60 #include "platform/scroll/ScrollableArea.h" | 60 #include "platform/scroll/ScrollableArea.h" |
| 61 #include "platform/scroll/ScrollbarTheme.h" | 61 #include "platform/scroll/ScrollbarTheme.h" |
| 62 #include "wtf/AutoReset.h" | 62 #include "platform/wtf/AutoReset.h" |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 using namespace HTMLNames; | 66 using namespace HTMLNames; |
| 67 | 67 |
| 68 static bool IsFrameFocused(const Element& element) { | 68 static bool IsFrameFocused(const Element& element) { |
| 69 return element.GetDocument().GetFrame() && | 69 return element.GetDocument().GetFrame() && |
| 70 element.GetDocument().GetFrame()->Selection().IsFocusedAndActive(); | 70 element.GetDocument().GetFrame()->Selection().IsFocusedAndActive(); |
| 71 } | 71 } |
| 72 | 72 |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 bool SelectorChecker::MatchesFocusPseudoClass(const Element& element) { | 1335 bool SelectorChecker::MatchesFocusPseudoClass(const Element& element) { |
| 1336 bool force_pseudo_state = false; | 1336 bool force_pseudo_state = false; |
| 1337 probe::forcePseudoState(const_cast<Element*>(&element), | 1337 probe::forcePseudoState(const_cast<Element*>(&element), |
| 1338 CSSSelector::kPseudoFocus, &force_pseudo_state); | 1338 CSSSelector::kPseudoFocus, &force_pseudo_state); |
| 1339 if (force_pseudo_state) | 1339 if (force_pseudo_state) |
| 1340 return true; | 1340 return true; |
| 1341 return element.IsFocused() && IsFrameFocused(element); | 1341 return element.IsFocused() && IsFrameFocused(element); |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 } // namespace blink | 1344 } // namespace blink |
| OLD | NEW |