Cameron McCormack
bec78e84d5
Bug 1290209 - Part 3: Move media queries related class implementations from CSSStyleSheet.cpp to nsMediaList.cpp. r=xidorn
...
MozReview-Commit-ID: DA8lAPCXTkm
2017-01-06 15:05:24 +08: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
Daniel Holbert
e73b560488
Bug 1321495 part 3: Add needed #includes to various .cpp files in layout/style, to preemptively fix unified-build bustage. r=TYLin
...
MozReview-Commit-ID: GEjKZqc06FO
2016-12-01 10:40:04 -08:00
Xidorn Quan
2d70bdcd07
Bug 1307357 part 1 - Make css::Rule hold StyleSheet rather than CSSStyleSheet. r=heycam
...
MozReview-Commit-ID: JsJa4YqpCZy
2016-11-23 10:26:20 +11:00
Xidorn Quan
850976ea9c
Bug 1292432 part 9 - Change WebIDL interface of CSSStyleSheet to StyleSheet. r=heycam
...
MozReview-Commit-ID: 5AXhsuvvrwe
2016-10-14 22:25:38 +11:00
Xidorn Quan
3631ceaf3e
Bug 1292432 part 8 - Move XPCOM IDL methods which just call WebIDL methods to StyleSheet. r=heycam
...
MozReview-Commit-ID: 3xpdLGc6hqH
2016-10-14 22:25:38 +11:00
Xidorn Quan
d438ebf740
Bug 1292432 part 6 - Make StyleSheet implement GetCssRules/InsertRule/DeleteRule. r=heycam
...
MozReview-Commit-ID: KD552jWZnA3
2016-10-14 22:25:38 +11:00
Xidorn Quan
eef885dbe9
Bug 1292432 part 5 - Unify completeness check and security check to StyleSheet. r=heycam
...
MozReview-Commit-ID: CmQ2Q9UrLAA
2016-10-14 22:25:38 +11:00
Xidorn Quan
4f732ccfd6
Bug 1292432 part 4 - Move SubjectSubsumesInnerPrincipal to StyleSheet. r=heycam
...
MozReview-Commit-ID: 1DItyq2QrDz
2016-10-14 22:25:38 +11:00
Xidorn Quan
42a86c72db
Bug 1292432 part 2 - Make StyleSheet inherit nsIDOMCSSStyleSheet. r=heycam
...
Some method impls are also moved from CSSStyleSheet to StyleSheet so
that they can be shared between the two subclasses.
The new interface methods added to ServoStyleSheet is currently left
unimplemented. They would be implemented in later patches.
MozReview-Commit-ID: 45wHT9BSHTK
2016-10-14 22:25:38 +11:00
Boris Zbarsky
65a99191a7
Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
...
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.
The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits. Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Andrea Marchesini
7129e695fa
Bug 1297393 - Make passing of subject principals to webidl entry points explicit - part 5 - CSSStyleSheet, r=ehsan
2016-09-29 08:55:21 +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
1eca1c563c
Bug 1304302 part 4 - Add all methods StyleSheetHandle needs to StyleSheet. r=heycam
...
The methods are written in the same order as in StyleSheetHandle::Ptr.
MozReview-Commit-ID: 6b4311ailNj
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
Nicholas Nethercote
887efe04d5
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Matteo Ferretti
69ce27db31
Bug 1241867 - override the DPR without affecting the rendering; r=dbaron
...
- added overrideDPPX to nsIContentViewer
- made CSSStyleSheet and GlobalWindow using the overrideDPPX value
- added unit test with frame check
MozReview-Commit-ID: AOWpGs4vb9H
2016-08-25 13:15:19 +02: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
e5253ea54e
Bug 1291390 - Hoist the ParsingMode getter to the superclass and give it a special binary name for WebIDL. r=bholley,r=heycam
...
In the next patch we want to introduce an accessor called ParsingMode, which conflicts with this one.
2016-08-03 10:26:14 -07:00
Ben Kelly
89532b9967
Bug 1278688 Attribute style sheet memory to last CSSStyleSheet attached to inner to avoid hiding memory in XUL cache. r=bz
2016-06-08 12:21:21 -07:00
Bobby Holley
0a533d159f
Bug 1252611 - Hoist IsComplete/SetComplete into StyleSheet. r=dholbert
2016-03-10 22:18:59 -08:00
Bobby Holley
019759dcb4
Bug 1252611 - Add a method to get the StyleSheetInfo for a given StyleSheet. r=dholbert
...
One of the annoying things about sharing algorithms on the superclass here is that
certain members live on StyleSheet and others live on StyleSheetInfo (a situation
resulting from the split between CSSStyleSheet and CSSStyleSheetInner). This allows
us to write general algorithms on StyleSheet that touch members on StyleSheetInfo
without paying the price of virtual dispatch.
2016-03-10 22:18:57 -08:00
Bobby Holley
cfa801bbc7
Bug 1252611 - Hoist mDocument into StyleSheet. r=dholbert
2016-03-10 22:18:56 -08:00
Cameron McCormack
b638fafd4a
Bug 1250788 - Part 3.2: Factor out CSSStyleSheet members so they can be used by ServoStyleSheet. r=bholley
2016-02-26 12:51:01 +11:00
Cameron McCormack
83daf5b407
Bug 1250788 - Part 3.1: Factor out CSSStyleSheetInner members so they can be used by ServoStyleSheet. r=bholley
2016-02-26 12:51:01 +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
Nicholas Nethercote
88eb373ea0
Bug 1249171 - Simplify nsCOMArray::SizeOfExcludingThis(). r=erahm.
...
Using explicit iteration at measurement sites is much simpler and nicer than
using callbacks.
2016-02-19 14:54:45 +11: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
Tom Tromey
6078f07937
Bug 1239336 - set parsing mode on about:PreferenceStyleSheet; r=heycam,bgrins
2016-01-20 13:35:13 -07:00
Tom Tromey
4b4df34f18
Bug 1230491 - add CSSStyleSheet::parsingMode; r=heycam,bz
2016-01-12 09:50:43 -07:00
L. David Baron
28e210dee6
Bug 1226489 - Pass only a single rule to StyleRuleChanged. r=bzbarsky
2015-11-20 14:34:12 -08:00
Cameron McCormack
654179bc68
Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron
2015-11-17 17:04:09 +11:00
Daniel Holbert
f2c456dbb0
Bug 1176968 part 3: Add support for "-webkit-device-pixel-ratio" media query, along with its min/max variants (behind a pref). r=heycam
2015-11-09 18:09:40 -08:00
L. David Baron
125c812012
Bug 1221436 patch 7 - Remove ReplaceStyleRule/ReplaceRuleInGroup mechanism. r=heycam
...
This is no longer used, thanks to patch 5.
2015-11-09 15:57:17 +08:00
Cameron McCormack
6afa517297
Bug 1220516 - Devirtualize CSSStyleSheet::GetOriginalURI. r=bzbarsky
2015-11-06 12:10:15 +11:00
Cameron McCormack
213b78be69
Bug 1220506 - Remove unused CSSStyleSheet::InsertStyleSheetAt. r=bzbarsky
2015-11-05 19:02:59 +11:00
Cameron McCormack
f857da2f1a
Bug 1220513 - Remove unused CSSStyleSheet::StyleSheetCount. r=bzbarsky
2015-11-05 18:24:41 +11:00
Cameron McCormack
9cd0d6e3f1
Bug 1220509 - Remove unused CSSStyleSheet::PrependStyleRule. r=bzbarsky
2015-11-05 18:24:30 +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
Cameron McCormack
ac05a1a27b
Bug 1196379 - Fix incorrect assertion checking for sorted arrays in nsDocumentRuleResultCacheKey::Matches. r=dbaron
2015-10-14 08:57:06 +11:00
Zack Weinberg
d29e401400
Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam
2015-10-13 17:43:16 -04:00
Boris Zbarsky
029b05138e
Bug 732209 way delayed followup. Make the comments a bit clearer. DONTBUILD
2015-10-08 15:49:16 -04:00
Tom Tromey
198e0a2a05
Bug 1202095 - re-use @imported style sheets from inIDOMUtils.parseStyleSheet. r=heycam
2015-09-18 07:27:00 +02:00
Tom Tromey
f415714a70
Bug 1195978 - set line number when re-parsing sheet. r=heycam
2015-09-04 08:12:00 +02:00
Wes Kocher
02052d2865
Backed out 2 changesets (bug 1035091)
...
a=backout
Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)
2015-09-03 11:41:39 -07:00
Zack Weinberg
4b3150da67
Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam
2015-09-02 13:52:49 -04:00