Adenilson Cavalcanti
cdebb3ca54
Load a placeholder when a url to an image is broken.
...
I decided to use the old Netscape broken image link icon (later we may
replace the image asset for something more trendier). The ref test will
expect that a failed load should display the rippy image.
ImageCacheTask users can define if a placeholder image should be loaded
at start up or not. This enables both the new behavior (e.g. always
return an image even for broken urls) as also the previous one.
2015-03-30 10:02:54 -07:00
bors-servo
5ead929fea
auto merge of #5453 : Ms2ger/servo/unused-import, r=glennw
...
I accidentally left it in after removing the calls to stdout/stderr in
d926b8342b
.
2015-03-30 09:46:07 -06:00
bors-servo
0d00e37c23
auto merge of #5403 : frewsxcv/servo/cookie-default-path, r=jdm
...
* Previously, the function returned an owned String, which is not
necessary, so now it returns a slice
* Steps have now been documented/labeled
* The last step of the algorithm was incorrect; it would only slice the
path if the "/" was the last character, which is not what the spec
says. The spec says to slice up until (but not including) the last
"/". Also added a regression test for this.
2015-03-30 08:52:06 -06:00
bors-servo
629edc5c46
auto merge of #5379 : genkku/servo/code_value, r=jdm
...
Changed Key::N to KeyN, also changed Equals to Equal, and NumpadEquals to NumpadEqual.
2015-03-30 07:58:06 -06:00
bors-servo
1bd8e18d92
auto merge of #5455 : mmatyas/servo/canvas_arc_negativeradius, r=Ms2ger
...
"Negative values for radius must cause the implementation to throw an IndexSizeError exception."
2015-03-30 04:16:04 -06:00
Mátyás Mustoha
0a3b4f2f65
Canvas: arc throws IndexSizeError on negative radius.
2015-03-30 11:05:33 +02:00
Mikko Vanhatalo
ee1aa6c999
Fixed code_value values for Equal & KpEqual
2015-03-30 11:52:18 +03:00
Ms2ger
259d650a21
Remove an unused import.
...
I accidentally left it in after removing the calls to stdout/stderr in
d926b8342b
.
2015-03-30 10:22:31 +02:00
bors-servo
350a35428a
auto merge of #5448 : frewsxcv/servo/fix-assert, r=Ms2ger
...
We should ensure the parameter is lowercased. Right now, the assert will
always return true.
Discussed in #5445
Introduced in ee2ccc4f87
2015-03-29 20:31:01 -06:00
bors-servo
acf98dcccd
auto merge of #5444 : servo/servo/gonk-warnings, r=jdm
2015-03-29 17:54:59 -06:00
bors-servo
39556cc832
auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdm
...
Closes #5417
2015-03-29 17:10:01 -06:00
bors-servo
a0a1304be0
auto merge of #5443 : Ms2ger/servo/int, r=saneyuki
2015-03-29 16:16:01 -06:00
Corey Farwell
ae9b1636b1
Fix useless assert in script::dom::element
...
We should ensure the parameter is lowercased. Right now, the assert will
always return true.
Discussed in #5445
Introduced in ee2ccc4f87
2015-03-29 17:54:01 -04:00
bors-servo
0fd41847a3
auto merge of #5447 : frewsxcv/servo/as-slice, r=jdm
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:52:02 -06:00
Corey Farwell
d838fcce30
Remove some unnecessary uses of as_slice
...
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:
* `String` -> `str`
* `Atom` -> `str`
The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Brandon DeRosier
ccc55d658f
Use box syntax instead of Box::new()
...
Closes #5417
2015-03-29 13:41:14 -04:00
bors-servo
b8ea10bfe3
auto merge of #5341 : Ms2ger/servo/wpt_20150317, r=jdm
2015-03-29 06:37:00 -06:00
Ms2ger
98c5da7e2e
Stop using int in ANativeWindow.
2015-03-29 14:36:38 +02:00
Ms2ger
d926b8342b
Update gonk's build.rs.
2015-03-29 14:36:11 +02:00
Ms2ger
1ecfc9f582
Update web-platform-tests.
2015-03-29 14:19:05 +02:00
bors-servo
0d3574b583
auto merge of #5442 : servo/servo/fix-more-gonk-warnings, r=Ms2ger
2015-03-29 05:49:01 -06:00
bors-servo
1282850b99
auto merge of #5436 : servo/servo/rooted-vec, r=Ms2ger,jdm
2015-03-29 05:07:01 -06:00
Ms2ger
865d4b4eb4
Use usize for UnsafeFlow.
2015-03-29 12:51:27 +02:00
Ms2ger
95004ee4b6
Use usize for Floats::len.
2015-03-29 12:47:25 +02:00
Ms2ger
d2252a7214
Use usize for cache indices.
2015-03-29 12:46:28 +02:00
Ms2ger
803eba0e59
Use usize for cache sizes.
2015-03-29 12:45:19 +02:00
Ms2ger
339ab881a2
Use usize in ApplicableDeclarationsCacheQuery's hash method.
2015-03-29 12:45:07 +02:00
Ms2ger
e39c68e307
Use usize in flow_list.
2015-03-29 12:43:44 +02:00
Michael Wu
88b31933c4
Sync gonk lib.rs & main.rs with components/servo
2015-03-29 12:38:05 +02:00
Michael Wu
1ffa40ab55
Fix warning in gonk input code
2015-03-29 12:36:05 +02:00
Mukilan Thiyagarajan
e8a1e9eabb
Implement RootedVec<T>
2015-03-29 11:58:25 +02:00
bors-servo
7d0d851456
auto merge of #5437 : Ms2ger/servo/int, r=jdm
2015-03-29 03:49:01 -06:00
bors-servo
4cf76d65ba
auto merge of #5440 : frewsxcv/servo/spec-links, r=jdm
2015-03-28 19:01:03 -06:00
Corey Farwell
46f14449d0
Add links to spec for script::dom structs/methods
2015-03-28 20:04:30 -04:00
Ms2ger
9904216d76
Use u32 for generation numbers.
2015-03-28 22:46:16 +01:00
Ms2ger
d521cd006e
Remove the unused FloatedBlockInfo::index field.
2015-03-28 22:42:14 +01:00
Ms2ger
da1e3a3f11
Use usize for debug ids.
2015-03-28 22:37:41 +01:00
Ms2ger
40c710ab19
Pass u32 to LayoutNode::dump_indent.
2015-03-28 22:32:43 +01:00
Ms2ger
7a2ab2784d
Use usize for UnsafeLayoutNode.
2015-03-28 22:30:55 +01:00
bors-servo
e70beca74b
auto merge of #5435 : frewsxcv/servo/dom-attr-cleanup, r=jdm
...
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization
2015-03-28 14:40:02 -06:00
bors-servo
674e52afa1
auto merge of #5416 : Ms2ger/servo/int, r=jdm
2015-03-28 13:58:02 -06:00
Corey Farwell
3a5c94cf70
Cleanup and modernize script::dom::attr
...
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization
2015-03-28 15:11:54 -04:00
bors-servo
be255304af
auto merge of #5434 : Ms2ger/servo/util-old-io, r=jdm
2015-03-28 13:07:06 -06:00
Ms2ger
573f721714
Move to new io in util.
2015-03-28 20:02:23 +01:00
bors-servo
ce3f777a12
auto merge of #5432 : Ms2ger/servo/stderr-comp, r=jdm
2015-03-28 12:10:06 -06:00
Ms2ger
89ce2216fd
Use the new io's stderr handle to write out the hard-fail warning.
2015-03-28 18:10:38 +01:00
bors-servo
2b9bfb9af3
auto merge of #5431 : Ms2ger/servo/unused-imports, r=jdm
...
These became unused in f45db7714c
; I don't know
why I didn't notice that.
2015-03-28 11:07:03 -06:00
Ms2ger
e106ad84bf
Remove some unused imports.
...
These became unused in f45db7714c
; I don't know
why I didn't notice that.
2015-03-28 17:23:48 +01:00
bors-servo
65a0ebc567
auto merge of #5418 : Ms2ger/servo/contenttest, r=jdm
2015-03-28 09:37:06 -06:00
Ms2ger
864679db24
Use u32 for SubpageId.
2015-03-28 15:55:03 +01:00