Glenn Watson
1e0e98b63c
Implement window.frameElement, change window.parent to make use of it.
2015-02-07 06:46:29 +10:00
Keith Yeung
af4b371107
Moved Location object from Window to Document
2015-02-06 02:13:23 +08:00
Glenn Watson
0873e5c8ca
Implement window.parent for iframes.
2015-02-05 07:04:04 +10:00
Ms2ger
505159a464
Import the util crate as util rather than servo_util.
...
This used to conflict with the util crate from the standard library, which
has long since been removed.
The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Tom Schuster
d54a45a2b1
Implement most of the important WindowProxy traps
2015-01-12 17:41:48 +01:00
Ms2ger
edc1d89251
Deny unsafe blocks in script.
...
As a first start, this allows them indiscriminately where used.
2015-01-09 10:13:25 +01:00
bors-servo
df6a7959df
auto merge of #4069 : guillaumebort/servo/fix/3936, r=jdm
2015-01-08 08:48:54 -07:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Guillaume Bort
5fe3a3e54f
Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)
2015-01-07 11:39:15 +01:00
Ms2ger
b51e83819d
Fix obsolete format traits.
...
They are to be removed from the language in the next rust upgrade.
2015-01-02 19:04:18 +01:00
Josh Matthews
9a7cd31134
Force all messages to worker tasks to send a TrustedWorkerAddress along with the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
2014-12-29 13:53:49 -05:00
Manish Goregaokar
7d65673561
Remove extra spaces
...
Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
2014-12-27 02:53:35 +05:30
Manish Goregaokar
552db382d6
Remove manual impls of Reflectors (autogen)
...
Obtained via:
`find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"`
`find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"`
followed by semi-automated removal of leftover imports
2014-12-27 02:52:33 +05:30
Tetsuharu OHZEKI
a7bb436177
script: Remove glob imports added in #4405
2014-12-19 04:52:48 +09:00
Matt McCoy
e4b029623f
This fixes #4407 . This removes all unnecessary clones when calling fire_timer.
2014-12-18 10:57:15 -05:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
bors-servo
e0ec21e814
auto merge of #4381 : Manishearth/servo/performancenow, r=jdm
2014-12-15 20:00:53 -07:00
Manish Goregaokar
eec68faa41
Fix window.performance.now()
2014-12-16 08:28:11 +05:30
Patrick Walton
d101c1dd91
script: Improve dirty propagation and fix script-layout synchronization.
...
This fixes race conditions whereby layout and script could be running
simultaneously.
2014-12-15 14:16:04 -08:00
Ms2ger
e4dc6ca2ec
Pass the timing information to PerformanceTiming rather than exposing methods.
2014-12-11 18:41:18 +01:00
Manish Goregaokar
e7b3caa386
Add oninput/onchange so tests work
2014-12-05 18:49:34 -08:00
Ms2ger
d9993ebcc3
Use MutNullableJS::or_init in Window.
2014-12-04 15:57:05 +01:00
nkdalmia
f6fb9f862d
Implement Window.sessionStorage: Storage Task, Storage Methods (excluding Storage event, QuotaExceededError)
2014-12-03 18:31:50 -05:00
Michael Booth
2cbf5a3671
Updated reflect_dom_object to be passed by value
2014-11-30 19:47:52 +00:00
Trevor Riles
0cba3eec62
remove comments now that we have more descriptive names
2014-11-21 15:12:52 -06:00
Trevor Riles
89f1949913
Use an enum to set set_timeout_or_interval's is_interval field. Fixes #4059
2014-11-21 15:10:27 -06:00
Mukilan Thiyagarajan
4b2b0d0723
Allow passing arguments to setTimeout/setInterval callbacks
2014-11-15 18:32:12 +05:30
Ms2ger
86d609abaf
Use RefCell in DOMRefCell to reduce duplicated code.
2014-11-14 21:18:43 +01:00
Josh Matthews
cbed5da9fa
Flush layout after executing timers.
2014-11-13 12:53:54 -05:00
Jack Moffitt
d1b433a3b3
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
2014-11-13 11:17:43 +10:00
Patrick Walton
10f7b49cf7
Invert control flow, fix resizing, and improve checkerboarding
...
significantly by giving tiles some time to paint before we render
unrendered content.
2014-11-04 13:51:56 -08:00
Martin Robinson
2d72f00ccf
Have ContentBox(es)Queries consult the flow tree
...
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 .
2014-11-03 10:30:28 -08:00
Matt Brubeck
f39e01b336
Don't force reflow on content changes
...
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 .
2014-10-29 14:31:47 -07:00
Matt Brubeck
65a0d1fe9a
Infrastructure for synchronous script loading
...
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.
2014-10-29 14:30:42 -07:00
Tetsuharu OHZEKI
0a84c5d479
Macroize event handler getters and setters.
2014-10-23 13:03:58 +09:00
Tetsuharu OHZEKI
36d8dc5a42
Use DOMRefCell for Window.
2014-10-22 10:01:01 +09:00
Manish Goregaokar
3f2cbb275b
Use #[dom_struct] everywhere
2014-10-16 10:20:18 +05:30
Mukilan Thiyagarajan
0d7e13f646
Issue #3236 - Implement timers (setTimeout/setInterval) for workers
2014-10-16 05:59:44 +05:30
Tim Taubert
da7590d108
Privatize Window
2014-10-13 13:25:44 +02:00
Manish Goregaokar
b28a4c8858
Implement extremely basic form submission ( fixes #3554 )
2014-10-11 16:00:16 +05:30
Clark Gaebel
d12c6e7383
Incremental Style Recalc
...
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
2014-10-09 12:55:21 -04:00
Tim Taubert
35f8270c64
Remove unnecessary deref()
s ( fixes #3586 )
2014-10-09 15:01:54 +02:00
Manish Goregaokar
707a2870fa
Remove Traceable/Untraceable from page.rs
2014-10-05 22:53:50 +05:30
Manish Goregaokar
22567762a0
Remove Traceable/Untraceable from window.rs
2014-10-05 22:39:24 +05:30
Andrew Guertin
815a701455
Replace Cell<Option<JS<T>>> with MutNullableJS<T>
...
https://github.com/servo/servo/issues/3564
2014-10-03 20:08:05 -04:00
Josh Matthews
54fcab61d6
Implement MutNullableJS for mutable, nullable member pointers to DOM objects.
2014-10-01 17:06:23 +02:00
Manish Goregaokar
cc44a3b064
Use JSTraceable everywhere
2014-09-24 05:44:49 +05:30
Keegan McAllister
dc86e83654
Eliminate warnings
2014-09-20 13:00:55 -07:00
Keegan McAllister
a640a7c5c3
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
2014-09-20 13:00:06 -07:00