Content inside frames and scrollbars in overflow areas hit-tests incorrectly when the WKView has a header. <rdar://problem/13581721>
Created attachment 198619 [details] Patch
Comment on attachment 198619 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=198619&action=review > LayoutTests/platform/mac/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame-expected.txt:16 > +layer at (0,0) size 785x600 > + RenderView at (0,0) size 785x600 > +layer at (0,0) size 785x600 > + RenderBlock {HTML} at (0,0) size 785x600 > + RenderBody {BODY} at (8,8) size 769x584 > + RenderPartObject {IFRAME} at (0,0) size 600x300 > + layer at (0,0) size 600x300 > + RenderView at (0,0) size 600x300 > + layer at (0,0) size 600x300 > + RenderBlock {HTML} at (0,0) size 600x300 > + RenderBody {BODY} at (8,8) size 584x284 > + RenderBlock {DIV} at (0,0) size 25x25 [bgcolor=#800080] > + RenderBlock {DIV} at (0,25) size 584x18 > + RenderText {#text} at (0,0) size 33x18 > + text run at (0,0) width 33: "Pass!" > + RenderText {#text} at (0,0) size 0x0 This should be a text test.
(In reply to comment #2) > (From update of attachment 198619 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=198619&action=review > > > LayoutTests/platform/mac/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame-expected.txt:16 > > +layer at (0,0) size 785x600 > > + RenderView at (0,0) size 785x600 > > +layer at (0,0) size 785x600 > > + RenderBlock {HTML} at (0,0) size 785x600 > > + RenderBody {BODY} at (8,8) size 769x584 > > + RenderPartObject {IFRAME} at (0,0) size 600x300 > > + layer at (0,0) size 600x300 > > + RenderView at (0,0) size 600x300 > > + layer at (0,0) size 600x300 > > + RenderBlock {HTML} at (0,0) size 600x300 > > + RenderBody {BODY} at (8,8) size 584x284 > > + RenderBlock {DIV} at (0,0) size 25x25 [bgcolor=#800080] > > + RenderBlock {DIV} at (0,25) size 584x18 > > + RenderText {#text} at (0,0) size 33x18 > > + text run at (0,0) width 33: "Pass!" > > + RenderText {#text} at (0,0) size 0x0 > > This should be a text test. Yes, it should! This was much easier to do than I initially though. New patch in a moment.
Created attachment 198627 [details] Patch
Thank you! http://trac.webkit.org/changeset/148643