Emilio Cobos Álvarez
78f32b94e5
Bug 1456435: Make UpdateStyleSheet less bool-happy. r=heycam
...
MozReview-Commit-ID: FlTD390lMhg
2018-04-26 16:43:52 +02:00
Emilio Cobos Álvarez
5a15cde7a0
Bug 1456435: Don't clone a URI for sheet loading. r=heycam
...
nsIURI is immutable now.
MozReview-Commit-ID: 1eMikl399Fd
2018-04-26 16:43:45 +02:00
Dragana Damjanovic
90bbd43b23
Bug 1441246 - Move preload cod from nsStyleLinkElement to HTMLLinkElement. r=smaug
2018-04-20 12:47:00 +03:00
Xidorn Quan
e9cb7cd42d
Bug 1447828 part 3 - Remove StyleBackendType uses from MediaList. r=emilio
...
MozReview-Commit-ID: 9sG73iLeBw4
2018-03-29 02:31:46 +11:00
Boris Zbarsky
6c76a18c4c
Bug 1446598 part 2. Get rid of nsIDOMComment. r=mystor
...
MozReview-Commit-ID: GGXPQnlwuUM
2018-03-19 15:15:39 -04:00
Emilio Cobos Álvarez
923d990216
Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
...
Summary: It uses two node bits that can be better suited for something else.
Reviewers: xidorn, smaug
Bug #: 1444905
Differential Revision: https://phabricator.services.mozilla.com/D709
MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Hiroyuki Ikezoe
b1da8534e8
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09:00
Boris Zbarsky
2e25af8589
Bug 1435132 part 3. Remove the last NS_IMETHOD bit from nsIStyleSheetLinkingElement. r=mccr8
...
MozReview-Commit-ID: K7mnYXOJOK6
2018-02-02 08:21:32 -05:00
Boris Zbarsky
732a5e0bdf
Bug 1435132 part 2. Make nsIStyleSheetLinkingElement::GetCharset infallible. r=mccr8
...
MozReview-Commit-ID: 2maFIxR2HkS
2018-02-02 08:21:32 -05:00
Boris Zbarsky
bf991ac93b
Bug 1435132 part 1. Remove NS_IMETHOD noise from never-failing nsIStyleSheetLinkingElement methods. r=mccr8
...
MozReview-Commit-ID: EibysYsW1rv
2018-02-02 08:21:32 -05:00
Cameron McCormack
02c617875f
Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
...
MozReview-Commit-ID: 1FZ9VzjcPzN
2018-02-01 15:04:04 +11:00
Nika Layzell
e5cd184550
Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug
...
MozReview-Commit-ID: 2aHA6NcQPGk
2018-01-12 17:52:52 -05:00
Cameron McCormack
18480c6598
Bug 1427512 - Part 22: Remove nsIDOMStyleSheet. r=xidorn,bz
...
MozReview-Commit-ID: KO2mWX4P8lI
2018-01-11 16:17:57 +08:00
Emilio Cobos Álvarez
8a71d3197b
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ecd202d763
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
b3956b6171
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Kris Maglione
a78047fcc6
Bug 1415352: Part 4c - Use subject principal as the triggering principal for inline <style> nodes. r=bz
...
This change captures the subject principal when a scripted caller sets the
textContent or innerHTML property of a <style> node, and uses it as the
triggering principal for the resulting stylesheet.
If the node contents are modified in any way other than through textContent or
innerHTML, the triggering principal is forgotten (which is an intentional
design feature).
MozReview-Commit-ID: GacZFIB5BzS
2017-11-07 14:25:45 -08:00
Kris Maglione
f222df1eb9
Bug 1415352: Part 2 - Exempt inline CSS from extension principals from CSP. r=bz
...
MozReview-Commit-ID: D0dofgOaLXZ
2017-11-05 12:19:34 -08:00
Kris Maglione
84cb9d4cfe
Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
...
MozReview-Commit-ID: LWMkBcB4WIg
2017-10-05 19:40:48 -07:00
Kris Maglione
8ed082cd00
Bug 1406278: Part 8a - Cleanup some uses of CallQueryInterface. r=bz
...
MozReview-Commit-ID: 20yDJiKLJav
2017-10-05 19:06:54 -07:00
Bobby Holley
ed7d9143cc
Bug 1398982 - Remove style scoped warnings for stylo. r=me
...
We're unshipping stylo scoped anyway.
MozReview-Commit-ID: IeZLzX3ZU9i
2017-09-15 16:40:33 -07:00
Wes Kocher
a1f2a20371
Backed out changeset 3b21f5d72f54 (bug 1398982) for unexpected passes in reftests a=backout
...
MozReview-Commit-ID: E4svy69pFIz
2017-09-15 15:50:14 -07:00
Bobby Holley
9379f81091
Bug 1398982 - Remove style scoped warnings for stylo. r=me
...
We're unshipping stylo scoped anyway.
MozReview-Commit-ID: IeZLzX3ZU9i
2017-09-15 12:20:22 -07:00
Thomas Nguyen
bad74ba462
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
Masatoshi Kimura
635109ab9c
Bug 1361579 - Remove nsISimpleContentPolicy. r=Ehsan
...
MozReview-Commit-ID: BsjkGpTpe8I
2017-08-03 17:50:00 +09:00
fbc54f3210
Bug 1222633 - Add rel=preload - dom part. r=smaug
2017-07-10 15:05:56 +02:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Cameron McCormack
542bcca28c
Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
...
MozReview-Commit-ID: 1J9IvPrC0xh
2017-06-21 09:25:43 +08:00
Wes Kocher
8ddaccacfb
Backed out 2 changesets (bug 1291515) for reftest assertions in textarea-fieldset-legend-ref-2.html a=backout CLOSED TREE
...
Backed out changeset 4fac24cc0437 (bug 1291515)
Backed out changeset 4e8b918dc410 (bug 1291515)
MozReview-Commit-ID: F4yQK5ujqLP
2017-06-25 05:18:22 -07:00
Cameron McCormack
b16d764b3a
Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
...
MozReview-Commit-ID: 1J9IvPrC0xh
2017-06-21 09:25:43 +08:00
Ben Kelly
d7552a9f9d
Bug 1197401 Remove the disabled HTML imports implementation. r=wchen
2017-06-12 07:36:02 -07:00
Michael Layzell
c6453a3b88
Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
...
MozReview-Commit-ID: ARET98o1FTU
2016-12-19 15:05:31 +08:00
Carsten "Tomcat" Book
d417824862
Backed out changeset 059753ec9117 (bug 1315105) for test failures in own test
2016-12-19 15:59:14 +01:00
Michael Layzell
f898aa0d8b
Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
...
MozReview-Commit-ID: ARET98o1FTU
2016-12-19 15:05:31 +08: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
Bobby Holley
0b579050b9
Bug 1291891 - Switch to NS_WARNING for unimplemented <style scoped>. r=emilio
2016-08-03 18:30:57 -07:00
Thomas Nguyen
3ab8c06646
Bug 1264165 - Implement link referrerPolicy attribute. r=josh, r=khuey
...
MozReview-Commit-ID: GxMtNB23eD8
2016-06-24 10:38:47 +08:00
Boris Zbarsky
06fffc484b
Bug 1257849 part 4. Pass in the right set of supported tokens to the <link> relList implementation. r=bkelly
2016-05-04 23:41:24 -04:00
Andreas Farre
97fb98ba91
Bug 1268851 - Add SRILogHelper to hold GetSriLog r=baku
...
MozReview-Commit-ID: BqW7LXOFirn
2016-05-03 17:43:33 -07:00
Cameron McCormack
6c3da3b8d0
Bug 1253788 - Don't reload inline chrome:// style sheets in nsXBLPrototypeResources. r=bzbarsky
2016-03-26 17:02:30 +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
sajitk
e7c3cfa4d5
Bug 1219478: Replace PRLogModuleInfo usage with LazyLogModule in dom folders except media.r=amerchesini
2015-11-23 11:09:25 -08:00
Cameron McCormack
654179bc68
Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron
2015-11-17 17:04:09 +11:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Hiroyuki Ikezoe
fe4ccabf52
Bug 1191178 - Part 0.1: GetSriLog() is needed to avoid unified build failure. r=francois
2015-08-20 14:19:53 -07:00
Wes Kocher
2e8f96b502
Backed out 4 changesets (bug 1191178) to see if it will fix the build bustage on a CLOSED TREE
...
Backed out changeset 32adb36cf863 (bug 1191178)
Backed out changeset 85cb22235eb5 (bug 1191178)
Backed out changeset 744bab15a5ec (bug 1191178)
Backed out changeset b7621c6af97e (bug 1191178)
2015-08-19 16:13:13 -07:00
Hiroyuki Ikezoe
5958db9c0e
Bug 1191178 - Part 0.1: GetSriLog() is needed to avoid unified build failure. r=francois
2015-08-19 15:10:52 -07:00
Tom Tromey
de414ab6d8
Bug 1013814 - add inIDOMUtils.getRelativeRuleLine; r=heycam,pbrosset
2015-08-17 15:19:21 -07:00
Francois Marier
0c5febeb03
Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
...
Code changes
2015-08-12 20:19:11 -07:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00