Abstract details of `Loader::LoadSheet` away
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)
References
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Afterwards, extending it is safer.
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Comment 1•8 months ago
|
||
Emilio: perhaps take a look at all patches of this bug first before
commenting.
Assignee | ||
Comment 2•8 months ago
|
||
In another patch, ::LoadSheet
needs to be extended to support the
fetchpriority
attribute (see
https://bugzilla.mozilla.org/show_bug.cgi?id=1839315).
Loader::LoadSheet
is already 350 lines long
(https://searchfox.org/mozilla-central/rev/29bdf6ff9965a647c6f64d63fed2b5bd094532c7/layout/style/Loader.cpp#1147-1495).
To avoid further growing Loader::LoadSheet
, details are abstract away
in this and following parts.
This is in line with
https://google.github.io/styleguide/cppguide.html#Write_Short_Functions.
Depends on D190044
Assignee | ||
Comment 3•8 months ago
|
||
Depends on D190045
Assignee | ||
Comment 4•8 months ago
|
||
Depends on D190046
Assignee | ||
Comment 5•8 months ago
|
||
Depends on D190047
Assignee | ||
Comment 6•8 months ago
|
||
Complements part 1.
Depends on D190048
Pushed by mbrodesser@igalia.com: https://hg.mozilla.org/integration/autoland/rev/3e65c2025149 part 1) Rename `IncrementOngoingLoadCount` to `IncrementOngoingLoadCountAndMaybeBlockOnload`. r=emilio https://hg.mozilla.org/integration/autoland/rev/4a5608f7276f part 2) Factor sync loading of sheet out of `Loader::LoadSheet`. r=emilio https://hg.mozilla.org/integration/autoland/rev/e39a99b0de3b part 3) Factor potentially deferring loading the sheet out of `Loader::LoadSheet`. r=emilio https://hg.mozilla.org/integration/autoland/rev/8d4df1077b73 part 4) Factor potentially coalescing the load out of `Loader::LoadSheet`. r=emilio https://hg.mozilla.org/integration/autoland/rev/3e709d5597d9 part 5) Factor async loading of a sheet out of `Loader::LoadSheet`. r=emilio https://hg.mozilla.org/integration/autoland/rev/a65427b65793 part 6) Rename `DecrementOngoingLoadCount` to `DecrementOngoingLoadCountAndMaybeUnblockOnload`. r=emilio
Comment 8•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3e65c2025149
https://hg.mozilla.org/mozilla-central/rev/4a5608f7276f
https://hg.mozilla.org/mozilla-central/rev/e39a99b0de3b
https://hg.mozilla.org/mozilla-central/rev/8d4df1077b73
https://hg.mozilla.org/mozilla-central/rev/3e709d5597d9
https://hg.mozilla.org/mozilla-central/rev/a65427b65793
Description
•