aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-6/+4
|
* Auto merge of #8871 - KiChjang:task-source-channels, r=KiChjangbors-servo2016-01-011-12/+28
|\ | | | | | | | | | | | | | | | | | | | | | | Add 5 different task source channels This is **not** complete. I really need feedback right away since I felt that the direction I'm heading is very wrong. Partial #7959. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8871) <!-- Reviewable:end -->
| * Split script_chan into 5 different task queue channelsKeith Yeung2015-12-091-12/+28
| |
* | Move LayerKind and ScrollPolicy enums to gfx_traitsBrandon Fairchild2015-12-201-1/+1
| | | | | | | | | | | | This also moves LayerId and LayerProperties to gfx_traits. Fixes #8836.
* | Auto merge of #8863 - simartin:issue_8352, r=jdmbors-servo2015-12-211-2/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes https://github.com/servo/servo/issues/8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
| * | Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert().Simon Martin2015-12-191-2/+7
| | |
* | | Moved ScriptToCompositorMsg enum and EventResult enum to script_traitsBeomjin Kim2015-12-201-2/+2
|/ / | | | | | | | | Moved ScriptToCompositorMsg enum and EventResult enum to script_traits resolving issue #8835.
* | Add test to constellation to avoid writing reftest image if there are ↵Glenn Watson2015-12-171-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pending frames. Also change when pipelines become active. This makes the constellation activate a pipeline as the current frame when it is ready to do initial reflow, rather than when it is ready to paint. This fixes a number of intermittent failures that could previously occur if an iframe was not visible - which would mean it was never moved from a pending frame in the constellation to an active frame. (It happens that webrender exposes these intermittents as permanent failures).
* | Add pipeline information to CSS error reporting.GauriGNaik2015-12-141-2/+2
| |
* | Rename the browsercontext module.Ms2ger2015-12-111-1/+1
|/
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-1/+1
|
* Auto merge of #8862 - fstr:move_workerid, r=Ms2gerbors-servo2015-12-081-2/+2
|\ | | | | | | | | | | | | | | | | | | Moved WorkerId type to devtools_traits Fixes #8846. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862) <!-- Reviewable:end -->
| * Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-071-2/+2
| |
* | Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-1/+22
|/
* Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-251-2/+10
| | | | ParserContext
* Make the needs_reflow method actually work correctly.Eli Friedman2015-11-211-1/+5
| | | | | The document node is always dirty because layout never clears the bit; instead, check the dirty bit of the root element.
* Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-3/+4
|
* Auto merge of #8477 - asajeffrey:opaque-domstring, r=asajeffreybors-servo2015-11-131-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Opaque DOMString This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper). The changes are: * Replacing DOMString(foo) by DOMString::from(foo). * Replacing foo.0 by String::from(foo). * Adding functions clear, push_str and extend for in-place mutation of DOMStrings. * Replacing DOMString by String in other threads (devtools, storage and filereader). * Making DOMString implement !Send. * Removing the pub attribute from the contents of DOMString. This enables experimenting with other string representations in the DOM. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8477) <!-- Reviewable:end -->
| * Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-3/+3
| | | | | | | | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* | Auto merge of #8492 - jdm:e10s-timer-events, r=jdmbors-servo2015-11-131-7/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | script: Make timer events e10s-safe. Closes #8235. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8492) <!-- Reviewable:end -->
| * script: Make timer events e10s-safe.Patrick Walton2015-11-121-7/+7
| | | | | | | | Closes #8235.
* | Differentiate between error and non-error event handlers per the spec.Josh Matthews2015-11-121-3/+0
| |
* | Use the conversion traits from js.Ms2ger2015-11-121-1/+2
|/
* Clean up the conversion routinesAnthony Ramine2015-11-111-4/+2
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* XHR timeouts use same abstraction as scripts timers. (fixes #3396)benshu2015-11-111-2/+12
|
* Move Stylesheet loading and ownership from the layout task into HTML elementsTill Schneidereit2015-11-071-0/+7
| | | | | | | | | | | | | | Stylesheets for `HTMLLinkElement`s are now loaded by the resource task, triggered by the element in question. Stylesheets are owned by the elements they're associated with, which can be `HTMLStyleElement`, `HTMLLinkElement`, and `HTMLMetaElement` (for `<meta name="viewport">). Additionally, the quirks mode stylesheet (just as the user and user agent stylesheets a couple of commits ago), is implemented as a lazy static, loaded once per process and shared between all documents. This all has various nice consequences: - Stylesheet loading becomes a non-blocking operation. - Stylesheets are removed when the element they're associated with is removed from the document. - It'll be possible to implement the CSSOM APIs that require direct access to the stylesheets (i.e., ~ all of them). - Various subtle correctness issues are fixed. One piece of interesting follow-up work would be to move parsing of external stylesheets to the resource task, too. Right now, it happens in the link element once loading is complete, so blocks the script task. Moving it to the resource task would probably be fairly straight-forward as it doesn't require access to any external state.
* Auto merge of #8304 - dzbarsky:borrowck, r=Ms2gerbors-servo2015-11-071-3/+1
|\ | | | | | | | | | | | | | | Cleanup some unneeded let bindings <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8304) <!-- Reviewable:end -->
| * Cleanup some unneeded let bindingsDavid Zbarsky2015-11-061-3/+1
| |
* | Implement cancellable runnables.Josh Matthews2015-11-061-2/+17
|/ | | | Additionally, make image load events cancellable. Resolves #7731.
* Auto merge of #8332 - Ms2ger:8209-comment, r=frewsxcvbors-servo2015-11-051-3/+0
|\ | | | | | | | | | | | | | | Remove obsolete comment (fixes #8209). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8332) <!-- Reviewable:end -->
| * Remove obsolete comment (fixes #8209).Ms2ger2015-11-041-3/+0
| |
* | Auto merge of #7128 - Ms2ger:bc-root, r=jdmbors-servo2015-11-041-13/+10
|\ \ | |/ |/| | | | | | | | | | | Make BrowsingContext JS-managed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7128) <!-- Reviewable:end -->
| * Make BrowsingContext JS-managed.Ms2ger2015-11-041-13/+10
| |
* | Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-4/+4
|/ | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-8/+6
|
* Auto merge of #8221 - wenderen:8130-reorganise, r=jdmbors-servo2015-11-041-2/+3
|\ | | | | | | | | | | | | | | | | | | move modules around for #8130 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8221) <!-- Reviewable:end -->
| * merge from masterrohan.prinja2015-11-031-8/+8
| |\
| * | rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
| | |
| * | more refactoringrohan.prinja2015-10-301-1/+2
| | |
| * | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
| | |
* | | Auto merge of #8239 - Ms2ger:ScriptReflow, r=pcwaltonbors-servo2015-11-031-14/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | Remove unused code around ScriptReflow. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8239) <!-- Reviewable:end -->
| * | Remove unused Window::control_chan.Ms2ger2015-10-311-5/+1
| | |
| * | Remove unused Window::last_reflow_id.Ms2ger2015-10-311-7/+0
| | |
| * | Remove unused fields from ScriptReflow.Ms2ger2015-10-311-2/+0
| |/
* | Remove JSTraceable implementation from RefCell.Eli Friedman2015-11-021-7/+7
| | | | | | | | | | The implementation wasn't really right, and we would rather just use DOMRefCell anyway.
* | Un-boxed ScriptReflowOlivia Nordquist2015-10-311-1/+1
|/
* Check modified event state from layout and dirty it there.Bobby Holley2015-10-271-10/+2
| | | | | | | | | This adds some overhead, but also provides the small performance benefit of avoiding dirtying in the case where an event state is toggled an even number of times between reflows. The main benefit here though is that it sets us up to be smarter about what we mark as dirty using restyle hints.
* Pass the document instead of the documentElement to reflow.Bobby Holley2015-10-271-9/+1
|
* Remove Window::layout_join_port.Ms2ger2015-10-221-25/+11
| | | | It is only used in Window::force_reflow.
* Remove Window::handle_reflow_complete_msg and ↵Ms2ger2015-10-221-7/+0
| | | | | | | | | | | ScriptTask::handle_reflow_complete_msg. Code on the script thread can only observe self.layout_join_port being Some() between the time it is set in force_reflow, and the join_layout call later in that function, and no significant code is called in that code. Since these functions do nothing useful if layout_join_port is None, there is no point in keeping them.