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
Xidorn Quan
7d6c4129ab
Bug 1304302 part 10 - Replace all uses of StyleSheetHandle. r=heycam
...
This commit is generated by the following commands with some minor
manual adjustment:
find . \( -name '*.h' -or -name '*.cpp' \) -not -path './layout/style/StyleSheet*' -exec sed -i -b \
-e '/^\(#include\|using\)/s/StyleSheetHandle/StyleSheet/g' \
-e 's/\(mozilla::\)\?StyleSheetHandle::RefPtr/RefPtr<\1StyleSheet>/g' \
-e 's/StyleSheetHandle()/nullptr/g' \
-e 's/->AsStyleSheet()//g' \
-e 's/StyleSheetHandle/StyleSheet*/g' {} +
sed -i -b 's/sheet->AsVoidPtr()/sheet.get()/' layout/style/Loader.cpp
sed -i -b 's/AsHandle()/this/' layout/style/StyleSheet.cpp
MozReview-Commit-ID: 7abdvlKHukd
2016-09-26 22:03:25 +10:00
Xidorn Quan
7ba350b0a6
Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
...
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.
This commit is generated by the following command:
find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
-e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
-e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +
MozReview-Commit-ID: 54H5x27Pmso
2016-09-26 22:03:25 +10:00
Xidorn Quan
bb435b8c71
Bug 1304302 part 2 - Some small fixes. r=heycam
...
MozReview-Commit-ID: 7rnl4wkMorC
2016-09-26 22:03:25 +10:00
Nicholas Nethercote
c57fffaa55
Bug 1297300 - Add missing checks to GetSpec() calls in layout/. r=dholbert,heycam.
2016-08-31 20:10:10 +10:00
Tom Tung
611a19f2d2
Bug 1187335 - P6 - Support script/css to set integrity metadata to serviceWorker. r=bkelly. r=francois.
2016-09-07 10:30:21 +08:00
Tom Tung
c47f624bce
Bug 1187335 - P2 - Modify the way to report to console for worker and use LoadTainting to decide CORS or not. r=bkelly. r=francois.
2016-09-08 09:59:40 +08:00
Nicholas Nethercote
62b6b0fce6
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
2016-08-26 16:02:31 +10:00
Nicholas Nethercote
1cef4f427a
Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
...
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.
The patch also removes a handful of redundant checks on infallible setters.
2016-08-12 15:19:29 +10:00
Bobby Holley
3eac0e7c8d
Bug 1291390 - Make parsing mode an immutable property of the StyleSheet. r=heycam
2016-08-03 10:26:14 -07:00
Bobby Holley
dbba604017
Bug 1290214 - Remove NS_ERRORs in css::Loader. r=emilio
2016-07-28 17:25:43 -07:00
Boris Zbarsky
7e5b58da2a
Bug 1278919. Don't fire error events on <link rel='stylesheet'> when its loading is blocked in a data document; the fact that we even _try_ to load in that situation is bizarre. r=ckerschb
2016-06-09 14:49:28 -04:00
Ben Kelly
403b1dbda8
Backout dcdbaae3b40f (bug 1278688) r=me
2016-06-08 12:03:31 -07:00
Ben Kelly
10e7d379d5
Bug 1278688 Update stylesheets in nsXULPrototypeCache so that unused CSSStyleSheet objects can be freed. r=heycam
2016-06-08 10:00:21 -07:00
Frederik Braun
7ff2c832e6
Bug 1265318: add require-sri-for CSP directive. r=ckerschb
...
MozReview-Commit-ID: 200PAvKtBME
2016-05-31 11:14:00 +02:00
Boris Zbarsky
ac1b8752e5
Bug 1268957. Fire an error event on the <link> element when a stylesheet load is blocked via content policy. r=ckerschb
2016-05-27 13:31:20 -04:00
Jonathan Hao
a3ede4dcf7
Bug 1235572 - Enforce SRI if content signature is enforced r=francois
...
* * *
[mq]: sri_fix
MozReview-Commit-ID: 8vY9J4j3Eog
* * *
[mq]: loadInfo
MozReview-Commit-ID: EZ8BUfCOXO6
* * *
[mq]: add-logs
MozReview-Commit-ID: 1jeyTq9nvlW
2016-03-16 11:13:26 +08:00
Bobby Holley
0a533d159f
Bug 1252611 - Hoist IsComplete/SetComplete into StyleSheet. r=dholbert
2016-03-10 22:18:59 -08:00
Cameron McCormack
db21121997
Bug 1250788 - Part 5: Create and parse ServoStyleSheets in css::Loader. r=bholley
2016-02-26 12:51:02 +11:00
Cameron McCormack
1b2002825d
Bug 1250379 - Create css::Loaders for specific style backend types. r=dholbert
2016-02-24 18:01:12 +11:00
Cameron McCormack
c0e9a631c2
Bug 1244074 - Part 4: Use StyleSheetHandle instead of concrete style sheet class in most places. r=dholbert
2016-02-24 18:01:12 +11:00
Christoph Kerschbaumer
da260a39e3
Bug 1245681 - Fix addOverrideStyleSheet. r=bz
...
CLOSED TREE
2016-02-05 11:07:04 -08:00
Wes Kocher
3b20954b8b
Backed out 2 changesets (bug 1245681) for android mochitest-14 failures in test_css_chrome_load_access.html CLOSED TREE
...
Backed out changeset 82803bc92f37 (bug 1245681)
Backed out changeset b71df90db19e (bug 1245681)
2016-02-05 15:16:36 -08:00
Christoph Kerschbaumer
da847a4c9d
Bug 1245681 - Fix addOverrideStyleSheet. r=bz
2016-02-05 11:07:04 -08:00
Christoph Kerschbaumer
e7d05ee621
Bug 1195173 - Apply CSP to preloaded styles within layout/style/Loader.cpp (r=bz)
2016-02-02 20:35:30 -08:00
Christoph Kerschbaumer
f34da45573
Bug 1195173 - Use channel->ascynOpen2 layout/style/Loader.cpp (r=bz)
2016-02-02 20:35:02 -08:00
Birunthan Mohanathas
bfee0fb40c
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Chris Peterson
e704df2450
Bug 1235186 - Part 1: Fix -Wformat warnings in layout/. r=dholbert
...
layout/base/AccessibleCaret.cpp:129:48 [-Wformat-extra-args] data argument not used by format string
layout/generic/nsContainerFrame.cpp:425:71 [-Wformat] more '%' conversions than data arguments
layout/style/FontFaceSet.cpp:798:10 [-Wformat] format specifies type 'int' but the argument has type 'size_type' (aka 'unsigned long')
layout/style/Loader.cpp:1817:12 [-Wformat] format specifies type 'unsigned int' but the argument has type 'nsICSSLoaderObserver *'
layout/style/Loader.cpp:1817:35 [-Wformat] format specifies type 'unsigned int' but the argument has type 'mozilla::css::SheetLoadData *'
layout/style/Loader.cpp:1827:12 [-Wformat] format specifies type 'unsigned int' but the argument has type 'nsICSSLoaderObserver *'
layout/style/Loader.cpp:1827:23 [-Wformat] format specifies type 'char *' but the argument has type 'mozilla::css::SheetLoadData *'
2015-12-24 16:04:20 -07:00
Nicholas Nethercote
22624b2f4d
Bug 1187144 (part 7) - Replace nsBaseHashtable::Enumerate() calls in layout/ with iterators. r=dholbert.
2015-11-22 21:37:07 -08:00
Nicholas Nethercote
cc42cc2452
Bug 1187144 (part 6) - Replace nsBaseHashtable::Enumerate() calls in layout/ with iterators. r=dholbert.
2015-11-22 21:35:32 -08:00
Nicholas Nethercote
21befdd80f
Bug 1187144 (part 5) - Replace nsBaseHashtable::Enumerate() calls in layout/ with iterators. r=dholbert.
2015-11-22 21:20:54 -08:00
Cameron McCormack
654179bc68
Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron
2015-11-17 17:04:09 +11:00
sajitk
3af487f614
Bug 1219470 - Replace PRLogModuleInfo with LazyLogModule. r=roc
2015-11-05 23:35:03 +01:00
Mats Palmgren
af638939e4
Bug 1221902 part 1 - NS_RELEASE SheetLoadData::mNext iteratively instead of recursively to avoid blowing up the stack. r=bz
2015-11-05 22:09:27 +01:00