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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 } | 621 } |
622 | 622 |
623 return virtualStartingRect; | 623 return virtualStartingRect; |
624 } | 624 } |
625 | 625 |
626 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement& area, WebFocus
Type type) | 626 LayoutRect virtualRectForAreaElementAndDirection(HTMLAreaElement& area, WebFocus
Type type) |
627 { | 627 { |
628 ASSERT(area.imageElement()); | 628 ASSERT(area.imageElement()); |
629 // Area elements tend to overlap more than other focusable elements. We flat
ten the rect of the area elements | 629 // Area elements tend to overlap more than other focusable elements. We flat
ten the rect of the area elements |
630 // to minimize the effect of overlapping areas. | 630 // to minimize the effect of overlapping areas. |
631 LayoutRect rect = virtualRectForDirection(type, rectToAbsoluteCoordinates(ar
ea.document().frame(), area.computeRect(area.imageElement()->layoutObject())), L
ayoutUnit(1)); | 631 LayoutRect rect = virtualRectForDirection(type, rectToAbsoluteCoordinates(ar
ea.document().frame(), area.computeAbsoluteRect(area.imageElement()->layoutObjec
t())), LayoutUnit(1)); |
632 return rect; | 632 return rect; |
633 } | 633 } |
634 | 634 |
635 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate) | 635 HTMLFrameOwnerElement* frameOwnerElement(FocusCandidate& candidate) |
636 { | 636 { |
637 return candidate.isFrameOwnerElement() ? toHTMLFrameOwnerElement(candidate.v
isibleNode) : nullptr; | 637 return candidate.isFrameOwnerElement() ? toHTMLFrameOwnerElement(candidate.v
isibleNode) : nullptr; |
638 }; | 638 }; |
639 | 639 |
640 } // namespace blink | 640 } // namespace blink |
OLD | NEW |