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

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

Issue 1912863002: Fix image map focus ring painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698