lpy
5c5da8f075
Replace explicit match with as_ref().( fixes #1870 )
2014-03-10 16:22:56 +08:00
S Pradeep Kumar
9d510a7112
Implement min-width and max-width for non-block flows.
...
+ Add simple reftests.
+ Add reftests for float min-width and max-width.
2014-03-10 15:22:15 +09:00
S Pradeep Kumar
e98c839ab0
Add a trait for width and margin calculation.
...
+ Divide the width code into several methods.
+ Bring in the various width calculation methods into the trait
methods (like for blocks, floats, absolute flows, etc.)
+ Calculate margin top and bottom during assign width even for absolute
flows.
+ Add the Replaced versions for Floats and Absolute flows.
2014-03-10 15:02:10 +09:00
Ms2ger
9709dce07a
Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*.
2014-03-09 18:52:05 +01:00
Ms2ger
84b0f45ed5
Use FooValue() functions.
2014-03-09 18:51:38 +01:00
Ms2ger
9fbfb1909c
Move JSVal into the jsval module.
2014-03-08 18:49:55 +01:00
bors-servo
4b061dc43d
auto merge of #1863 : saneyuki/servo/1841, r=metajack
...
fix #1841
2014-03-08 10:43:35 -05:00
Tetsuharu OHZEKI
315bf3b42a
Use Option::or_else in eventdispatcher::dispatch_event.
2014-03-09 00:16:45 +09:00
Ms2ger
b18c5e518b
Split JSValConvertible into two traits.
...
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-08 11:13:08 +01:00
bors-servo
d79c8a10cf
auto merge of #1859 : kmcallister/servo/move, r=jdm
...
And update `CONTRIBUTING.md`.
2014-03-07 19:19:24 -05:00
Keegan McAllister
07df9ba114
CONTRIBUTING: link to testing guide
2014-03-07 15:52:10 -08:00
Keegan McAllister
6f76244377
Move content tests to src/test/content for consistency
2014-03-07 15:47:42 -08:00
bors-servo
2238d81b53
auto merge of #1838 : brunoabinader/servo/htmlcollection-live, r=jdm
2014-03-07 15:43:24 -05:00
bors-servo
636ae6e762
auto merge of #1856 : Ms2ger/servo/argIsPointer, r=jdm
2014-03-07 15:19:29 -05:00
Ms2ger
9003d212b0
Remove a pointless argIsPointer local variable.
2014-03-07 20:14:54 +01:00
bors-servo
3a31372217
auto merge of #1850 : Ms2ger/servo/init-interface, r=jdm
...
This allows Rust to check that we've actually initialized all cases.
2014-03-07 11:34:26 -05:00
bors-servo
810699c47d
auto merge of #1851 : Ms2ger/servo/optional-jsval, r=jdm
...
Right now, we silently default to null, which is somewhat fishy.
2014-03-07 11:07:29 -05:00
Bruno de Oliveira Abinader
782c079697
Added HTMLCollection content test
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
4b809bf9e6
Added FIXME stub comments
...
This is a sub-task for #1662 .
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
38ba71ceb1
Replaced Document::createHTMLDocument in favor of HTMLCollection helpers
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
d010861b75
Implemented {Document,Element}.getElementsByClassName
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
e1499b610e
Implemented {Document,Element}.getElementsByTagNameNS
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
d22dbb53ca
Implemented {Document,Element}.getElementsByTagName
2014-03-07 11:10:55 -04:00
Bruno de Oliveira Abinader
c768097adc
Added HTMLCollection::create
...
This is a sub-task for #1662 .
2014-03-07 11:10:55 -04:00
Bruno de Oliveira Abinader
6cf0eb1115
Bumped HTMLCollection interface to latest
...
Spec:
http://dom.spec.whatwg.org/#interface-htmlcollection
This is a sub-task for #1662 .
2014-03-07 11:10:55 -04:00
bors-servo
bdb551638e
auto merge of #1848 : Ms2ger/servo/refactor-primitive-fromjsval, r=jdm
...
Probably best read commit-by-commit.
2014-03-07 10:01:36 -05:00
bors-servo
cdec81ea4f
auto merge of #1834 : lpy/servo/issue1825, r=jdm
...
see #1825
2014-03-07 09:37:32 -05:00
Ms2ger
971a4c58bb
Pass Option<JSVal> for optional JSVals.
2014-03-07 12:40:25 +01:00
Ms2ger
4fa12841e7
Don't initialize nullable interface arguments to None in codegen.
...
This allows Rust to check that we've actually initialized all cases.
2014-03-07 11:28:29 +01:00
lpy
0130392420
implement the setter for Node.nodeValue.( fixes #1825 )
2014-03-07 13:11:02 +08:00
bors-servo
4a47145e69
auto merge of #1787 : hgentry/servo/mozilla-servo, r=jdm
...
Fixes #1779 . Most of them were able to be replaced without issue.
2014-03-06 23:55:30 -05:00
hgentry
9b1213ed4d
Removed glob imports from CodegenRust.py
...
Removed glob imports from CodegenRust.py (code review changes)
Removed many glob imports from CodegenRust.py (code review changes)
Removed glob imports from CodegenRust.py (cleanup)
2014-03-06 20:32:47 -05:00
Ms2ger
3a0b7fe621
Common up some more code in the handling of default values for primitive types.
2014-03-06 23:07:42 +01:00
Ms2ger
9fba4bcfba
Simplify the code flow in the conversion to primitive types so that default values are handled together.
2014-03-06 22:56:10 +01:00
Ms2ger
922d191948
Common up some code in the conversion to nullable and non-nullable primitive types.
2014-03-06 22:52:57 +01:00
bors-servo
134d1f6fe3
auto merge of #1846 : Ms2ger/servo/non-null-default, r=jdm
2014-03-06 16:52:31 -05:00
Ms2ger
54a59b9d38
Avoid a type error with a non-null default value for an optional nullable string argument.
2014-03-06 22:42:26 +01:00
Ms2ger
716e1ce144
Avoid a type error with a non-null default value for an optional nullable primitive argument.
2014-03-06 22:26:12 +01:00
Ms2ger
8b5778993a
Inline dataLoc in the one place that can see it and the one place that can't.
2014-03-06 22:20:47 +01:00
Ms2ger
eab9fd765c
Add disabled tests for optional nullable arguments with non-null default values.
2014-03-06 22:18:49 +01:00
bors-servo
968a2e1735
auto merge of #1839 : Ms2ger/servo/optional-test, r=jdm
2014-03-06 14:52:38 -05:00
Ms2ger
9fe72eb379
Add interface codegen tests.
2014-03-06 19:05:14 +01:00
Ms2ger
48ebd2a5e3
Add tests for optional nullable arguments without default values.
2014-03-06 18:45:58 +01:00
Ms2ger
77f1224b24
Add some tests for string codegen.
2014-03-06 16:40:10 +01:00
bors-servo
3d8e469534
auto merge of #1835 : Ms2ger/servo/hasAttributes, r=metajack
2014-03-06 09:43:32 -05:00
Ms2ger
b1f2a104cc
Remove Node.hasAttributes() method that was removed from the specification.
2014-03-06 10:26:04 +01:00
bors-servo
07b8c9bf88
auto merge of #1832 : ibnc/servo/fixed_display_lists_fixed, r=larsbergstrom
...
fixes #1831
2014-03-05 19:01:28 -05:00
bors-servo
6f43c8aaf6
auto merge of #1805 : pradeep90/servo/replaced-absolute-position, r=pcwalton
...
Add reftests for replaced and nested absolute flows.
2014-03-05 17:19:30 -05:00
Isabelle Carter
25a3918415
Children of fixed flows make into parent DL
...
fixes #1831
2014-03-05 15:13:10 -06:00
bors-servo
b9b4eebab5
auto merge of #1829 : Ms2ger/servo/page_from_context, r=jdm
2014-03-05 15:13:29 -05:00