Ms2ger
e1dae2f59b
Use the try macro in unwrap_jsmanaged.
2014-12-20 13:42:38 +01:00
Josh Matthews
8ff3e6bbdc
Create a replacement for Cell<SM primitive>. Fixes #4337 .
2014-12-19 11:17:02 -05:00
bors-servo
b9edc2243a
auto merge of #4444 : Ms2ger/servo/load-simplify, r=jdm
2014-12-19 08:09:48 -07:00
Ms2ger
10bda1a52b
Simplify some code in ScriptTask::load.
2014-12-19 11:40:27 +01:00
Ms2ger
bce3b172e7
Make the argument to dispatch_event_with_target non-optional.
...
The name of the method makes it clear it's supposed to be used with a target
override, so we might as well enforce that.
2014-12-19 11:34:11 +01:00
Eduard Burtescu
8394d4592a
update to namespaced enums without re-exports
2014-12-19 06:37:39 +02:00
Eduard Burtescu
8ad4b97987
update past rustup and use DoesNotBubble instead of Bubbles
2014-12-19 06:29:04 +02:00
Eduard Burtescu
5cfa98d78d
Trigger a load event after evaluating a <script>.
2014-12-19 06:29:04 +02:00
Eduard Burtescu
5059a1b2ac
Handle getting/setting onload for any element.
2014-12-19 06:29:04 +02:00
bors-servo
803e5ef790
auto merge of #4434 : saneyuki/servo/glob_script, r=jdm
...
#4406
2014-12-18 15:57:48 -07:00
bors-servo
8626be6ab0
auto merge of #4403 : pcwalton/servo/back-borrow, r=jdm
...
I have verified that back and forward work once again.
Sorry about this one. r? @jdm
2014-12-18 14:39:50 -07:00
Tetsuharu OHZEKI
a7bb436177
script: Remove glob imports added in #4405
2014-12-19 04:52:48 +09:00
bors-servo
824788649c
auto merge of #4342 : jdm/servo/cssom, r=jdm,metajack
...
This does not implement any notion of CSSStyleDeclaration objects that do not have an owning element; there's no actual CSS object model in play here. This does support setting and getting properties of the style attribute for HTMLElement, and tries to implement the ambiguous CSS value serialization spec.
2014-12-18 11:54:52 -07:00
Josh Matthews
2f5786d6ca
Fix test failures.
2014-12-18 13:51:22 -05:00
bors-servo
1f342638c4
auto merge of #4424 : saneyuki/servo/glob_style, r=SimonSapin
...
#4406
2014-12-18 11:03:55 -07:00
Josh Matthews
0a54665444
Add missing supported CSS properties.
2014-12-18 12:54:03 -05:00
Josh Matthews
6bffc10445
Address review comments.
2014-12-18 12:54:03 -05:00
Josh Matthews
c8557c44a9
Merge CSS2Properties and CSSStyleDeclaration.
2014-12-18 12:54:03 -05:00
Josh Matthews
fab2e63b59
Slight simplification.
2014-12-18 12:54:02 -05:00
Josh Matthews
3cfe8ab53e
Address review comments.
2014-12-18 12:54:02 -05:00
Josh Matthews
9d82e06e64
Implement RemoveProperty, SetProperty, and supported property indices.
2014-12-18 12:54:02 -05:00
Josh Matthews
abca00009c
Add z-index support.
2014-12-18 12:54:02 -05:00
Josh Matthews
5ca61c00b9
Add a ton of properties and improve a bunch of serialization.
2014-12-18 12:54:02 -05:00
Josh Matthews
755ebd6528
Improve color serialization by retaining author-specified keywords.
2014-12-18 12:54:02 -05:00
Josh Matthews
6f8a9b6d46
Implement setting element style properties. Improve serialization to return initial values when unspecified.
2014-12-18 12:54:02 -05:00
Josh Matthews
505e1855a3
Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements.
2014-12-18 12:54:02 -05:00
Josh Matthews
2e14b653bf
Add a style property to HTMLElement.
2014-12-18 12:54:02 -05:00
Josh Matthews
2cfa8e85a6
Stub in some uses of getPropertyValue and sketch out its implementation.
2014-12-18 12:54:02 -05:00
Josh Matthews
4da0ca8ace
Add stub CSS2Properties type.
2014-12-18 12:54:02 -05:00
Cameron Zwarich
1c5d58180d
Add the basic CSSStyleDeclaration CSSOM interface.
...
This just includes the .webidl file (with some of the functionality
commented out) and the stub implementations for the bindings.
This is another step towards #1721 .
2014-12-18 12:54:02 -05:00
Tetsuharu OHZEKI
135ee60f5a
style: Remove glob imports added in #4405
2014-12-19 01:49:24 +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
e2b75670bd
Rename the PrototypeList enums to fix case build warnings.
2014-12-18 10:33:57 +01:00
Patrick Walton
7371e0b8e3
compositing: Implement cursor
per CSS3-UI § 8.1.1 in the CEF/Mac port.
...
I'm not sure how we want to handle Linux cursors, and GLFW has no
ability to set cursors (short of disabling it and managing it yourself).
2014-12-17 22:58:52 -08:00
Chris Paris
96f73d67d4
Use parse_html
in DOMParser.
2014-12-17 17:40:38 -10:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Patrick Walton
4f6c732b54
script: Fix double borrow error when going back. Closes #4402 .
...
I have verified that back and forward work once again.
2014-12-16 21:54:43 -08:00
bors-servo
03666f3105
auto merge of #4397 : jdm/servo/issue_4235, r=jdm
...
Rebased from #4241 .
2014-12-16 16:03:45 -07:00
Jerry Shih
3b4ebd7cd0
handle null for evaluating JS value. #4235
2014-12-16 17:59:23 -05:00
bors-servo
5951056973
auto merge of #4133 : mttr/servo/form_resetting, r=jdm
...
We can reset `<input type=text>` fields! I wish I could've done something with checkboxes, but unfortunately, that's it for now.
In addition to that, this PR implements `HTMLInputAttribute.defaultValue`, updates wpt-test to expect passing tests as a result of that implementation, and fixes an index error crash with text inputs.
edit: also includes an html example where one may lazily watch form resets in action: ` tests/html/form_reset_handsfree.html`
2014-12-16 15:03:49 -07:00
Matthew Rasmus
504f968b20
Implements :indeterminate pseudo-class
...
Addresses reviews
2014-12-16 11:34:04 -08:00
Matthew Rasmus
0c8e1aeda3
Implements dirty value/checked flags for input
...
And modifies test-inputs.html to test.
Fixes wpt breaking mistake
2014-12-16 11:34:04 -08:00
Matthew Rasmus
38e4d86b14
Implements DefaultChecked and resets of checkboxes
2014-12-16 11:34:04 -08:00
Matthew Rasmus
a5c0bb708d
htmltextarea: Fixed some value_changed issues
...
Also modified tests/html/textarea.html to allow for the testing of the
textarea's dirty value flag.
2014-12-16 11:34:04 -08:00
Matthew Rasmus
4d0a6a6bd6
Implements reset button
2014-12-16 11:34:04 -08:00
Matthew Rasmus
7e0c39a82d
Implements FormControl for HTMLTextAreaElement
2014-12-16 11:34:04 -08:00
Matthew Rasmus
a3b3295d80
Adds reset method to FormControl
2014-12-16 11:34:04 -08:00
Matthew Rasmus
f0ce2af89c
Implements basic form resetting
...
What can this do? Reset `<input type=text>` fields back to their default
value through a call to a form's reset method. That's all for now!
Fixes compile error after rebase
2014-12-16 11:33:56 -08:00
Matthew Rasmus
f932a6947a
Implements HTMLInputElement.defaultValue
...
...and changes SetValue to update the input text instead of the content
attr.
Also includes a comment summarizing everything I currently know with
respect to an input elements checkedness vs its IDL attributes vs its
content attributes.
2014-12-16 11:06:56 -08:00
Matthew Rasmus
f686943eb4
Fix crash in textinput
2014-12-16 11:06:55 -08:00