aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-10/+11
|
* auto merge of #4381 : Manishearth/servo/performancenow, r=jdmbors-servo2014-12-151-1/+1
|\
| * Fix window.performance.now()Manish Goregaokar2014-12-161-1/+1
| |
* | script: Improve dirty propagation and fix script-layout synchronization.Patrick Walton2014-12-151-17/+5
|/ | | | | This fixes race conditions whereby layout and script could be running simultaneously.
* Pass the timing information to PerformanceTiming rather than exposing methods.Ms2ger2014-12-111-9/+4
|
* Add oninput/onchange so tests workManish Goregaokar2014-12-051-2/+1
|
* Use MutNullableJS::or_init in Window.Ms2ger2014-12-041-32/+7
|
* Implement Window.sessionStorage: Storage Task, Storage Methods (excluding ↵nkdalmia2014-12-031-0/+16
| | | | Storage event, QuotaExceededError)
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-1/+1
|
* remove comments now that we have more descriptive namesTrevor Riles2014-11-211-2/+2
|
* Use an enum to set set_timeout_or_interval's is_interval field. Fixes #4059Trevor Riles2014-11-211-3/+3
|
* Allow passing arguments to setTimeout/setInterval callbacksMukilan Thiyagarajan2014-11-151-6/+8
|
* Use RefCell in DOMRefCell to reduce duplicated code.Ms2ger2014-11-141-1/+2
|
* Flush layout after executing timers.Josh Matthews2014-11-131-0/+1
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-1/+1
|
* Invert control flow, fix resizing, and improve checkerboardingPatrick Walton2014-11-041-5/+5
| | | | | significantly by giving tiles some time to paint before we render unrendered content.
* Have ContentBox(es)Queries consult the flow treeMartin Robinson2014-11-031-4/+4
| | | | | | | | | Instead of looking at the display tree, have ContentBox(es)Query consult the flow tree. This allow optimizing away parts of the display tree later. To do this we need to be more careful about how we send reflow requests, only querying the flow tree when possible. Fixes #3790.
* Don't force reflow on content changesMatt Brubeck2014-10-291-5/+1
| | | | | | | | This fixes a performance regression caused by the previous patches. Once we allowed script and layout to run during parsing, it was running too often (every time the document changed and called window.reflow). Fixes #1269.
* Infrastructure for synchronous script loadingMatt Brubeck2014-10-291-1/+6
| | | | | | This implements the parts of the "prepare a script element" algorithm that are required for synchronous scripts. It also adds some infrastructure for future support of the `async` and `defer` attributes.
* Macroize event handler getters and setters.Tetsuharu OHZEKI2014-10-231-39/+4
|
* Use DOMRefCell for Window.Tetsuharu OHZEKI2014-10-221-3/+3
|
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* Issue #3236 - Implement timers (setTimeout/setInterval) for workersMukilan Thiyagarajan2014-10-161-153/+20
|
* Privatize WindowTim Taubert2014-10-131-15/+47
|
* Implement extremely basic form submission (fixes #3554)Manish Goregaokar2014-10-111-1/+2
|
* Incremental Style RecalcClark Gaebel2014-10-091-5/+8
| | | | | | | | | | | | | | | | | | | This patch puts in the initial framework for incremental reflow. Nodes' styles are no longer recalculated unless the node has changed. I've been hacking on the general problem of incremental reflow for the past couple weeks, and I've yet to get a full implementation that actually passes all the reftests + wikipedia + cnn. Therefore, I'm going to try to land the different parts of it one by one. This patch only does incremental style recalc, without incremental flow construction, inline-size bubbling, reflow, or display lists. Those will be coming in that order as I finish them. At least with this strategy, I can land a working version of incremental reflow, even if not yet complete. r? @pcwalton
* Remove unnecessary `deref()`s (fixes #3586)Tim Taubert2014-10-091-1/+1
|
* Remove Traceable/Untraceable from page.rsManish Goregaokar2014-10-051-1/+1
|
* Remove Traceable/Untraceable from window.rsManish Goregaokar2014-10-051-21/+20
|
* Replace Cell<Option<JS<T>>> with MutNullableJS<T>Andrew Guertin2014-10-031-4/+4
| | | | https://github.com/servo/servo/issues/3564
* Implement MutNullableJS for mutable, nullable member pointers to DOM objects.Josh Matthews2014-10-011-13/+14
|
* Use JSTraceable everywhereManish Goregaokar2014-09-241-4/+5
|
* Eliminate warningsKeegan McAllister2014-09-201-8/+8
|
* Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)Keegan McAllister2014-09-201-5/+7
|
* Convert various helper traits from &JSRef to JSRefCameron Zwarich2014-09-201-16/+16
| | | | | | | | | | | | | | | I converted them all with a few exceptions: - Methods that were used by trait objects, since trait objects don't work with `self` methods. - Methods that take an &'b JSRef<'a, T> and return an &'b. In reality, many (all?) could return an &'a instead, but this isn't allowed by the Deref trait. - Methods that internally rely on the same issue with Deref. - I left out the traits involved in layout entirely, even though not all of their methods suffer from one of the above problems. There will probably be solutions to all of these problems in the future.
* More progress in the &JSRef -> JSRef conversionCameron Zwarich2014-09-201-42/+42
| | | | | Change all of the <Class>Methods traits to take `self` instead of `&self`.
* First steps of &JSRef -> JSRef conversionCameron Zwarich2014-09-191-15/+15
| | | | | | | | | Replace &JSRef with JSRef in the bulk of the generated code. This will remove a level of indirection throughout all DOM code. This patch doesn't change methods implemented on JSRef<T> to take `self` rather than `&self`, and it leaves a few other uses of &JSRef, but those changes can be made incrementally.
* Merge pull request #3358 from jdm/thespicemustnotreflowJosh Matthews2014-09-171-7/+9
|\ | | | | Delay initiating layout operations for as long as possible.
| * Delay initiating layout operations for as long as possible.Josh Matthews2014-09-151-7/+9
| |
* | Merge pull request #3387 from prasoon2211/base64_methods_for_workerJosh Matthews2014-09-171-68/+77
|\ \ | | | | | | Implement atob and btoa methods for worker
| * | Fix for issue #3238Prasoon Shukla2014-09-171-68/+77
| |/ | | | | | | | | | | Moved the Atob and Btoa methods ouside the impl for WorkerMethod trait and made them publicly accessible from WorkerGlobalScopeMethods via proxy methods.
* | Merge pull request #3374 from Manishearth/lint_unrooted_jsmanagedManish Goregaokar2014-09-171-0/+1
|\ \ | |/ |/| Add lint for ensuring proper rooting of JS<T>; r=jdm
| * Make Reflector #[must_root], propagate to non-HTMLElementsManish Goregaokar2014-09-171-0/+1
| |
* | Handle iframe.src with a javascript protocol URL.Jack Moffitt2014-09-151-2/+23
|/ | | | | This change prevents us from crashing on Amazon and other pages with iframe.src="javascript:foo".
* Cargoify servoJack Moffitt2014-09-081-0/+513