Björn Steinbrink
6ba21750af
Update rust-azure to fix a dangling pointer bug
...
Fixes #3084
2014-08-17 05:18:19 +02:00
Chris Paris
e3ae54dd5e
Improve Option deconstruction
2014-08-16 09:31:22 -10:00
Manish Goregaokar
e9608a6560
Merge pull request #3098 from wenderen/HTMLTableElement.caption
...
implement GetCaption and SetCaption for HTMLTableElement; r=Manishearth
2014-08-16 20:27:51 +05:30
Simon Sapin
444ff84259
Merge pull request #3078 from SimonSapin/style-cleanup
...
Various refactoring and fixes in the style crate
2014-08-16 12:24:34 +01:00
Rohan Prinja
795fd68032
Implement HTMLTableElement.caption
2014-08-16 16:29:12 +05:30
Ms2ger
1b543144f1
Pass an Atom to before_remove_attr and after_set_attr.
2014-08-16 12:32:19 +02:00
Ms2ger
9501d2e451
Make Attr::local_name an Atom.
2014-08-16 12:13:02 +02:00
Ms2ger
ba592364b7
Merge pull request #3094 from Ms2ger/importScripts
...
Implement WorkerGlobalScope.importScripts; r=Manishearth
2014-08-16 12:11:14 +02:00
Ms2ger
aed642babe
Implement WorkerGlobalScope.importScripts.
2014-08-16 12:09:09 +02:00
Simon Sapin
4ca385ba10
Take an iterator when parsing selectors.
2014-08-16 08:32:59 +01:00
Simon Sapin
5f3dc55f72
Make more things private to the style crate.
2014-08-16 08:32:47 +01:00
Simon Sapin
7e78e54c3f
Refactor and fix src parsing in @font-face
2014-08-16 08:31:23 +01:00
Simon Sapin
6a5fed0471
Dissallow !important in @font-face
2014-08-16 08:31:23 +01:00
Simon Sapin
0945bd9fb4
Fix #2802 : fix parsing of font-family in @font-face
2014-08-16 08:31:23 +01:00
Simon Sapin
639a6c51bf
Fix case sensitivity of local name selectors.
2014-08-16 08:31:23 +01:00
Simon Sapin
06efa195e8
Move UA stylesheet to src/components/style
2014-08-16 08:31:23 +01:00
Simon Sapin
7e635946c2
Remove special treatment of UA stylesheet for parse errors.
...
CSS parse errors are now off by default anyway.
2014-08-16 08:31:23 +01:00
Simon Sapin
733e87eb2c
Cloning DeclarationBlock
is cheap, the declarations are in an Arc
.
2014-08-16 08:31:23 +01:00
Simon Sapin
9ce519ba21
Have quicksort take a compare function rather than requires Ord and Eq.
2014-08-16 08:31:22 +01:00
Simon Sapin
1cbe73c583
Rename MatchedProperty to DeclarationBlock
2014-08-16 08:31:22 +01:00
Simon Sapin
58ed502b7f
Fix parsing of text-decoration: none
...
It would previously accept and ignore garbage in the declaration value
after the `none` keyword.
2014-08-16 08:31:22 +01:00
Simon Sapin
9564d91b5e
Use Result/Err(()) in Selector parsing.
...
… get rid of some custom `enum` types for parsing return values.
`Option<Option<T>>` was ridiculous, but `Result<Option<T>, ()>`
make perfect sense.
Also, we can now take advantage of the `try!()` macro.
2014-08-16 08:31:16 +01:00
Simon Sapin
d9278e3f6a
Use Result/Err(()) instead of Option/None to indicate a CSS parse error.
2014-08-16 08:30:47 +01:00
Martin Robinson
96a813724f
Mark all layers as having changed content during pinch zoom
...
This ensures that layers know that they need to re-issue buffer
requests immediately instead of waiting until another content change
happens.
Fixes #2988 .
2014-08-15 18:08:00 -07:00
Martin Robinson
ebfe8df2a0
Update to latest rust-layers
...
We now need to pass through the content age of the LayerBuffer when
creating it.
2014-08-15 15:42:03 -07:00
Simon Sapin
061e7e1620
Merge pull request #3096 from SimonSapin/make-snapshot
...
Download Rust snapshots in make rather than configure. r=@Manishearth
2014-08-15 21:57:55 +01:00
Simon Sapin
5f4e1d0f61
Download Rust snapshots in make rather than configure.
...
When parallel make (`-j`) is used, this enables building non-Rust dependencies
while the Rust compiler is being downloaded.
On my laptop, from an empty build directory,
`~/projects/servo/configure --disable-optimize && make -j6`
goes from ~7 minutes to ~6 minutes.
The difference matches the download time.
2014-08-15 19:54:42 +01:00
Chris Paris
c70b88c163
Implement HTMLScriptElement.text
2014-08-15 06:20:21 -10:00
Chris Paris
13c9d4c4a0
Implement HTMLAnchorElement.text
2014-08-15 06:10:35 -10:00
Chris Paris
1c1db51ccf
Implement window.atob/btoa
2014-08-15 05:54:57 -10:00
Ms2ger
5b2e08bb5c
Merge pull request #3093 from Ms2ger/worker-location
...
Implement WorkerGlobalScope.location; r=Manishearth
2014-08-15 11:30:55 +02:00
Ms2ger
e7dd281979
Implement WorkerGlobalScope.location.
2014-08-15 09:48:41 +02:00
Ms2ger
fe3b62e9b4
Merge pull request #3089 from Ms2ger/worker-navigator
...
Implement DedicatedWorkerGlobalScope.navigator; r=abinader
2014-08-15 09:45:35 +02:00
Ms2ger
eadb1c154a
Implement DedicatedWorkerGlobalScope.navigator.
2014-08-15 09:43:37 +02:00
Jack Moffitt
f300e146b0
Merge pull request #2274 from metajack/build-32bit
...
Enable 32bit builds.
2014-08-14 21:47:14 -06:00
Jack Moffitt
9a75a0fa12
Enable 32bit builds.
...
You specify a 32bit build by setting --target on configure.
2014-08-14 13:52:19 -06:00
Ms2ger
7cd57870b4
Merge pull request #3088 from brunoabinader/document-links-cache
...
Implement Document.links cache; r=Ms2ger
2014-08-14 20:56:32 +02:00
Ms2ger
d2ffbec5ed
Merge pull request #3080 from Ms2ger/clone
...
Structured clone the argument to postMessage; r=larsberg
2014-08-14 16:30:05 +02:00
Ms2ger
eaea735f72
Structured clone the argument to DedicatedWorkerGlobalScope.postMessage.
2014-08-14 16:28:57 +02:00
Ms2ger
1dca6146a8
Structured clone the argument to Worker.postMessage.
2014-08-14 16:28:57 +02:00
Bruno de Oliveira Abinader
3b916d4e30
Removed comment as issue #1847 is now fixed.
2014-08-14 10:27:04 -04:00
Bruno de Oliveira Abinader
66eb73ca44
Added tests for Document's Link cache
2014-08-14 10:10:01 -04:00
Bruno de Oliveira Abinader
330f72fba5
Implement cached Document.Links
2014-08-14 10:06:52 -04:00
Ms2ger
251d818de2
Merge pull request #3087 from Manishearth/node-textcontent-throws
...
node.textContent and node.nodeValue should not throw; r=Ms2ger
2014-08-14 15:37:42 +02:00
Manish Goregaokar
6b78b93be1
node.textContent and node.nodeValue should not throw
2014-08-14 18:33:31 +05:30
Ms2ger
984ec0e0c3
Merge pull request #3081 from Ms2ger/location-empty
...
Return the empty string as appropriate for location.{search,hash}; r=Manishearth
2014-08-14 10:50:12 +02:00
Jack Moffitt
16ef461af9
Merge pull request #3083 from glennw/font-cache-error
...
Improve error message for when web fonts fail to load.
2014-08-13 20:59:17 -06:00
Glenn Watson
93fc4e13f3
Improve error message for when web fonts fail to load.
2014-08-14 09:10:53 +10:00
Ms2ger
d853db2c69
Return the empty string as appropriate for location.{search,hash}.
2014-08-13 22:52:42 +02:00
Ms2ger
e8d89ca464
Merge pull request #3079 from Ms2ger/tests-workers-2
...
Enable some workers tests; r=jgraham
2014-08-13 21:25:47 +02:00