[Title] If focused node has overflow rect, moved as location of clipped rect.
[Issue#] N/A
[Problem] Position for showing selection popup menu is not properly.
[Cause] If focused node has overflow rect,
location of clipped rect is not applied to location of focused node rect.
Location should be moved as location of clipped rect.
[Solution] Moved as location of clipped rect.
Change-Id: I1f1968b36edb78e13b807bf6f07df38af65a5fb8
if (layerRenderer->hasOverflowClip() && layerRenderer != currentRenderer) {
candidateRect.move(currentRenderer->offsetFromAncestorContainer(layerRenderer));
+ LayoutPoint baseLocation = candidateRect.location();
currentRenderer = layerRenderer;
ASSERT(layerRenderer->isBox());
candidateRect.intersect(toRenderBox(layerRenderer)->borderBoxRect());
+ originalLocation.move(candidateRect.location() - baseLocation);
if (candidateRect.isEmpty())
break;