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

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

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix additional test Created 4 years, 10 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698