[Webkit-unassigned] [Bug 64298] Hit testing is broken when a block is positioned relatively with left and padding-bottom properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 11 13:38:30 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64298





--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2011-07-11 13:38:30 PST ---
The problem seems to be that RenderBox::location() is not updated for this node:
(gdb) p child->showTreeForThis()
BODY    0x107478e40
    #text    0x10a818690 "\n"
*    DIV    0x10a80cec0 STYLE=position: relative; left: 50px; padding-bottom: 20px; border: solid 1px
        #text    0x10a8186f0 "\nClick on the left of this box. The caret is placed at a wrong location.\n"
    #text    0x10a818e80 "\n"
    DIV    0x10a8172d0
        #text    0x10a826330 "Selected text:"
        CODE    0x10a819240
        DIV    0x1074701e0
            #text    0x107470510 "\n"
            SCRIPT    0x107470570
                #text    0x107470790 "\n\nfunction update() {\n    document.getElementById('log').textContent = window.getSelection().toString();\n}\n\n"
            #text    0x107472450 "\n\n\n"
$7 = void
(gdb) p child->location()
$8 = {
  m_x = 0, 
  m_y = 0
}

-- 
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