Commit Graph
329 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez cc359d1aa9 Bug 2044618 - Remove SheetParsingMode. r=layout-reviewers,dholbert
It's a 1:1 mapping for the origin that we cache in the
StyleSheetContents, so use that.

PreloadHashKey only cares about author loads, within a document, so
doesn't really need to deal with user / user-agent ones.

Differential Revision: https://phabricator.services.mozilla.com/D304400
2026-06-05 01:03:23 +00:00
Emilio Cobos Álvarez dfb3d67fae Bug 2007841 - GC the stylesheet cache. r=firefox-style-system-reviewers,dshin
I made it a global thing rather than something more subtle like
nsExpirationTracker, because nsExpirationTracker doesn't deal super-well
with the nested hashtable structure and different kinds of entries, and
this seems like it should be good enough (idle runnable + delay).

Much like the atom table GC:

  https://searchfox.org/firefox-main/source/xpcom/ds/nsAtomTable.cpp#456

Differential Revision: https://phabricator.services.mozilla.com/D302781
2026-05-28 03:21:05 +00:00
Daniel Holbert b9eb620914 Bug 2036982: Use MakeAndAddRef to replace some new/forget() patterns in layout/style. r=layout-reviewers,firefox-style-system-reviewers,emilio
MakeAndAddRef exists partly to serve as syntactic sugar to combine statements
like this.  And this lets us reduce our count of manual 'new' statements,
which is a nice plus.

One exception was "new StyleSheet" which has a private constructor and hence
can't use MakeAndAddRef, so in that instance I used do_AddRef(new) to stuff the
newly-allocated object into a smart pointer, in a way that we can consistently
grep for across the codebase when auditing our new/delete invocations.

Differential Revision: https://phabricator.services.mozilla.com/D298473
2026-05-06 22:31:29 +00:00
Emilio Cobos Álvarez 7d0f557077 Bug 2026033 - Remove StyleSheet::mRelevantGlobal. r=smaug
This was added for bug 1632686, in order to be able to create a promise
for constructable and non-constructable stylesheets. However:

 * Constructable stylesheets always have access to their relevant global
   via mConstructorDocument.

 * Non-constructable stylesheets don't really need to create a promise
   directly, they can throw and WebIDL will do the right thing turning
   the exception into a promise.

So we can probably just kill this at this point. Note that we have some
relevant tests for the edge cases here
(layout/style/test/test_sheet_privilege.html).

This helps preventing window leaks during shutdown if there's an ongoing
stylesheet parse off the main thread, e.g., if a test opens a page that
closes before the load event is done, and the parse takes a bit, the
harness may think the window has leaked. It's _not_ a real leak, because
eventually the parse will finish and the stylesheet will get dropped,
but it shows up enough to be annoying, and the fix is simple.

Note that this would change behavior (via StyleSheet::GetParentObject)
if we allowed you to get a hand on a stylesheet that is not connected to
any node or constructed. However I don't think that's possible (we
require the sheet to be complete and the ways we expose stylesheets is
either LinkStyle.sheet or constructable stylesheets).

Differential Revision: https://phabricator.services.mozilla.com/D297517
2026-04-29 23:56:49 +00:00
Sylvestre Ledru 55481ac4b5 Bug 2023419 - Remove Emacs/Vim modelines from layout/ r=emilio,firefox-style-system-reviewers,layout-reviewers
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287852
2026-03-17 12:05:43 +00:00
Emilio Cobos Álvarez 8b5e58f9df Bug 2018400. r=firefox-style-system-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D284392
2026-02-26 10:01:25 +00:00
Emilio Cobos Álvarez 06979f0bbc Bug 2016237 - Take CSSStyleSheet's replace() promise before resolving. r=firefox-style-system-reviewers,dshin
If CSSStyleSheet becomes a thenable due to prototype mutations, then we
might null out the wrong promise.

Differential Revision: https://phabricator.services.mozilla.com/D284391
2026-02-23 19:24:10 +00:00
Emilio Cobos Álvarez 8ca067765f Bug 2003227 - Use unordered removal in StyleSheetInner. r=tlouw
The list of shared sheets is not order-dependent, neither is the
StyleSet set, so in order to avoid pathological performance with lots of
shared sheets, use unordered removal.

Differential Revision: https://phabricator.services.mozilla.com/D274597
2025-12-01 15:46:06 +00:00
Emilio Cobos Álvarez a643ccf3b0 Bug 1994008 - Pass the right base URI to cached inline sheets. r=firefox-style-system-reviewers,layout-reviewers,dshin
With the dependent bugs closed, this fix is trivial.

Differential Revision: https://phabricator.services.mozilla.com/D269944
2025-10-26 13:03:16 +00:00
Emilio Cobos Álvarez 4ea5ebeaa0 Bug 1995282 - Remove StyleSheet::mSheetURI. r=smaug
We don't need it:

 * For built-in sheets (ContentParent etc) the original URI is the same.
 * For Document / nsStyleSheetService / LinkStyle, the original URI is
   what you want to avoid registering / loading the same URI multiple
   times.

Differential Revision: https://phabricator.services.mozilla.com/D269423
2025-10-22 11:24:36 +00:00
Emilio Cobos Álvarez f7c56c1d09 Bug 1995282 - Clean up URLExtraData storage in stylesheets. r=smaug
Make SetURIs be the source of truth for referrer info and principal too.
This allows us to remove redundant members.

Pull the URI and such out of StyleSheetInfo, since we are sharing
StyleSheetInfo across stylesheets with different base URIs and such now
(for inline stylesheets), and we need to keep track of the "right" base
URI for when we eventually clone them.

There's one part of the change here which is a bit scary, which is the
principal shenanigans. However I don't think it's problematic since we
already are using the URLExtraData for CSS parsing and subresource
loads, which doesn't have that mutation. In particular, we only use
StyleSheet::Principal from Loader::LoadChildSheet. So we can implement
what the spec actually says (an origin-clean flag).

Differential Revision: https://phabricator.services.mozilla.com/D269210
2025-10-22 11:21:38 +00:00
Sandor Molnar ce82072e19 Revert "Bug 1995282 - Clean up URLExtraData storage in stylesheets. r=smaug" for causing xpc crashes
This reverts commit c6bdc6abd2.
2025-10-21 23:58:08 +00:00
Emilio Cobos Álvarez c6bdc6abd2 Bug 1995282 - Clean up URLExtraData storage in stylesheets. r=smaug
Make SetURIs be the source of truth for referrer info and principal too.
This allows us to remove redundant members.

Pull the URI and such out of StyleSheetInfo, since we are sharing
StyleSheetInfo across stylesheets with different base URIs and such now
(for inline stylesheets), and we need to keep track of the "right" base
URI for when we eventually clone them.

There's one part of the change here which is a bit scary, which is the
principal shenanigans. However I don't think it's problematic since we
already are using the URLExtraData for CSS parsing and subresource
loads, which doesn't have that mutation. In particular, we only use
StyleSheet::Principal from Loader::LoadChildSheet. So we can implement
what the spec actually says (an origin-clean flag).

Differential Revision: https://phabricator.services.mozilla.com/D269210
2025-10-21 22:44:07 +00:00
serge-sans-paille 7662b3abdc Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 19:36:01 +00:00
Cristina Horotan 8a1b1970b7 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing Gtest failures on AlreadyAddRefed.h
This reverts commit e98adca292.
2025-10-21 16:16:29 +00:00
serge-sans-paille e98adca292 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 15:05:17 +00:00
Cristina Horotan aab924e90d Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing build bustage at nsBrowserApp.cpp
This reverts commit fd0ffa193c.
2025-10-21 10:44:13 +00:00
serge-sans-paille fd0ffa193c Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 09:44:11 +00:00
Narcis Beleuzu e1e6bbb1c9 Revert "Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch" for causing bustages on Document.cpp
This reverts commit b23c15e927.
2025-10-21 06:34:58 +00:00
serge-sans-paille b23c15e927 Bug 1994397 - Remove obsolete Unused.h header r=emilio,tschuster,geckoview-reviewers,extension-reviewers,application-update-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,profiles-reviewers,toolkit-telemetry-reviewers,firefox-style-system-reviewers,firefox-svg-reviewers,layout-reviewers,timhuang,gstoll,TravisLong,bytesized,mstange,karlt,robwu,pehrsons,m_kato,jari,jhirsch
It is replaced by a standard-conforming cast to (void) which is
understood the same by the compiler.

In some cases this could be replaced by `[[maybe_unused]]` but for
expression whose value is ignored, this requires storing to a temporary
variable first, so not going that way.

One notable change is that marking an object of type already_AddRefed as
unused used to implicitly leak memory. This is now made explicit.

Most of the heavy lifting was done through:

    $ git grep -l '\<Unused\> <<' | xargs sed -i -e 's/Unused << /(void)/g'
    $ git grep -l mozilla/Unused.h | xargs sed -i -e '/mozilla\/Unused.h/ d'

Differential Revision: https://phabricator.services.mozilla.com/D268706
2025-10-21 06:01:36 +00:00
Henri Sivonen b1685935b1 Bug 1968903 - Avoid creating script and CSS loaders for documents loaded as data. r=firefox-style-system-reviewers,emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264779
2025-10-20 15:49:01 +00:00
Cristina Horotan f21b53b704 Revert "Bug 1968903 - Avoid creating script and CSS loaders for documents loaded as data. r=firefox-style-system-reviewers,emilio,layout-reviewers" for causing bug 1991800
This reverts commit 6cbdfe15a0.
2025-10-01 07:15:03 +00:00
Henri Sivonen 6cbdfe15a0 Bug 1968903 - Avoid creating script and CSS loaders for documents loaded as data. r=firefox-style-system-reviewers,emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264779
2025-09-30 10:27:43 +00:00
agoloman 0a11d7413f Revert "Bug 1968903 - Avoid creating script and CSS loaders for documents loaded as data. r=firefox-style-system-reviewers,emilio,layout-reviewers" for causing multiple wpt failures.
This reverts commit f83cb28789.
2025-09-30 09:25:22 +00:00
Henri Sivonen f83cb28789 Bug 1968903 - Avoid creating script and CSS loaders for documents loaded as data. r=firefox-style-system-reviewers,emilio,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D264779
2025-09-30 07:45:53 +00:00
Lando 40c808e836 Bug 1720570: apply code formatting via Lando
# ignore-this-changeset
2025-09-15 21:24:36 +00:00
Daniel Minor b63f5fa7b5 Bug 1720570 - Break out separate method to create constructed stylesheets; r=layout-reviewers,firefox-style-system-reviewers,emilio
This breaks out the common code path between creating a CSSStyleSheet
instance directly and creating one from a CSS module into a separate
method so it can be used from both places.

Differential Revision: https://phabricator.services.mozilla.com/D263413
2025-09-15 21:24:09 +00:00
Alexandru Marc 982c15a70d Revert "Bug 1720570: apply code formatting via Lando" for causing build bustages @ ModuleLoaderBase.h
This reverts commit ba4e616475.

Revert "Bug 1720570 - Update web-platform test expectations; r=layout-reviewers,emilio"

This reverts commit 27214f9ae8.

Revert "Bug 1720570 - Use backgroundImage in relative-urls.html; r=layout-reviewers,emilio"

This reverts commit 97ec45d1db.

Revert "Bug 1720570 - Support fetching css module scripts; r=dom-core,smaug"

This reverts commit e54b57ec16.

Revert "Bug 1720570 - Add support for css modules in ModuleLoader, WorkerModuleLoader and WorkletModuleLoader; r=allstarschh,dom-core,emilio,smaug"

This reverts commit 2eb55b783d.

Revert "Bug 1720570 - Break out separate method to create constructed stylesheets; r=layout-reviewers,firefox-style-system-reviewers,emilio"

This reverts commit 2ccebf50bb.

Revert "Bug 1720570 - Move ModuleTypeAllowed check into ModuleLoaderBase; r=allstarschh"

This reverts commit 040b387d3e.

Revert "Bug 1720570 - Handle css module in GetModuleType; r=allstarschh"

This reverts commit 4b64b94cb1.

Revert "Bug 1720570 - Add CreateCssModule; r=allstarschh"

This reverts commit 3f20b1d5b7.

Revert "Bug 1720570 - Add ModuleType::CSS; r=allstarschh"

This reverts commit ef5e3a7151.

Revert "Bug 1720570 - Add pref for css module scripts; r=layout-reviewers,emilio"

This reverts commit 7a9b1fbac0.
2025-09-10 01:10:49 +00:00
Lando ba4e616475 Bug 1720570: apply code formatting via Lando
# ignore-this-changeset
2025-09-10 00:45:08 +00:00
Daniel Minor 2ccebf50bb Bug 1720570 - Break out separate method to create constructed stylesheets; r=layout-reviewers,firefox-style-system-reviewers,emilio
This breaks out the common code path between creating a CSSStyleSheet
instance directly and creating one from a CSS module into a separate
method so it can be used from both places.

Differential Revision: https://phabricator.services.mozilla.com/D263413
2025-09-10 00:44:25 +00:00
Atila Butkovits c5ace57d5c Revert "Bug 1720570: apply code formatting via Lando" for causing Hazard failures.
This reverts commit 8267f4ae14.

Revert "Bug 1720570 - Update web-platform test expectations; r=layout-reviewers,emilio"

This reverts commit 0a8f6facf2.

Revert "Bug 1720570 - Use backgroundImage in relative-urls.html; r=layout-reviewers,emilio"

This reverts commit 886bec571a.

Revert "Bug 1720570 - Support fetching css module scripts; r=dom-core,smaug"

This reverts commit 161decf185.

Revert "Bug 1720570 - Add support for css modules in ModuleLoader, WorkerModuleLoader and WorkletModuleLoader; r=allstarschh,dom-core,emilio,smaug"

This reverts commit 1c0eba5a86.

Revert "Bug 1720570 - Break out separate method to create constructed stylesheets; r=layout-reviewers,firefox-style-system-reviewers,emilio"

This reverts commit 0552b0f555.

Revert "Bug 1720570 - Move ModuleTypeAllowed check into ModuleLoaderBase; r=allstarschh"

This reverts commit b3be3d8fc4.

Revert "Bug 1720570 - Handle css module in GetModuleType; r=allstarschh"

This reverts commit 6ff53c0877.

Revert "Bug 1720570 - Add CreateCssModule; r=allstarschh"

This reverts commit cf4c677737.

Revert "Bug 1720570 - Add ModuleType::CSS; r=allstarschh"

This reverts commit e5f6251479.

Revert "Bug 1720570 - Add pref for css module scripts; r=layout-reviewers,emilio"

This reverts commit 9155521841.
2025-09-09 00:35:54 +00:00
Lando 8267f4ae14 Bug 1720570: apply code formatting via Lando
# ignore-this-changeset
2025-09-08 18:30:52 +00:00
Daniel Minor 0552b0f555 Bug 1720570 - Break out separate method to create constructed stylesheets; r=layout-reviewers,firefox-style-system-reviewers,emilio
This breaks out the common code path between creating a CSSStyleSheet
instance directly and creating one from a CSS module into a separate
method so it can be used from both places.

Differential Revision: https://phabricator.services.mozilla.com/D263413
2025-09-08 18:30:21 +00:00
Emilio Cobos Álvarez fd86eb6aa2 Bug 1982344 - Account for all non-local URIs for caching inline sheets across image and non-image documents. r=firefox-style-system-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D261356
2025-08-19 01:02:11 +00:00
Lando e3dc6c0452 Bug 1978217: apply code formatting via Lando
# ignore-this-changeset
2025-07-23 01:35:43 +00:00
Emilio Cobos Álvarez 493d0f23cb Bug 1978217 - Don't share sheets using relative URIs when it's not safe to do so. r=firefox-style-system-reviewers,layout-reviewers,dshin
Track whether an inline sheet might have uris that depend on the base, and
avoid caching them if appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D258292
2025-07-23 01:35:28 +00:00
Emilio Cobos Álvarez 513bfd9097 Bug 1978217 - Record use counter data inline in StylesheetContents. r=firefox-style-system-reviewers,layout-reviewers,dshin
No behavior change, but this is simpler. I want to reuse the use
counters mechanism to fix this bug because it's a very trivial way of
asking questions about the parsed data and we need to plumb it through
the same places.

Differential Revision: https://phabricator.services.mozilla.com/D258290
2025-07-23 01:35:22 +00:00
Emilio Cobos Álvarez a8a2311474 Bug 1976457 - Sort includes in layout/. r=janv,dshin
Interesting bit is layout/.clang-format, the rest is all automated.

Differential Revision: https://phabricator.services.mozilla.com/D256616
2025-07-09 13:24:00 +00:00
Emilio Cobos Álvarez df96b6291d Bug 1953050 - Null-check stylesheet when fixing up clones. r=dshin
I missed this one in bug 1427715.

Differential Revision: https://phabricator.services.mozilla.com/D240978
2025-03-11 13:45:23 +00:00
Emilio Cobos ÁlvarezandTimothy Nikkel 507f709941 Bug 1931789 - Avoid quadratic behaviour of FindDocStyleSheetInsertionPoint in the common append case. r=smaug
This is about 0.75% of the full sp3 suite.

Co-authored-by: Timothy Nikkel <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D229283
2025-02-22 16:23:12 +00:00
Emilio Cobos Álvarez d16593275e Bug 1933473 - Track changes to declaration blocks correctly in the style rule map. r=devtools-reviewers,jwatt
The raw declaration block might change for a given rule. We need to keep
track of it properly for devtools in order to not lose track of rules.

Could I convince someone from DevTools to write a test for this? :)
Otherwise please point me to the right test to extend / change, and I
can.

Differential Revision: https://phabricator.services.mozilla.com/D230439
2024-11-28 12:10:15 +00:00
Tooru Fujisawa 3db5a5e79f Bug 1899734 - Part 7: Carry SubResourceNetworkMetadataHolder with SheetLoadData for complete and incomplete load, and propagate through dependencies. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D223353
2024-10-01 12:17:23 +00:00
Emilio Cobos Álvarez 9161ed4dbd Bug 1914449 - Fix stylesheet cloning in presence of both @layer and @import. r=zrhoffman,firefox-style-system-reviewers
Hopefully the test for bug 1912996 would catch this.

Differential Revision: https://phabricator.services.mozilla.com/D220083
2024-08-26 13:01:59 +00:00
Emilio Cobos Álvarez f13512e295 Bug 1914106 - Deal with insertRule edge-case. r=jwatt
When there's trailing garbage after an @import rule we throw, but we
still trigger the load (that's not great but not trivial to change).

Deal with that case before calling ImportRuleLoaded().

Differential Revision: https://phabricator.services.mozilla.com/D219783
2024-08-22 05:39:07 +00:00
Daniel Holbert cd7fd0677f Bug 1896711 part 5: Use MakeRefPtr/MakeAndAddRef to reduce boilerplate, in layout/style. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D210390
2024-05-15 07:29:21 +00:00
Emilio Cobos Álvarez 41f597d3c0 Bug 1880718 - Make sure that constructable stylesheets has the right url data after construction. r=dshin
ReplaceSync did this, but if you don't call Replace() / ReplaceSync()
after construction we end up with the Servo_StyleSheet_Empty which has a
dummy URL data.

Differential Revision: https://phabricator.services.mozilla.com/D204603
2024-03-15 15:47:21 +00:00
Emilio Cobos Álvarez 1e6e3bfc0b Bug 1884759 - Don't use a mutex to handle parse promise blocking. r=firefox-style-system-reviewers,zrhoffman
It's more heavy-weight than it needs to be.

Differential Revision: https://phabricator.services.mozilla.com/D204287
2024-03-13 09:52:02 +00:00
sunil mayya 97971f8448 Bug 1864817 - implement OnDataFinished for CSSLoader. r=jesup,necko-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D189403
2024-03-10 14:12:04 +00:00
Cosmin Sabou ad055c9c92 Backed out changeset 9da36d4b3b14 (bug 1864817) for causing frequent StyleSheet related failures. CLOSED TREE 2024-03-09 03:43:15 +02:00
sunil mayya 4cb5965fd1 Bug 1864817 - implement OnDataFinished for CSSLoader. r=jesup,necko-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D189403
2024-03-08 20:58:37 +00:00