Sebastian Hengst
9736fc0664
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
cff1fdcb48
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Wes Kocher
d214d1f5fa
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
d3e74dcb2d
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Nicholas Nethercote
4ce1e9c11f
Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsSubstring --> nsAString
- nsCSubstring --> nsACString
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
4cbdad69e6
Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsAFlatString --> nsString
- nsAFlatCString --> nsCString
2017-06-20 19:19:05 +10:00
Masatoshi Kimura
bbe33d305d
Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
...
MozReview-Commit-ID: E0w8BsP1Rof
2017-06-16 21:11:03 +09:00
Henri Sivonen
7af0452b6b
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
03d37750a7
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
e7a1e26dca
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
2017-06-05 09:24:25 -07:00
Brad Werth
80f54c5bcb
Bug 1342289 Part 1: Generalize Loader to cycle collect all StyleSheets, not just CSSStyleSheets. r=heycam
...
MozReview-Commit-ID: 1kVim87GZIB
2017-06-02 15:40:37 -07:00
KuoE0
fc95739e7d
Bug 1358993 - (Part 1) Make stylo support reusable style sheets. r=heycam
...
MozReview-Commit-ID: Fjo1TICAElx
2017-05-26 15:59:01 +08:00
Xidorn Quan
6a6b1408bb
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
2017-05-30 11:10:25 +10:00
KuoE0
9a0958c80a
Bug 1367984 - Refactor LoaderReusableStyleSheets to accept StyleSheet to support both of CSSStyleSheet and ServoStyleSheet. r=heycam
...
MozReview-Commit-ID: 8scCs4avrCf
2017-05-15 15:55:08 +08:00
Nazım Can Altınova
072d3c9b05
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
2017-05-14 18:11:18 +03:00
Thomas Nguyen
f11fd80e52
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
bc1d876fba
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
bf22378ea2
Bug 1352763 part 3 - Have ServoStyleSheet also implement nsICSSLoaderObserver. r=heycam
...
MozReview-Commit-ID: 1Z6jAmQ9CY6
2017-04-03 19:55:06 +10:00
Xidorn Quan
f2fc175056
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
2017-04-03 16:18:49 +10:00
Kris Maglione
05600efca8
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
2017-03-19 19:33:49 -07:00
Ting-Yu Lin
900bd55b15
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
2017-03-13 17:00:57 +08:00
Brad Werth
e83b706eed
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
2017-03-10 16:57:36 -08:00
Wei-Cheng Pan
13cec13a55
Bug 1310127 - Part 13: Use MOZ_MUST_USE in netwerk/protocol/http r=heycam
...
MozReview-Commit-ID: 9qpbe86biXz
2016-12-20 17:19:56 +08:00
Brad Werth
0f6acfd3f4
Bug 1339627 Part 2: Change StyleSheet Loader to attempt to cache ServoStyleSheets. r=heycam
...
MozReview-Commit-ID: 55PJm0H9ltv
2017-02-27 11:20:48 -08:00
Brad Werth
2fd2b8c1ed
Bug 1339627 Part 1: Add a Servo-specific StyleSheet table to nsXULPrototypeCache. r=heycam
...
MozReview-Commit-ID: 98dUNnccdn1
2017-03-06 14:59:37 -08:00
Brad Werth
947eeebc82
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
2017-02-21 14:05:24 -08:00
Brad Werth
79bc1141f0
Bug 1290218 Part 8: Implement ServoStyleSheet Clone. r=heycam
...
MozReview-Commit-ID: Y2KcoMjhbn
2017-02-15 13:33:17 -08:00
Brad Werth
fc97a7019d
Bug 1290218 Part 7: Bypass XULPrototypeCache (which is a singleton) for non-Gecko Loaders. r=heycam
...
MozReview-Commit-ID: 852rcD2bdYL
2017-02-14 14:44:37 -08:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Daniel Holbert
d74b889d67
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
2017-02-14 11:23:11 -08:00
Tim Huang
b3fb2c8458
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
2017-02-07 11:49:34 +08:00
Tom Tung
c08930401f
Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
2017-02-06 09:19:34 +08:00
Cameron McCormack
462939028e
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
7cc9d78b68
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
328791f6ef
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
a93179b8dc
Backed out changeset 4787d54f7aa6 (bug 1314045)
2017-01-31 17:30:25 +01:00
Cameron McCormack
bd336a14ee
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
Boris Zbarsky
cdbd6b5265
Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam
2017-01-19 23:49:44 -05:00
Cameron McCormack
896ab5c4c8
Bug 1290209 - Part 9: Don't return early from Loader::PrepareSheet for a ServoStyleSheet. r=xidorn
...
MozReview-Commit-ID: 8NXajQ6pMqi
2017-01-06 15:05:24 +08:00
Cameron McCormack
58cbf1f191
Bug 1290209 - Part 8: Move CSSStyleSheet::SetEnabled up to StyleSheet. r=xidorn
...
MozReview-Commit-ID: 7shpy5ghnVR
2017-01-06 15:05:24 +08:00
Cameron McCormack
94872f2e17
Bug 1290209 - Part 7: Rename an argument. r=xidorn
...
MozReview-Commit-ID: DQ3gTkgnDR2
2017-01-06 15:05:24 +08:00
Cameron McCormack
859fc6143f
Bug 1290209 - Part 6: Move CSSStyleSheet::mMedia up to StyleSheet. r=bzbarsky
...
MozReview-Commit-ID: LZraHzme6vj
2017-01-06 15:05:24 +08:00
Cameron McCormack
c9bbd159a5
Bug 1290209 - Part 1: Move CSSStyleSheet::SetTitle up to StyleSheet. r=xidorn
...
MozReview-Commit-ID: 2rzn5gba7gw
2017-01-06 15:05:24 +08:00
Emilio Cobos Álvarez
3b5a33d329
Bug 1304792: Use borrowed types for ServoImportRule. r=Manishearth r=heycam
...
MozReview-Commit-ID: HKjsOaE2qAp
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2016-12-30 16:30:42 +01:00
Emilio Cobos Álvarez
6d7b2e91b9
Bug 1304792: stylo: Implement @import. r=heycam
...
MozReview-Commit-ID: Hw1V66JxIBD
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2016-12-30 16:30:41 +01:00
Emilio Cobos Álvarez
88c137a305
Bug 1304792: Minimal Loader and CSSParser cleanup. r=heycam
...
MozReview-Commit-ID: DYOh8BtK7NT
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io >
2016-12-30 16:30:41 +01:00
Xidorn Quan
1125f5e9ab
Bug 1323919 - Rename nsIMediaList.h to nsMediaList.h. r=heycam
...
MozReview-Commit-ID: Ake5srkKJbf
2016-12-16 14:50:36 +11:00
Emilio Cobos Álvarez
4afebc68ce
Bug 1029867: Remove useless nsCSSParser::mHTMLMediaMode. r=heycam
...
MozReview-Commit-ID: AFtd0G4oP3R
2016-12-13 11:39:32 +01:00
Matt Brubeck
5a10c201ca
Bug 1292275 - Stylo: Fix crash after failed stylesheet load. r=heycam
...
Fixes a crash ServoStyleSet::AddDocStyleSheet caused by
ServoStyleSheet::RawSheet returning null.
MozReview-Commit-ID: BdDosompqTv
2016-10-25 10:15:38 -07:00
Paul Bignier
8be94d3031
Bug 1282408 - Add ignore-initialization-check annotation to mStatus from SheetLoadData. r=dbaron
2016-09-26 16:55:53 +02:00