Closed Bug 853833 Opened 13 years ago Closed 2 years ago

Changing computed box-shadow causes reflow

Categories

(Core :: Layout, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1194480

People

(Reporter: ttaubert, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

I'm currently trying to move about:newtab (the newtab page) from XUL flexbox to CSS3 flexbox. After re-writing most of the styles and opening the new page I noticed that the box-shadow style applied to .site:hover is quite unresponsive (esp. in the original layout, not really bad in the minimized example) when hovering the elements. Looking at the profiler it seems that every time I'm entering and leaving one of the .site elements we do a reflow. Those reflows seem to go away when removing the .site:hover rule or removing the span.thumb elements in .link (which is quite weird because they have no styles at all). http://people.mozilla.com/~bgirard/cleopatra/#report=2ae6b0f8335f3ba5379acfb0b9323916ed792371 I tried to minimize the test case as much as possible so that reflows are still there. The lag itself is not that noticeable on a fast machine.
Attachment #728193 - Attachment mime type: text/html → application/xhtml+xml
Changes in box-shadow trigger a reflow. See CalcShadowDifference in nsStyleStruct.cpp. See also bug 719177 which attempted to fix this and got backed out... Mats, is there a plan to reland it?
Depends on: 719177
Flags: needinfo?(matspal)
Summary: Hovering flexbox elements with box-shadows causes reflows → Changing computed box-shadow causes reflow
Blocks: 843853
I don't plan to work on that, no. I think it might even have been fixed by others now.
Flags: needinfo?(mats)
Not fixed yet, but bug 984226 did most of the prerequisite work needed.
Severity: normal → S3

Hmm, the test case seems to perform well now. Do you think bug 1194480 fixed this case?

Flags: needinfo?(dholbert)

I think so, yeah. Thanks!

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1194480
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: