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