bors-servo
b84bd4c894
auto merge of #1862 : Manishearth/servo/comparedoc-1794, r=Ms2ger
2014-03-12 09:07:38 -04:00
Manish Goregaokar
a2e15df4ab
Add compareDocumentPosition ( fixes #1794 ) to Node
2014-03-12 17:40:06 +05:30
Ms2ger
858d30b5d9
Update the WindowTimers interface to the current specification.
2014-03-12 09:46:18 +01:00
lpy
a2189ee066
implement HTMLDataListElement.options
2014-03-12 11:29:58 +08:00
bors-servo
af616dba58
auto merge of #1808 : pradeep90/servo/relative-position-container-block-size, r=pcwalton
...
This fixes #1757 .
2014-03-11 21:28:40 -04:00
Patrick Walton
d303f50784
script: Fix a borrow flags race in layout on .owner_doc()
.
2014-03-11 17:46:43 -07:00
bors-servo
9d5567b69f
auto merge of #1872 : pradeep90/servo/calculate-width-trait, r=pcwalton
...
+ Move out and separate the width calculation code for 6 cases like: block-replaced, block-non-replaced, float-replaced, etc.
This implements #1683
+ Use the trait to have a common min-width and max-width calculation function (This completes #783 for blocks)
+ Add reftests for the above.
2014-03-11 19:22:55 -04:00
bors-servo
7b8a0fd2a3
auto merge of #1887 : Ms2ger/servo/merge-declare-define, r=jdm
...
This distincion is carried over from the C++ codegen, but it has no meaning
in Rust.
2014-03-11 16:55:44 -04:00
Ms2ger
dd160b6392
Merge CGThing.declare and CGThing.define.
...
This distincion is carried over from the C++ codegen, but it has no meaning
in Rust.
2014-03-11 21:22:43 +01:00
bors-servo
8c1f6bc72d
auto merge of #1875 : Ms2ger/servo/unions, r=jdm
...
This code works correctly for the two unions currently in use, and raises
exceptions in codegen for most other cases. I will implement those cases when
the need arises.
2014-03-11 14:52:45 -04:00
Ms2ger
06f9afdad5
Completely rewrite the code to convert JSVals to unions.
...
This code works correctly for the two unions currently in use, and raises
exceptions in codegen for most other cases. I will implement those cases when
the need arises.
2014-03-11 19:44:07 +01:00
bors-servo
8e16c00367
auto merge of #1878 : Ms2ger/servo/GetReflector, r=jdm
2014-03-11 12:31:51 -04:00
Ms2ger
256a5cbf9f
Replace GetReflector by an implementation of ToJSValConvertible.
2014-03-11 17:23:48 +01:00
bors-servo
d004e43331
auto merge of #1883 : Ms2ger/servo/cleanup-codegen, r=jdm
2014-03-11 10:10:54 -04:00
Ms2ger
d71e43e712
Remove a pointless argument to generate_file in GlobalGen.py.
2014-03-11 13:24:10 +01:00
Ms2ger
6c3f67d719
Remove some C++-related code in BindingGen.py.
2014-03-11 13:16:00 +01:00
Ms2ger
b32c157904
Reorder GetProtoObject.
2014-03-11 13:04:22 +01:00
Ms2ger
d08ad3c243
Cleanup and simplify CGImports.
2014-03-11 12:56:04 +01:00
Ms2ger
c97408969e
Cleanup the code in PrototypeList().
2014-03-11 12:45:43 +01:00
Ms2ger
f7a847c581
Stop pointlessly indenting GetProtoObject.
2014-03-11 12:15:54 +01:00
Ms2ger
d1f5b0971d
Remove some dead code from CGAbstractMethod._decorators.
2014-03-11 11:51:03 +01:00
Ms2ger
e54a17bfea
Remove unused CGAbstractStaticMethod class.
2014-03-11 11:46:04 +01:00
bors-servo
864f6df873
auto merge of #1881 : analyst74/servo/master, r=metajack
...
..per title
2014-03-10 22:52:51 -04:00
Bill Yang
4dcec9bebf
Ubuntu doesn't have g++ installed by default, adding it to pre-requisites
2014-03-10 20:19:06 -06:00
bors-servo
92f295bc07
auto merge of #1877 : Ms2ger/servo/dead-codegen-code, r=jdm
2014-03-10 15:37:51 -04:00
bors-servo
af29237371
auto merge of #1876 : Ms2ger/servo/JSValConvertible-strings, r=jdm
...
Hat tip to @eddyb and @huonw for most of the clever bits of this PR.
2014-03-10 15:13:52 -04:00
Ms2ger
e0e0ba4c93
Remove code from codegen that is nowhere close to working.
2014-03-10 20:10:03 +01:00
bors-servo
b584f6f64d
auto merge of #1873 : lpy/servo/issue1870, r=jdm
...
see #1870
2014-03-10 13:28:56 -04:00
Ms2ger
58382471d5
Replace jsval_to_str and jsval_to_domstring with a FromJSValConvertible implementation.
2014-03-10 16:31:13 +01:00
Ms2ger
17411db8ca
Replace str_to_jsval and domstring_to_jsval by a ToJSValConvertible implementation.
2014-03-10 16:31:13 +01:00
Ms2ger
476699a114
Allow passing options to FromJSValConvertible::from_jsval.
2014-03-10 16:31:13 +01:00
Ms2ger
5f9e649491
Pass a JSContext to ToJSValConvertible::to_jsval.
2014-03-10 16:31:13 +01:00
bors-servo
52ab85c45d
auto merge of #1861 : Ms2ger/servo/split-JSValConvertible, r=jdm
...
Later, we'll want to implement variations of the conversion *from* JS, but
not the conversion *to* JS.
2014-03-10 11:01:52 -04:00
bors-servo
654f3db295
auto merge of #1868 : Ms2ger/servo/JSVal, r=jdm
...
Requires https://github.com/mozilla-servo/rust-mozjs/pull/54 .
2014-03-10 10:22:51 -04:00
Ms2ger
1cd1a0802d
Update rust-mozjs to include fixes for GC crashes.
2014-03-10 10:45:28 +01:00
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