| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 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/page/Frame.h" | 36 #include "core/page/Frame.h" |
| 37 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
| 38 #include "core/page/FrameView.h" | 38 #include "core/page/FrameView.h" |
| 39 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 40 #include "core/page/Settings.h" | 40 #include "core/page/Settings.h" |
| 41 #include "core/platform/graphics/IntRect.h" | |
| 42 #include "core/rendering/RenderLayer.h" | 41 #include "core/rendering/RenderLayer.h" |
| 42 #include "platform/geometry/IntRect.h" |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 static RectsAlignment alignmentForRects(FocusDirection, const LayoutRect&, const
LayoutRect&, const LayoutSize& viewSize); | 46 static RectsAlignment alignmentForRects(FocusDirection, const LayoutRect&, const
LayoutRect&, const LayoutSize& viewSize); |
| 47 static bool areRectsFullyAligned(FocusDirection, const LayoutRect&, const Layout
Rect&); | 47 static bool areRectsFullyAligned(FocusDirection, const LayoutRect&, const Layout
Rect&); |
| 48 static bool areRectsPartiallyAligned(FocusDirection, const LayoutRect&, const La
youtRect&); | 48 static bool areRectsPartiallyAligned(FocusDirection, const LayoutRect&, const La
youtRect&); |
| 49 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); |
| 50 static bool isRectInDirection(FocusDirection, const LayoutRect&, const LayoutRec
t&); | 50 static bool isRectInDirection(FocusDirection, const LayoutRect&, const LayoutRec
t&); |
| 51 static void deflateIfOverlapped(LayoutRect&, LayoutRect&); | 51 static void deflateIfOverlapped(LayoutRect&, LayoutRect&); |
| 52 static LayoutRect rectToAbsoluteCoordinates(Frame* initialFrame, const LayoutRec
t&); | 52 static LayoutRect rectToAbsoluteCoordinates(Frame* initialFrame, const LayoutRec
t&); |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 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); |
| 731 return rect; | 731 return rect; |
| 732 } | 732 } |
| 733 | 733 |
| 734 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate) | 734 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate) |
| 735 { | 735 { |
| 736 return candidate.isFrameOwnerElement() ? toHTMLFrameOwnerElement(candidate.v
isibleNode) : 0; | 736 return candidate.isFrameOwnerElement() ? toHTMLFrameOwnerElement(candidate.v
isibleNode) : 0; |
| 737 }; | 737 }; |
| 738 | 738 |
| 739 } // namespace WebCore | 739 } // namespace WebCore |
| OLD | NEW |