Bug 120031

Summary: isReplacementObscured is wrong when the indicator is clipped by an iframe
Product: WebKit Reporter: Tim Horton <thorton>
Component: Plug-insAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, commit-queue, esprehn+autocc, glenn, gordon_sheridan, kondapallykalyan, sfalken, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch simon.fraser: review+

Tim Horton
Reported 2013-08-19 15:48:48 PDT
RenderEmbeddedObject::isReplacementObscured uses HitTestRequest::IgnoreClipping when hit-testing, causing it to be wrong in light of things like <iframe>. <rdar://problem/14606819>
Attachments
patch (8.04 KB, patch)
2013-08-19 19:19 PDT, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2013-08-19 16:19:37 PDT
Actually, we can't not IgnoreClipping, that breaks lots of the other tests. Really what we need to do is climb up the document tree and hit-test from the main document, not from the iframe's document.
Tim Horton
Comment 2 2013-08-19 16:19:54 PDT
The intended behavior gets a bit complicated with scrolling.
Tim Horton
Comment 3 2013-08-19 19:19:47 PDT
Created attachment 209149 [details] patch a little bit concerned about the LayoutRect->IntRect bit.
Tim Horton
Comment 4 2013-08-21 14:02:55 PDT
Note You need to log in before you can comment on or make changes to this bug.