Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: third_party/WebKit/Source/core/css/SelectorChecker.cpp

Issue 2474603002: Don't include LayoutObject-derived headers where not needed. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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" 55 #include "core/inspector/InspectorInstrumentation.h"
56 #include "core/layout/LayoutObject.h"
57 #include "core/layout/LayoutScrollbar.h"
58 #include "core/page/FocusController.h" 56 #include "core/page/FocusController.h"
59 #include "core/page/Page.h" 57 #include "core/page/Page.h"
60 #include "core/style/ComputedStyle.h" 58 #include "core/style/ComputedStyle.h"
61 #include "platform/scroll/ScrollableArea.h" 59 #include "platform/scroll/ScrollableArea.h"
62 #include "platform/scroll/ScrollbarTheme.h" 60 #include "platform/scroll/ScrollbarTheme.h"
63 #include "wtf/AutoReset.h" 61 #include "wtf/AutoReset.h"
64 62
65 namespace blink { 63 namespace blink {
66 64
67 using namespace HTMLNames; 65 using namespace HTMLNames;
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 } 1268 }
1271 1269
1272 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { 1270 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) {
1273 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), 1271 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element),
1274 CSSSelector::PseudoFocus)) 1272 CSSSelector::PseudoFocus))
1275 return true; 1273 return true;
1276 return element.isFocused() && isFrameFocused(element); 1274 return element.isFocused() && isFrameFocused(element);
1277 } 1275 }
1278 1276
1279 } // namespace blink 1277 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/DragUpdateTest.cpp ('k') | third_party/WebKit/Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698