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

Side by Side Diff: Source/core/page/SpatialNavigation.cpp

Issue 16282004: Remove unused includes from various .cpp files in core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: re-add HTMLFormElement to EmptyClients for windows Created 7 years, 6 months 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
« no previous file with comments | « Source/core/page/PrintContext.cpp ('k') | Source/core/page/SpeechInput.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org> 3 * Copyright (C) 2009 Antonio Gomes <tonikitoo@webkit.org>
4 * 4 *
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 15 matching lines...) Expand all
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "config.h" 29 #include "config.h"
30 #include "core/page/SpatialNavigation.h" 30 #include "core/page/SpatialNavigation.h"
31 31
32 #include "HTMLNames.h" 32 #include "HTMLNames.h"
33 #include "core/dom/Node.h" 33 #include "core/dom/Node.h"
34 #include "core/html/HTMLAreaElement.h" 34 #include "core/html/HTMLAreaElement.h"
35 #include "core/html/HTMLImageElement.h" 35 #include "core/html/HTMLImageElement.h"
36 #include "core/html/HTMLMapElement.h"
37 #include "core/page/Frame.h" 36 #include "core/page/Frame.h"
38 #include "core/page/FrameTree.h" 37 #include "core/page/FrameTree.h"
39 #include "core/page/FrameView.h" 38 #include "core/page/FrameView.h"
40 #include "core/page/Page.h" 39 #include "core/page/Page.h"
41 #include "core/page/Settings.h" 40 #include "core/page/Settings.h"
42 #include "core/platform/graphics/IntRect.h" 41 #include "core/platform/graphics/IntRect.h"
43 #include "core/rendering/RenderInline.h"
44 #include "core/rendering/RenderLayer.h" 42 #include "core/rendering/RenderLayer.h"
45 43
46 namespace WebCore { 44 namespace WebCore {
47 45
48 static RectsAlignment alignmentForRects(FocusDirection, const LayoutRect&, const LayoutRect&, const LayoutSize& viewSize); 46 static RectsAlignment alignmentForRects(FocusDirection, const LayoutRect&, const LayoutRect&, const LayoutSize& viewSize);
49 static bool areRectsFullyAligned(FocusDirection, const LayoutRect&, const Layout Rect&); 47 static bool areRectsFullyAligned(FocusDirection, const LayoutRect&, const Layout Rect&);
50 static bool areRectsPartiallyAligned(FocusDirection, const LayoutRect&, const La youtRect&); 48 static bool areRectsPartiallyAligned(FocusDirection, const LayoutRect&, const La youtRect&);
51 static bool areRectsMoreThanFullScreenApart(FocusDirection, const LayoutRect& cu rRect, const LayoutRect& targetRect, const LayoutSize& viewSize); 49 static bool areRectsMoreThanFullScreenApart(FocusDirection, const LayoutRect& cu rRect, const LayoutRect& targetRect, const LayoutSize& viewSize);
52 static bool isRectInDirection(FocusDirection, const LayoutRect&, const LayoutRec t&); 50 static bool isRectInDirection(FocusDirection, const LayoutRect&, const LayoutRec t&);
53 static void deflateIfOverlapped(LayoutRect&, LayoutRect&); 51 static void deflateIfOverlapped(LayoutRect&, LayoutRect&);
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 LayoutRect rect = virtualRectForDirection(direction, rectToAbsoluteCoordinat es(area->document()->frame(), area->computeRect(area->imageElement()->renderer() )), 1); 730 LayoutRect rect = virtualRectForDirection(direction, rectToAbsoluteCoordinat es(area->document()->frame(), area->computeRect(area->imageElement()->renderer() )), 1);
733 return rect; 731 return rect;
734 } 732 }
735 733
736 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate) 734 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate)
737 { 735 {
738 return candidate.isFrameOwnerElement() ? static_cast<HTMLFrameOwnerElement*> (candidate.visibleNode) : 0; 736 return candidate.isFrameOwnerElement() ? static_cast<HTMLFrameOwnerElement*> (candidate.visibleNode) : 0;
739 }; 737 };
740 738
741 } // namespace WebCore 739 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/PrintContext.cpp ('k') | Source/core/page/SpeechInput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698