Michael Wu
|
941f7dc04b
|
Move EventTargetTypeId/NodeTypeId to DOMClass
|
2015-09-12 01:09:46 +02:00 |
|
Corey Farwell
|
3a1d140ab5
|
Enforce linking to spec for method implementations via macros
|
2015-08-31 21:02:23 -04:00 |
|
benshu
|
1e6a2f08fc
|
Time distribution across script event categories.
|
2015-08-28 00:52:41 +02:00 |
|
Anthony Ramine
|
709d347872
|
Make the traits for the IDL interfaces take &self
|
2015-08-27 22:27:43 +02:00 |
|
Anthony Ramine
|
c831c2c0a5
|
Remove helper traits
Now that JSRef<T> is gone, there is no need to have helper traits.
On components/script/*.rs:
# Remove imports.
/^ *use dom::[a-z]+::\{.*Helpers/ {
s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/
s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g
s/\{([a-zA-Z]+)\}/\1/
/\{\}/d
s/::self;$/;/
}
/^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d
On components/script/dom/*.rs:
# Ignore layout things.
/^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; }
# Delete helpers traits.
/^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D
# Patch private helpers.
/^impl.*Private.*Helpers/,/^\}$/ {
s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/
/^ *(unsafe )?fn .*\(self.*[<&]'a/ {
s/&'a /\&/g
s/<'a, /</g
}
/^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/
}
# Patch public helpers.
/^impl.*Helpers/,/^\}$/ {
s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/
/^ *(unsafe )?fn .*\(self.*[<&]'a/ {
s/&'a /\&/g
s/<'a, /</g
}
/^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/
/^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/
}
The few error cases were then fixed by hand.
|
2015-08-27 16:59:02 +02:00 |
|
João Oliveira
|
fd87c8cb3e
|
make dom_struct derive HeapSizeOf,
closes #7357
|
2015-08-27 01:17:48 +01:00 |
|
Johann Tuffe
|
ec07178b6f
|
sort all uses
|
2015-08-20 20:47:12 +08:00 |
|
Josh Matthews
|
8bb853f643
|
Fix existing syntactics nits.
|
2015-08-16 10:30:43 -04:00 |
|
Ravi Shankar
|
89153116fb
|
Splitting ScriptMsg into various enums; r=jdm
|
2015-08-15 02:00:48 +05:30 |
|
Bogdan Cuza
|
45145108da
|
Measure heap memory usage for more types. Fixes #6951
|
2015-08-13 21:44:41 +03:00 |
|
farodin91
|
41620421c3
|
Remove Unnecessary Code in FileReader #6753
|
2015-08-05 18:24:09 +02:00 |
|
r0e
|
3e2e9b8715
|
Fix for issue #6768.
Merged common fields of BlobBody and ReadData into a new struct to
avoid passing redundant information
|
2015-08-03 21:13:10 -07:00 |
|
farodin91
|
5921af4c49
|
Refactor FileReader #6762 #6763 #6750 #6751
|
2015-07-29 14:18:59 +02:00 |
|
farodin91
|
20f99e92d8
|
Adding for support Blob.{close,isClose} #6723
|
2015-07-29 09:54:08 +02:00 |
|
Bogdan Cuza
|
233a769c67
|
Add spec links
|
2015-07-28 13:28:41 +02:00 |
|
Michael Howell
|
572616605a
|
Use empty Vec instead of None.
|
2015-07-26 13:58:29 -07:00 |
|
Michael Howell
|
20f78b4fcb
|
Remove unnecessarily verbose matches.
Fixes #6766.
|
2015-07-25 23:00:40 -07:00 |
|
Ravi Shankar
|
af87687659
|
Combining FileReaderEvent and Process; r=jdm
|
2015-07-26 00:41:07 +05:30 |
|
farodin91
|
27e760e28d
|
Implement FileReader.{readAsText,readAsDataUrl}. Fixes #6172
|
2015-07-23 22:33:51 +02:00 |
|