Sebastian Hengst
4d0bad92dd
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02: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
Kris Maglione
c55f80844a
Bug 1363482: Part 9 - Preload system stylesheets off-thread during startup. r=heycam
...
MozReview-Commit-ID: 7k9KV7GBaaR
--HG--
extra : rebase_source : a47a4b8997911f3391ec95c6c0703852ddf3cfde
2017-08-31 17:23:07 -07:00
Bill McCloskey
9cd553af84
Bug 1350432
- Remove mEventObservers to SynchronizedEventQueue (r=froydnj)
...
MozReview-Commit-ID: 8Xt1gdxFDr4
2017-08-25 10:28:23 -07:00
Michael Kaply
73bafcec5e
Bug 1389168 - Remove unnecessary IBM license text. r=gerv
...
MozReview-Commit-ID: 8HdaBppsJsc
--HG--
extra : rebase_source : 617c17b1162265e44810597fa69d533316da1a6b
2017-08-16 16:10:56 -05:00
Thomas Nguyen
33fb4a1505
Bug 1384493 - LoadStyleLink and LoadInlineStyle should use correct referrer policy. r=heycam
...
If the link element has referrerpolicy attribute, we should use policy in the
attribute with higher priority
MozReview-Commit-ID: GZZeRaoxPUw
2017-08-15 00:05:00 -04:00
Bill McCloskey
c6c1f4bbc9
Bug 1385413 - Remove thread parameter from onDispatchedEvent (r=erahm)
...
This parameter isn't used by any implementation of onDispatchedEvent,
and keeping the parameter makes later refactorings in this bug more difficult.
MozReview-Commit-ID: 90VY2vYtwCW
2017-07-28 13:09:06 -07:00
Bevis Tseng
a7505864a8
Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm
...
--HG--
extra : rebase_source : 11319e568a51d16754a6a9990f76c35c86c2bda7
2017-07-26 16:13:35 +08:00
Andrew McCreight
bf7fff95f0
Bug 1379786, part 4 - Use GetIsSystemPrincipal() method instead of going through secman in CHECK_PRINCIPAL_AND_DATA. r=mrbkap
...
MozReview-Commit-ID: INBsjjxbXZz
--HG--
extra : rebase_source : fd6d491d01acc70be1bf51e25ec31bbcde81344a
2017-07-10 15:00:03 -07:00
Tom Tromey
28e8f458a9
Bug 1306887 - keep SourceMap response header on CSS style sheets; r=bz,heycam
...
When loading a style sheet, if the SourceMap (or legacy X-SourceMap)
response header was seen, record it and make it available to chrome
scripts.
MozReview-Commit-ID: 3wtUADzgrI3
--HG--
extra : rebase_source : 25ed09e264d4b3a679ae970c709dedd4d50e2324
2017-06-28 16:51:46 -07:00
Emilio Cobos Álvarez
aa8fc8476c
Bug 1372041: Refactor @import so it also respects the stylesheet's media properly. r=heycam
...
MozReview-Commit-ID: EBmd8nG877t
2017-07-02 17:19:08 +02:00
Emilio Cobos Álvarez
f16a67fdd4
Bug 1372041: Refactor a bunch of stuff so link rel="media" is honored. r=heycam
...
This still leaves one annoying refactoring of @import so we also fix it for
them.
MozReview-Commit-ID: 4s0WExDEH75
2017-07-02 17:19:07 +02:00
Masatoshi Kimura
b515c9c804
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Sebastian Hengst
dfc1ad2562
Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE
2017-06-25 18:30:13 +02:00
Masatoshi Kimura
2e04751921
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher
e02435a31e
Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura
241039fd97
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Nicholas Nethercote
f1364a75ea
Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsSubstring --> nsAString
- nsCSubstring --> nsACString
--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
fe9268c4cd
Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsAFlatString --> nsString
- nsAFlatCString --> nsCString
--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Masatoshi Kimura
9865b2fdeb
Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
...
MozReview-Commit-ID: E0w8BsP1Rof
--HG--
extra : rebase_source : db95e1e7fc60c9b9c8e6d7fcc5329421ec97e811
2017-06-16 21:11:03 +09:00
Henri Sivonen
432653453a
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
L. David Baron
53383e2d5c
Bug 1369260 - Remove use of MOZ_ASSERT_IF in layout. r=heycam
...
As I've said before, as module owner I prefer that MOZ_ASSERT_IF not be
used in the module because I consider it to be unreadable. However, a
few uses have crept in, and this patch removes them.
I consider it to be unreadable because the name looks like a name that
uses smalltalk-ish naming conventions, i.e., with a part of the name
corresponding to each parameter, in order. However, the parameters are
in the order opposite the name.
This was written primarily with the vim commands:
:%s/MOZ_ASSERT_IF(\([^,]*\),/MOZ_ASSERT(!\1 ||/
:wn
followed by manual cleanup for indentation and removal of !!.
MozReview-Commit-ID: G6rLbOn7k8d
2017-06-06 22:27:17 -07:00
Brad Werth
49ed79f4ce
Bug 1369903 Part 3: Ensure that Loader enables all cloned stylesheets, and checks modified state of all stylesheets, regardless of backend. r=emilio
...
MozReview-Commit-ID: EEnFeaw2r0u
--HG--
extra : rebase_source : 1ff76aee934c6fe191105ce397c0e191e9802acb
2017-06-05 09:24:25 -07:00
Brad Werth
a4e01c9fe2
Bug 1342289 Part 1: Generalize Loader to cycle collect all StyleSheets, not just CSSStyleSheets. r=heycam
...
MozReview-Commit-ID: 1kVim87GZIB
--HG--
extra : rebase_source : f4edf0c260908f1567ca7ddfdf86be55e38925cc
2017-06-02 15:40:37 -07:00
KuoE0
2137da5244
Bug 1358993 - (Part 1) Make stylo support reusable style sheets. r=heycam
...
MozReview-Commit-ID: Fjo1TICAElx
--HG--
extra : rebase_source : ffa47efdcec924fe8ab4f209469ad13c6f7a7c80
2017-05-26 15:59:01 +08:00
Xidorn Quan
1b312ca843
Bug 1352968 part 4 - Change the direction of child stylesheet list. r=heycam
...
It seems no one actually care about the order of the list, and the order
is completely meaningless if the script insert new @import rules.
Changing the order makes inserting faster, and make it easier for later
patch to get the latest inserted child sheet.
MozReview-Commit-ID: 72eKqVoPbZ7
--HG--
extra : source : 6b2b471b993f33f9d06af01e4863cd6c5d34ce3a
2017-05-30 11:10:25 +10:00
KuoE0
1ef85c4cf5
Bug 1367984 - Refactor LoaderReusableStyleSheets to accept StyleSheet to support both of CSSStyleSheet and ServoStyleSheet. r=heycam
...
MozReview-Commit-ID: 8scCs4avrCf
--HG--
extra : rebase_source : 19e928838c48211ed9deff7c2d8870dc770e4459
2017-05-15 15:55:08 +08:00
Nazım Can Altınova
e7316ee8fe
Bug 1364746 - stylo: Continue to propagate quirks mode information to Servo r=bholley
...
I've propagated quirks mode information on some places. But we needed to pass
quirks mode to some other FFI functions to be able to handle that information
properly.
MozReview-Commit-ID: JovQWjN3YJx
--HG--
extra : rebase_source : bd25ba4276ae21ff4feb80e56b311202019268a0
2017-05-14 18:11:18 +03:00
Thomas Nguyen
6c7694640d
Bug 1354563
- Return value of setting referrer could be ignored when loading style. r=heycam
...
The referrer header is optional field and it should not block loading style
MozReview-Commit-ID: fgm5A2MjRW
2017-04-27 20:34:00 +02:00
Emilio Cobos Álvarez
c0d9b6a9d7
Bug 1325878: Use dom::MediaList in the CSS Loader. r=xidorn
...
MozReview-Commit-ID: 8KcKYrkk3jI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:05 +08:00
Xidorn Quan
b49153b29e
Bug 1352763 part 3 - Have ServoStyleSheet also implement nsICSSLoaderObserver. r=heycam
...
MozReview-Commit-ID: 1Z6jAmQ9CY6
--HG--
extra : rebase_source : 1e228d29b6cd6afdc1b47dd28e5a4ff9a79d5af7
2017-04-03 19:55:06 +10:00
Xidorn Quan
e0f34c4221
Bug 1352763 part 2 - Pass borrowed child stylesheet to Gecko for loading rather than the import rule. r=emilio
...
This is necessary because if we pass in the import rule, we would need
to invoke Servo_ImportRule_GetSheet to get the child sheet. However,
Servo_ImportRule_GetSheet tries to lock the global rwlock with read
access, while Servo_CssRules_InsertRule has already locked the same
rwlock with write access for the CSSOM case.
Since the import rule itself is never needed in the code path, it is
easier to just pass in the child stylesheet.
MozReview-Commit-ID: 4njNyGniPIm
--HG--
extra : rebase_source : ad88929713fdc5a581addc044094fa8130125121
2017-04-03 16:18:49 +10:00
Kris Maglione
dabd327027
Bug 1348442: Part 1 - Allow loading preloaded stylesheets asynchronously. r=heycam
...
These changes allow us to asynchronously load pre-loaded stylesheets, in a way
that's similar to ChromeUtils.compileScript. The new method returns a Promise
which resolves to the preloaded sheet once it's finished loading.
This will allow us to remove the last remaining use of synchronous channels in
moz-extension: URLs.
MozReview-Commit-ID: 7J52ff93YKT
--HG--
extra : rebase_source : 20fa013cdc7f5fbedb5ce671ede17765a2abbac2
2017-03-19 19:33:49 -07:00
Ting-Yu Lin
f087300185
Bug 1338446 Part 3 - Label SheetLoadData in Loader::PostLoadEvent. r=heycam
...
When constructing a Loader without passing a document, we added a DocGroup
parameter so that we could still use it to dispatch events to the DocGroup.
Delete NS_ENSURE_TRUE because new() is infallable.
Use another runnable pointer for calling dispatching because forget() will
nuke the pointer and we need to use evt afterwards.
MozReview-Commit-ID: Ce2K6j4pUhA
--HG--
extra : rebase_source : 2bacf1f856e0700f36b2fefe4d2424719cad77a7
2017-03-13 17:00:57 +08:00
Brad Werth
6f9f914085
Bug 1314045 Part 1: Return load table assertion to full force now that Servo stylesheet caching will keep load table consistent. r=heycam
...
MozReview-Commit-ID: 7IrwZ5oFc6e
--HG--
extra : rebase_source : 2ab5a6b96ee23be4a3c75edb32d23a9cc6f933aa
2017-03-10 16:57:36 -08:00
Wei-Cheng Pan
4110645152
Bug 1310127 - Part 13: Use MOZ_MUST_USE in netwerk/protocol/http r=heycam
...
MozReview-Commit-ID: 9qpbe86biXz
--HG--
extra : rebase_source : f76dde754eea0f253f7c2b16fdb1067623617291
2016-12-20 17:19:56 +08:00
Brad Werth
bf7460653e
Bug 1339627 Part 2: Change StyleSheet Loader to attempt to cache ServoStyleSheets. r=heycam
...
MozReview-Commit-ID: 55PJm0H9ltv
--HG--
extra : rebase_source : 68e1f76280e95fc685caabfdd1774e23c0f76563
2017-02-27 11:20:48 -08:00
Brad Werth
7125ec2d5c
Bug 1339627 Part 1: Add a Servo-specific StyleSheet table to nsXULPrototypeCache. r=heycam
...
MozReview-Commit-ID: 98dUNnccdn1
--HG--
extra : rebase_source : 8ae3b8ac218524cc8d701b8d60522ded737071a5
2017-03-06 14:59:37 -08:00
Brad Werth
9905850b87
Bug 1290218 Part 9: Generalize stylesheet Loader to cache Servo sheets in the same way that it caches Gecko sheets. r=heycam
...
MozReview-Commit-ID: BUEvgos46By
--HG--
extra : rebase_source : 3f483586ccf44304282c95a0aed6dd824db967f6
2017-02-21 14:05:24 -08:00
Brad Werth
881f857bac
Bug 1290218 Part 8: Implement ServoStyleSheet Clone. r=heycam
...
MozReview-Commit-ID: Y2KcoMjhbn
--HG--
extra : rebase_source : dc45ede181017fb372fdce23d7449c868a0cb8e6
2017-02-15 13:33:17 -08:00
Brad Werth
3c7df19de4
Bug 1290218 Part 7: Bypass XULPrototypeCache (which is a singleton) for non-Gecko Loaders. r=heycam
...
MozReview-Commit-ID: 852rcD2bdYL
--HG--
extra : rebase_source : c4d73d04af6728616356fd1fe4f56354754bca58
2017-02-14 14:44:37 -08:00
Tom Tromey
5f8f360823
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Daniel Holbert
f8a884b751
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
--HG--
extra : rebase_source : d046a915283dd45ec8ff39f1b63da8ae59d3fac8
2017-02-14 11:23:11 -08:00
Tim Huang
756cf900c9
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
...
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Tom Tung
e185f7bc4c
Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
2017-02-06 09:19:34 +08:00
Cameron McCormack
41bbd156cf
Bug 1314045 - stylo: Downgrade "Bad loading table" assertion since it occurs frequently. r=me
...
MozReview-Commit-ID: Hdt37MzhdsZ
2017-01-31 15:10:45 +08:00
Sebastian Hengst
2664cfc0a9
Backed out changeset 0d069e7395e9 (bug 1314045) for Windows build bustage: warning at Loader.cpp(1885). r=backout on a CLOSED TREE
2017-01-31 18:17:09 +01:00
Cameron McCormack
0ba5cf9cc4
Bug 1314045 - stylo: Downgrade "Bad loading table" assertion since it occurs frequently. r=me
...
MozReview-Commit-ID: Hdt37MzhdsZ
2017-01-31 17:38:16 +01:00
Sebastian Hengst
24430aff14
Backed out changeset 4787d54f7aa6 (bug 1314045)
2017-01-31 17:30:25 +01:00
Cameron McCormack
e64744beef
Bug 1314045 - stylo: Downgrade "Bad loading table" assertion since it occurs frequently. r=me
...
MozReview-Commit-ID: Hdt37MzhdsZ
2017-01-31 23:36:21 +08:00