Closed Bug 1118051 Opened 9 years ago Closed 9 years ago

layout/reftests/border-radius/clipping-6.html fails on Android when event-regions are enabled

Categories

(Core :: Layout, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox36 --- wontfix
firefox37 --- wontfix
firefox38 --- fixed
b2g-v2.1 --- unaffected
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: kats, Assigned: tnikkel)

References

Details

Attachments

(1 file, 1 obsolete file)

See the try run at https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=2f2eafcb696d

There is a R2 failure on Android 4.0 API10+ debug as a result of turning on event-regions. This needs to be investigated and resolved before we can turn on event-regions across all platforms.
With event regions enabled we get a bunch of empty extra layers for the event regions, but I'm not sure if that's causing the difference. The event regions items increase the size of the transform layer's visible region. I think this might be the reason. Even if it's not we don't want to increase the size of it (in this case the affected layer has an intermediate surface so we would definitely be using more resources then we need to). As long as the hit testing code can handle having hit regions be larger than the visible region of the layer.
Yeah, the event-regions-based hit testing code doesn't check the visible region so it should be fine if the hit region is larger than the visible region.
Attached patch patch (obsolete) — Splinter Review
I checked that we still get event regions on layers, and even layers that are only created to hold event regions (and so have an empty visible region) are still created and get event regions.
Assignee: nobody → tnikkel
Attachment #8559458 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/653ead886844
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla38 → ---
The problem in bug 1130067 appears to be that when we call FindPaintedLayerFor we always choose the bottom most suitable painted layer because the vis rect passed in is empty (so doesn't intersect the draw rect of any of the painted layers in the stack). I hacked up a patch to use the non-empty way of calculating bounds only for FindPaintedLayerFor for layer event regions items, but empty GetBounds for everything else and that fixes it.
Attached patch patch v2Splinter Review
Attachment #8559458 - Attachment is obsolete: true
Attachment #8562021 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/82b5134173f4
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
tn, can you request uplift to b2g37 for this bug? It is needed in order to fix bug 1139541 on 2.2. Thanks!
Flags: needinfo?(tnikkel)
Comment on attachment 8562021 [details] [diff] [review]
patch v2

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): need this for bug 1139541
User impact if declined: bug 1139541
Testing completed: been landed for a while now, no issues
Risk to taking this patch (and alternatives if risky): pretty safe
String or UUID changes made by this patch: none
Flags: needinfo?(tnikkel)
Attachment #8562021 - Flags: approval-mozilla-b2g37?
Attachment #8562021 - Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: