Closed Bug 1525134 Opened 6 years ago Closed 6 years ago

Move image loads out of the style struct accessors.

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(3 files)

Last step before removing the pres context pointer from the styles.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Component: Layout → CSS Parsing and Computation
Priority: -- → P3

After this I can pass the document from the caller to
ResolveSameStructsAs, and get rid of the pres context pointer.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=2a476a9dc9f824ea353985774de235d6c1095f74

Green modulo the test that needs to be changed to not do remote connections.

Flags: needinfo?(emilio)

Ugh, sorry, tested the wrong build :(

Flags: needinfo?(emilio)

Before the other patch in this bug, list-style-image is the only image url that
made the list image request more lazily (during reflow and during
getComputedStyle).

This test was relying on the request being canceled soon enough that it didn't
crash the browser (we don't allow remote connections during tests).

I don't have a better idea than removing this test unfortunately. I've verified
that switching the test to use background-image or some other thing it makes the
request without my patch.

Blocks: 1525371
Attachment #9041557 - Attachment description: Bug 1525134 - Remove remote url from browser_discovery_styles.js. → Bug 1525134 - Remove remote url from browser_discovery_styles.js. r=andreio
Attachment #9041285 - Attachment description: Bug 1525134 - Move image loads out of the style struct accessors. → Bug 1525134 - Move image loads out of the style struct accessors. r=heycam
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d52e6ae0212c Remove remote url from browser_discovery_styles.js. r=andreio https://hg.mozilla.org/integration/autoland/rev/6b71e3d434c2 Move image loads out of the style struct accessors. r=heycam
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15265 for changes under testing/web-platform/tests

Noticed an AWSY performance improvement! \0/

== Change summary for alert #19177 (as of Tue, 05 Feb 2019 19:21:19 GMT) ==

Improvements:

5% Images osx-10-10 opt stylo 4,474,022.09 -> 4,250,151.72

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=19177

Depends on: 1528451
Regressions: 1590191
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: