[Webkit-unassigned] [Bug 48393] Spatial Navigation: Cannot focus on some ContainerNode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 26 20:26:55 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=48393
--- Comment #1 from pgbasin at gmail.com 2010-10-26 20:26:55 PST ---
I traced the code, and found that Node::getRect() can return correct rect, however ContainerNode::getRect() cannot.
And here is a workaround:
svn diff WebCore/page/SpatialNavigation.cpp
Index: WebCore/page/SpatialNavigation.cpp
===================================================================
--- WebCore/page/SpatialNavigation.cpp (revision 70438)
+++ WebCore/page/SpatialNavigation.cpp (working copy)
@@ -105,7 +105,8 @@
{
ASSERT(render && render->node());
- IntRect rect = render->node()->getRect();
+ //IntRect rect = render->node()->getRect();
+ IntRect rect = render->absoluteBoundingBoxRect();
// In cases when the |render|'s associated node is in a scrollable inner
// document, we only consider its scrollOffset if it is not offscreen.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list