| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/editing/FrameSelection.h" | 45 #include "core/editing/FrameSelection.h" |
| 46 #include "core/frame/LocalFrame.h" | 46 #include "core/frame/LocalFrame.h" |
| 47 #include "core/html/HTMLDocument.h" | 47 #include "core/html/HTMLDocument.h" |
| 48 #include "core/html/HTMLFrameElementBase.h" | 48 #include "core/html/HTMLFrameElementBase.h" |
| 49 #include "core/html/HTMLInputElement.h" | 49 #include "core/html/HTMLInputElement.h" |
| 50 #include "core/html/HTMLOptionElement.h" | 50 #include "core/html/HTMLOptionElement.h" |
| 51 #include "core/html/HTMLSelectElement.h" | 51 #include "core/html/HTMLSelectElement.h" |
| 52 #include "core/html/HTMLSlotElement.h" | 52 #include "core/html/HTMLSlotElement.h" |
| 53 #include "core/html/parser/HTMLParserIdioms.h" | 53 #include "core/html/parser/HTMLParserIdioms.h" |
| 54 #include "core/html/track/vtt/VTTElement.h" | 54 #include "core/html/track/vtt/VTTElement.h" |
| 55 #include "core/inspector/InspectorInstrumentation.h" | |
| 56 #include "core/page/FocusController.h" | 55 #include "core/page/FocusController.h" |
| 57 #include "core/page/Page.h" | 56 #include "core/page/Page.h" |
| 57 #include "core/probe/CoreProbes.h" |
| 58 #include "core/style/ComputedStyle.h" | 58 #include "core/style/ComputedStyle.h" |
| 59 #include "platform/scroll/ScrollableArea.h" | 59 #include "platform/scroll/ScrollableArea.h" |
| 60 #include "platform/scroll/ScrollbarTheme.h" | 60 #include "platform/scroll/ScrollbarTheme.h" |
| 61 #include "wtf/AutoReset.h" | 61 #include "wtf/AutoReset.h" |
| 62 | 62 |
| 63 namespace blink { | 63 namespace blink { |
| 64 | 64 |
| 65 using namespace HTMLNames; | 65 using namespace HTMLNames; |
| 66 | 66 |
| 67 static bool isFrameFocused(const Element& element) { | 67 static bool isFrameFocused(const Element& element) { |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { | 1314 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { |
| 1315 if (probe::forcePseudoState(const_cast<Element*>(&element), | 1315 if (probe::forcePseudoState(const_cast<Element*>(&element), |
| 1316 CSSSelector::PseudoFocus)) | 1316 CSSSelector::PseudoFocus)) |
| 1317 return true; | 1317 return true; |
| 1318 return element.isFocused() && isFrameFocused(element); | 1318 return element.isFocused() && isFrameFocused(element); |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 } // namespace blink | 1321 } // namespace blink |
| OLD | NEW |