Xidorn Quan
83118574f0
Bug 1306212 part 3 - Move the only constructor of StyleSheetInfo to StyleSheet.cpp. r=heycam
...
MozReview-Commit-ID: Fv2AyBE1Js0
2016-09-29 16:19:06 +10: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
1074b680ca
Bug 1304302 part 9 - Make StyleSheet::SheetInfo inline. r=heycam
...
MozReview-Commit-ID: 9ZvnIBw6emI
2016-09-26 22:03:25 +10:00
Xidorn Quan
c4e19d3ce5
Bug 1304302 part 5 - Make StyleSheet::As{Gecko,Servo} return pointer instead of reference. r=heycam
...
To match the behavior of StyleSheetHandle so that we can simply replace
uses of StyleSheetHandle with StyleSheet* in later patch.
MozReview-Commit-ID: LfGKrUmzC4h
2016-09-26 22:03:25 +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
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
Jonathan Chan
9b3dfb521f
Bug 1285365 - Part 2: Add missing includes and namespace qualifiers. r=dholbert
...
MozReview-Commit-ID: 5vDmc1yGe1P
2016-07-07 14:05:28 -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