Glenn Watson
5645dba1fa
Make it possible for iframes to create their own pipeline ID.
...
This doesn't change any functionality, but it's the first step towards removing SubpageId.
Adding this change now will allow us to gradually change over code referencing subpage id rather than in one massive PR.
Introduces a namespace for pipeline ID generation - there is a namespace for the constellation thread, and one per script thread.
2015-10-06 17:06:53 +10:00
Glenn Watson
339a3f869b
Split Au type into separate crate, with minimal dependencies.
2015-10-01 07:16:11 +10:00
bors-servo
fb6d0946cb
Auto merge of #7794 - mbrubeck:setdata, r=pcwalton
...
Dirty text nodes when their content changes
Fixes #7793 . r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7794 )
<!-- Reviewable:end -->
2015-09-30 11:49:52 -06:00
Matt Brubeck
7e199f9bda
Dirty text nodes when their content changes
...
Fixes #7793 .
2015-09-29 16:40:46 -07:00
bors-servo
4823ec947e
Auto merge of #7776 - frewsxcv:str-join, r=mbrubeck
...
Avoid allocations when joining strings
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7776 )
<!-- Reviewable:end -->
2015-09-29 16:59:14 -06:00
bors-servo
0c64e4a2c9
Auto merge of #7764 - j3parker:input-caret-only-for-text, r=pcwalton
...
Only display text carets in text inputs
For #7756
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7764 )
<!-- Reviewable:end -->
2015-09-29 14:13:32 -06:00
bors-servo
c356593fd3
Auto merge of #7582 - paulrouget:navigator.platform, r=jdm
...
implement navigator.platform
Fix #7573
I used this as a reference: http://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7582 )
<!-- Reviewable:end -->
2015-09-29 11:42:45 -06:00
Paul Rouget
132724be2b
implement navigator.platform
2015-09-29 08:14:30 +02:00
Corey Farwell
f14f09e886
Use util::str::str_join in more places
...
Instead of intermediate allocations of `Vec`s, we should utilize
`str_join` which operates on iterators
2015-09-28 19:57:06 -04:00
Corey Farwell
2c67f89e9d
Link to 'ask for a reset' tracking issue
...
FIXME added in https://github.com/servo/servo/pull/7745
2015-09-28 18:45:55 -04:00
bors-servo
8547d132f9
Auto merge of #7745 - frewsxcv:html-option-element-selected, r=nox
...
Implement <option> 'defaultSelected' and 'selected' attributes
Continued from #7743
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7745 )
<!-- Reviewable:end -->
2015-09-28 15:46:48 -06:00
bors-servo
a72d7a4f52
Auto merge of #7760 - aopicier:form_getter, r=Manishearth
...
Add form getters for additional elements; update test expectations
This adds form getters for fieldset, label, object, output, select and
textarea elements.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7760 )
<!-- Reviewable:end -->
2015-09-28 13:23:18 -06:00
bors-servo
7933b48430
Auto merge of #7596 - pcwalton:async-web-font-loading, r=mbrubeck
...
layout: Load Web fonts asynchronously.
Improves page load times significantly.
Closes #7343 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7596 )
<!-- Reviewable:end -->
2015-09-28 12:11:50 -06:00
Jacob Parker
9cf43877f2
Only display text carets in text inputs
2015-09-27 19:23:20 -04:00
Patrick Walton
f2f91886ee
script: Stop reallocating so much when converting DOM strings to JS
...
values.
`size_hint()` in `utf16_units()` seems busted, so we do it ourselves.
2015-09-27 15:40:48 -07:00
Patrick Walton
9bb6acd690
layout: Load Web fonts asynchronously.
...
Improves page load times significantly.
Closes #7343 .
2015-09-27 15:38:20 -07:00
Philipp Hartwig
8d67914c7f
Add form getters for additional elements; update test expectations
...
This adds form getters for fieldset, label, object, output, select and
textarea elements.
2015-09-27 19:08:53 +02:00
Jayflux
e6442767ed
changing test_union.html to union.html fixes #7744
2015-09-27 11:15:48 +01:00
Corey Farwell
dec0031112
Implement <option> 'defaultSelected' and 'selected' attributes
...
Continued from #7743
2015-09-26 15:38:54 -04:00
bors-servo
37ce248f31
Auto merge of #7733 - nox:checked, r=Manishearth
...
Properly consider radio button groups
Radio button groups with missing or empty names are always the only element of their respective radio button group.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7733 )
<!-- Reviewable:end -->
2015-09-26 11:21:11 -06:00
Corey Farwell
a844b080d6
Imlement 'bgcolor' IDL attrs for table elements
...
The content attributes and presentational hints were implemented in
the #4289 pull request. This just implements the relevant IDL
attributes.
2015-09-26 10:15:58 -04:00
bors-servo
b7c003f158
Auto merge of #7741 - Wafflespeanut:warning_fix, r=jdm
...
fixed the deprecated `as_slice` warning...
I've put its original implementation from [`core/option.rs`](http://doc.servo.org/src/core/option.rs.html#692 ) instead of the dear departed `as_slice`
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7741 )
<!-- Reviewable:end -->
2015-09-25 13:47:37 -06:00
Ravi Shankar
35d7ced89e
fixed the 'as_slice' deprecated warning
2015-09-26 00:51:04 +05:30
bors-servo
0f8c1b4601
Auto merge of #7682 - ecoal95:webgl-texture2d, r=jdm
...
webgl: Support texImage2D with a canvas as an argument
This involved some refactoring of the 2d context code, which lead to some more test passed there.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7682 )
<!-- Reviewable:end -->
2015-09-25 10:52:52 -06:00
Emilio Cobos Álvarez
90775a7595
script: Return a white bitmap if the canvas has a size but no context
2015-09-25 18:10:50 +02:00
Emilio Cobos Álvarez
d12dbf94f2
Refactor if let Some(a) { Some(b) } else { None }
...
Prefer `Option::map` instead.
2015-09-25 16:34:08 +02:00
Emilio Cobos Álvarez
e2b7a01055
webgl: texImage2D with a canvas argument
2015-09-25 16:20:31 +02:00
bors-servo
e04c2c78ee
Auto merge of #7651 - jgraham:prefs_reset, r=Ms2ger
...
Implement resettable and String-valued prefs.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7651 )
<!-- Reviewable:end -->
2015-09-25 08:18:06 -06:00
Patrick Walton
075fd6818c
script: Wrap a long line.
2015-09-24 18:54:54 -07:00
Patrick Walton
5dce5f0c97
script: Stop copying the document URL.
2015-09-24 18:54:53 -07:00
James Graham
79e548905e
Enable resetable and String prefs.
...
This allows both boolean and string-type preferences. It
also implements a system where prefs that are read from a
configuration file can be reset back to their initial value,
which is useful in a number of cases e.g. when running tests
to ensure that each test starts with the same values for
the prefs.
2015-09-25 00:58:48 +01:00
Anthony Ramine
e72b77b1e3
Properly consider radio button groups
...
Radio button groups with missing or empty names are always the only element
of their respective radio button group.
2015-09-25 00:29:03 +02:00
Anthony Ramine
01ea761bd0
Use an atom for HTMLInputElement's name attribute's value
2015-09-25 00:04:43 +02:00
Manish Goregaokar
982e55ac1c
Add better stringifier for DOMException
2015-09-24 11:58:28 +05:30
Manish Goregaokar
b677f0f4ae
Add form getter for input/button elements; update test expectations
2015-09-24 11:58:24 +05:30
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Corey Farwell
fe7647a43e
Prefer element casting over mem::transmute
2015-09-22 18:38:31 -04:00
bors-servo
4dc986bca3
Auto merge of #7064 - paulrouget:reload, r=Ms2ger
...
Implement location.reload()
This is a naive implementation of `window.location.reload()`.
I'd appreciate any feedback.
I was wondering if it'd be better to implement `ConstellationMsg::Reload` instead of using `load_url`.
Also, what kind of test should I write?
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7064 )
<!-- Reviewable:end -->
2015-09-21 09:03:42 -06:00
Corey Farwell
d8da5c20f6
Remove deprecated 'creator' WebIDL attribute
...
According to @Ms2ger, the 'creator' attribute was merged into 'setter'
2015-09-21 07:12:17 -04:00
Corey Farwell
6c6c6663ab
Update spec link to point to exact section
2015-09-21 07:11:58 -04:00
bors-servo
ec9aa9ace0
Auto merge of #7690 - frewsxcv:codegen-cleanup, r=nox
...
Minor DOM codegen cleanup
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7690 )
<!-- Reviewable:end -->
2015-09-21 01:53:56 -06:00
Paul Rouget
c7e5e785b2
implement window.location.reload()
2015-09-21 07:56:33 +02:00
Corey Farwell
3b99893eaa
Python 'is' operator should not be used to check value
...
'is' checks reference. '==' checks value
2015-09-20 12:39:32 -04:00
bors-servo
566f1eb6f6
Auto merge of #7689 - frewsxcv:supported-property-names-links, r=nox
...
Add/update spec links for SupportedPropertyNames methods
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7689 )
<!-- Reviewable:end -->
2015-09-20 10:21:22 -06:00
Corey Farwell
38bbdd80db
Remove parens around Python 'assert' statement
...
'assert' is a statement, not a function
2015-09-20 12:10:28 -04:00
Corey Farwell
83333e972c
Add/update spec links for SupportedPropertyNames methods
2015-09-20 11:48:14 -04:00
bors-servo
d1269294e6
Auto merge of #7611 - nox:cache-element-id, r=frewsxcv
...
Cache the `id` attribute on Element
Thanks to @asabil for the original work, I only rebased it.
Fixes #6359 and #7040 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7611 )
<!-- Reviewable:end -->
2015-09-20 09:23:20 -06:00
bors-servo
61267cde63
Auto merge of #7601 - nox:cleanup-dom-webidls, r=Ms2ger
...
Improve DOM interfaces' extended attributes
Some should have been `[SameObject]` instead of `[Constant]`. The rest of the changes are additional `[Constant]` and `[Pure]` extended attributes on many operations.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7601 )
<!-- Reviewable:end -->
2015-09-19 17:50:22 -06:00
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Anthony Ramine
49219baab8
Annotate many DOM attribute and methods with [Constant] and [Pure]
2015-09-19 16:03:13 +02:00