[Webkit-unassigned] [Bug 74864] There is additional space not belonged to a table between the table cells

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 11 02:14:14 PDT 2012


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





--- Comment #25 from Arpita Bahuguna <arpitabahuguna at gmail.com>  2012-08-11 02:14:39 PST ---
(In reply to comment #23)
> (From update of attachment 157438 [details])

Thanks for the review Julien.

> View in context: https://bugs.webkit.org/attachment.cgi?id=157438&action=review
> 
> > Source/WebCore/ChangeLog:17
> > +               fast/dom/hittest-tablecell-with-borders-right-edge.html
> 
> I didn't notice that those tests were in fast/dom. It doesn't make sense to put them there - you are not testing a dom API - and they would be better with the other table tests in fast/tables. If you prefer you could even put them in a sub-directory (fast/table/testing).
> 
> > Source/WebCore/rendering/RenderTableSection.cpp:1129
> > +    // of other browsers.
> 
Have added the testcases under fast/table/testing now.

> Woua, that's a long explanation! It's also half true as spanningRows / spanningColumns are used for hit testing but also painting.
> 
> Let's try to shorten the comment (feel free to adapt):
> // lower_bound doesn't handle the edge between 2 cells properly as it would wrongly return the cell on the logical top / left.
> // upper_bound properly return the cell on the logical bottom / right, which matches other browsers.
> 
Made the change.

> > LayoutTests/fast/dom/hittest-tablecell-bottom-edge-expected.txt:41
> > +PASS document.elementFromPoint(middleX, edge - 1).id is ''
> 
> This result is interesting. Note that this means that there is a 1px gap (or more) around an empty rows. This matches the empty column case too. As this patch makes us only progress, I am in favor of filing a follow-up bug about that.
> 
Yes, that's true. I shall post a bug for the same and update.
Also, currently FF seems to be the only browser returning a TableRow element for a hit test on a cellspacing area. Other browsers including WebKit do not return any underlying element. Should that be treated as a bug? Are we expected to return the TableRow element in such a case. If so, I shall raise another bug for it as well.

> > LayoutTests/fast/dom/hittest-tablecell-with-borders-right-edge-expected.txt:47
> > +PASS document.elementFromPoint(edge - 1, middleY).id is ''
> > +PASS document.elementFromPoint(edge, middleY).id is ''
> > +PASS document.elementFromPoint(edge + 1, middleY).id is ''
> 
> I don't think this is fine to return nothing in all those cases but you are just validating our existing behavior here.
Am uncertain as to what changes, if required, are to be made for these cases. Did you perhaps wish for these cases to be removed?

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