Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Erik Nordin b837c381bc Bug 1613746 - Implement Replace() Functionality r=emilio
- Enable StyleSheet to resolve/reject a promise from Replace()
- Implement the StyleSheet::Replace() method.
- Remove use of `alternate` in WPTs, because it will soon be gone.
- Ensure that WPT test cases which modify document's style clean up after themselves.
- Modify WPT @import test cases to handle unhandled cases on promises.
- Modify WPT test case for failed imports to correctly check `NetworkError` as per the spec, rather than `NotAllowedError`.

Differential Revision: https://phabricator.services.mozilla.com/D62524

--HG--
extra : moz-landing-system : lando
2020-02-22 20:41:30 +00:00
Emilio Cobos Álvarez 3b0bcf1eff Bug 1605895 - Add some assertions to catch misuse of the stream loader / load datas. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D62671

--HG--
extra : moz-landing-system : lando
2020-02-14 14:54:32 +00:00
Bogdan Tara 069b456ae9 Backed out changeset 60549faf4734 (bug 1605895) for StreamLoader related failures CLOSED TREE 2020-02-14 14:35:46 +02:00
Emilio Cobos Álvarez dad1c216e0 Bug 1605895 - Add some assertions to catch misuse of the stream loader / load datas. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D62671

--HG--
extra : moz-landing-system : lando
2020-02-13 11:08:36 +00:00
Emilio Cobos Álvarez 36d3f1e1b9 Bug 1571530 - Cleanup confusing lifetime of SheetLoadData. r=heycam
Saving a refcount bump is not worth the churn. Use a proper RefPtr<>
everywhere instead of manual refcounting, and don't make DoSheetComplete call
NS_RELEASE unconditionally.

Also, make clear by using references where null is expected or not.

Also, properly use a RefPtr in mPendingDatas, since they are strong pointers,
in fact.

Finally, remove some unused macros from nsCSSValue of which this code was the
last consumer.

Differential Revision: https://phabricator.services.mozilla.com/D41090

--HG--
extra : moz-landing-system : lando
2019-08-16 10:56:09 +00:00
Thomas Nguyen d6097dcd38 Bug 1546334 - Store separate referrerInfo in SheetLoadData and StyleSheetInfo r=heycam
The referrerInfo in SheetLoadData and StyleSheetInfo should be
different. One is used to load a style sheet and the other is used to
load resources referenced by a style sheet.

Differential Revision: https://phabricator.services.mozilla.com/D36477

--HG--
extra : moz-landing-system : lando
2019-07-16 11:43:39 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Thomas Nguyen 12582ae1aa Bug 1330487 - Part 1: Parse referrer policy from header and propagate to stylesheet r=heycam
This also fixes loading child stylesheet case, using correct referrer policy stored
in parent sheet.

MozReview-Commit-ID: ARXQyleD9Wq

Differential Revision: https://phabricator.services.mozilla.com/D1921

--HG--
extra : moz-landing-system : lando
2018-09-17 05:35:26 +00:00
Timothy Guan-tin Chien 3a8416b993 Bug 1431255 - Part XIII, Make <link> in UA Widget load stylesheets synchronously r=bzbarsky
Set SheetLoadData::mSyncLoad to true when the link element is in a UA Widget.

MozReview-Commit-ID: 2NPSJnL0rKl

--HG--
extra : rebase_source : 9af8c7add41b39f6eb8e3ac02dbefb9607b905f9
2018-08-07 11:20:31 -07:00
Emilio Cobos Álvarez 6bb8b0c814 Bug 1459498: Make SheetLoadData constructor take enums instead of booleans. rs=heycam
MozReview-Commit-ID: H6QF4NQemAx
2018-05-08 10:09:41 +02:00
Emilio Cobos Álvarez 9509853a38 Bug 1459498: Rename nsIStyleSheetLinkingElement::StyleSheetInfo to SheetInfo. r=heycam
MozReview-Commit-ID: FeOmISAxWBk
2018-05-08 10:07:46 +02:00
Emilio Cobos Álvarez 8239c1300e Bug 1386840: Defer loading and don't block rendering for non-matching stylesheets. r=bz,heycam
MozReview-Commit-ID: 24UJZDooGmn
2018-04-26 16:44:03 +02:00
Bobby Holley 38a23e8931 Bug 1346988 - Parse sheets on the thread pool. r=bz,r=emilio
Note that we also drop the dead optional aReusableSheets argument from
the async parsing path, since it was always null.

MozReview-Commit-ID: KddpGFdaqEe
2018-04-18 13:52:57 -07:00
Bobby Holley 055086766b Bug 1454460 - Buffer the potentially-BOM-related bytes separately and handle them on the fly. r=bz
MozReview-Commit-ID: 5zrKyadBppO
2018-04-17 16:27:08 -07:00
Henri Sivonen eaa2f6b46b Bug 1395114 - Remove nsIUnicharStreamLoader. r=emilio,michal
MozReview-Commit-ID: ECKNnJt80oK

--HG--
extra : rebase_source : 6f09937e0648c65d035dfb4935d6e9a06d0223df
2018-03-26 12:45:31 +03:00
Boris Zbarsky ccac7d9846 Bug 1442126. Make sure to consistently fail a sheet load if any of its imports fail. r=bholley
This fixes a race where we would fail if and only if our last-to-complete import failed.

MozReview-Commit-ID: L33bIxlkj08
2018-03-06 14:45:27 -05:00
Bobby Holley 096338d19b Bug 1438974 - Add an explicit "being parsed" flag to SheetLoadData and remove mParsingDatas. r=bz
MozReview-Commit-ID: 69fK5VAWrbj
2018-02-28 10:43:11 -08:00
Cameron McCormack d02e54b79b Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl

--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Jonathan Watt abe1a2a6c4 Bug 1180145, part 2 - Taint style sheet sub-resources of no-cors resources against resource timing reporting. r=heycam
MozReview-Commit-ID: 9B2qtp3FvjU
2017-11-08 16:59:31 +00:00
Daniel Holbert 680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07:00
Henri Sivonen 3c8567b60d Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin
MozReview-Commit-ID: Llt29dvB4Io

--HG--
extra : rebase_source : 3ae51dc8beff3fb19e9318a6c7c30c9ab08a5b57
2017-08-29 16:01:42 +03:00