Patrick Walton
34b3408a89
layout: Translate floats when clearing non-floated blocks.
...
Improves CNN layout considerably.
Closes #3439 .
2014-09-22 14:14:20 -07:00
Simon Sapin
eabb8d4f29
Add support for font-size relative size keywords. Fix #3423
2014-09-22 17:00:00 +01:00
Glenn Watson
87d18b90a6
Add support for min-width and max-width to images.
...
This fixes the images on the homepage of github.
2014-09-22 14:03:10 +10:00
Ms2ger
fd5c6e8512
Merge pull request #3443 from Ms2ger/uniontypes
...
Remove the glob import for UnionTypes; r=jdm
2014-09-21 22:34:27 +02:00
Ms2ger
61e17656cd
Merge pull request #3442 from saneyuki/atom
...
Make Document.idmap key to Atom; r=Ms2ger
2014-09-21 16:17:46 +02:00
Ms2ger
d6321230de
Remove the glob import for UnionTypes.
2014-09-21 16:13:42 +02:00
Ms2ger
b40966981c
Share code to compute the type of a union.
...
This does not change the generated code.
2014-09-21 16:13:42 +02:00
Tetsuharu OHZEKI
628191e372
Make Document.idmap key to Atom.
2014-09-21 22:38:39 +09:00
Ms2ger
2dd5f2357e
Don't use a glob import for codegen::{PrototypeList, RegisterBindings}.
2014-09-21 14:21:51 +02:00
Simon Sapin
c228b81ca8
Merge pull request #3437 from SimonSapin/https-deps
...
Use HTTPS for Cargo dependencies
2014-09-21 11:00:34 +01:00
Simon Sapin
a40b94d7f9
Use upstream lazy_static!() macro through Cargo
...
... instead of having our own copy.
https://github.com/Kimundi/lazy-static.rs
2014-09-20 13:32:52 -07:00
Keegan McAllister
af96e8e409
Fix upstream merge fallout
2014-09-20 13:26:25 -07:00
Simon Sapin
afe28ae422
Use HTTPS for Cargo dependencies
2014-09-20 21:19:09 +01:00
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
Keegan McAllister
8a7eefefd5
Remove most of FlowList
...
This needs to be reworked for DST. Until then, DList<FlowRef> will do.
2014-09-20 12:56:52 -07:00
Cameron Zwarich
d6ba37c68c
Merge pull request #3433 from zwarich/jsref-self-helpers
...
More progress in the &JSRef -> JSRef conversion
2014-09-20 12:55:21 -07:00
Josh Matthews
545e9884a6
Merge pull request #3364 from jejuliekim/option-text
...
Implement HTMLOptionElement.text #3023
2014-09-20 15:03:11 -04:00
Cameron Zwarich
8aec08074c
Remove some extraneous &* pairs
2014-09-20 11:54:11 -07:00
Cameron Zwarich
d768ee77ad
Convert various helper traits from &JSRef to JSRef
...
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.
2014-09-20 11:54:11 -07:00
Cameron Zwarich
2c8d51a37c
More progress in the &JSRef -> JSRef conversion
...
Change all of the <Class>Methods traits to take `self` instead of
`&self`.
2014-09-20 11:54:10 -07:00
Adenilson Cavalcanti
7581335232
Move is_void() Element method together with the other struct methods,
...
it becomes part of ElementHelpers.
2014-09-20 10:24:57 -07:00
Jeongeun Kim
dad77f0d25
Implement HTMLOptionElement.text#3023
...
Signed-off-by: Jeongeun Kim <je00julie.kim@gmail.com>
Implement HTMLOptionElement.text#3023 (2nd trial)
Implement HTMLOptionElement.text#3023 (3rd trial)
delete metadata for skipping option tests
fix conflict
2014-09-20 23:49:20 +09:00
Gilles Leblanc
652d217961
Share code between Navigator and WorkerNavigator
...
Also shares code between Location and WorkerLocation. This has been done
by introducing NavigatorInfo and UrlHelper.
Fixes #3159
2014-09-20 08:51:35 -04:00
Tetsuharu OHZEKI
de0866ab42
Use Untraceable<T> to hold LayoutDataRef instead of manual Encodable implementation.
2014-09-20 15:19:01 +09:00
Tetsuharu OHZEKI
54d3a0b280
Reintroduce Untraceable<T>.deref_mut() to make mem::replace() possible to Untracebale<T> field.
...
Some compile errors caused by the compiler's misreading comes back again :(
We re-use `deref()`explicitly to hide these errors.
2014-09-20 15:19:00 +09:00
Patrick Walton
c51b8a07ac
Merge pull request #3430 from pcwalton/inline-block-percentage-height
...
layout: Make percentage heights propagate through inline flows.
2014-09-19 23:05:55 -07:00
Patrick Walton
ccda8f204a
Merge pull request #3420 from glennw/table-debug
...
Adds support for table layout trace and updates viewer for tables.
2014-09-19 19:50:47 -07:00
Cameron Zwarich
e9ad87e27e
Merge pull request #3422 from zwarich/jsref
...
First steps of &JSRef -> JSRef conversion
2014-09-19 19:28:32 -07:00
Patrick Walton
0604d0c6b1
layout: Handle floated blocks with percentage heights correctly.
...
Improves the top menu in Wikipedia.
2014-09-19 17:56:07 -07:00
Patrick Walton
39d7bf93d6
layout: Make percentage heights propagate through inline flows.
...
I found this random bug during an attempt to improve Wikipedia.
2014-09-19 17:20:56 -07:00
Clark Gaebel
877de7f694
Merge pull request #3427 from cgaebel/add-license-to-tid
...
added valid license to tid.rs
2014-09-19 17:19:42 -07:00
Patrick Walton
08e004d106
Merge pull request #3424 from SimonSapin/font-size-absolute
...
Add font-size absolute size keywords. Fix #3417
2014-09-19 15:17:55 -07:00
Cameron Zwarich
4fa8725111
First steps of &JSRef -> JSRef conversion
...
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.
2014-09-19 13:39:17 -07:00
Patrick Walton
b4db9aeaeb
Handle generated content with display: block
correctly during flow
...
construction.
The iteration was incorrect here. Although it accidentally worked
before, it will cause problems when we have incremental style
recalculation.
The `after_block_iteration` reftest will become interesting once we have
incremental style recalc.
2014-09-19 12:25:37 -07:00
Clark Gaebel
3b280ac8b0
added valid license to tid.rs
2014-09-19 11:34:43 -07:00
Simon Sapin
4e71b215b8
Add font-size absolute size keywords. Fix #3417 .
...
Relative size keywords are still missing:
https://github.com/servo/servo/issues/3423
2014-09-19 19:04:31 +01:00
Josh Matthews
6d6726178a
Merge pull request #3253 from ChrisParis/TreeWalker
...
Implement TreeWalker
2014-09-19 10:54:26 -04:00
Josh Matthews
f139eb5176
Merge pull request #3401 from pcwalton/refactor-layout
...
layout: Remove `layout/extra.rs`.
2014-09-19 10:51:02 -04:00
Josh Matthews
b82c0dced0
Merge pull request #3172 from jdm/devtools
...
Dump initial prototype of devtools server into the build. Expect lies if...
2014-09-19 09:15:03 -04:00
Simon Sapin
010d87b93e
Remove min/max functions from util::geometry. Use std::cmp instead.
2014-09-19 13:56:35 +01:00
Simon Sapin
415bbaeb2e
Fix dimensionality of Au
...
Previously, we implemented:
Au * Au -> Au
Au / Au -> Au
Au % Au -> Au
... which are inconsistent. It should be:
Au * Au -> SquaredAu
Au / Au -> i32
Au % Au -> i32
or:
Au * i32 -> Au
Au / i32 -> Au
Au % i32 -> Au
I picked the latter.
Also, the multiplicative identity does not make sense
when multiplication take two different types.
2014-09-19 13:54:57 +01:00
Glenn Watson
818f70e319
Fix img with display: block. Fixes text/image overflow on wikipedia.
...
Ref: #2554
2014-09-19 17:59:48 +10:00
glennw
a3b20d8179
Merge pull request #3421 from glennw/table-padding
...
Fix padding on tables. This fixes the TOC on wikipedia pages.
2014-09-19 17:50:50 +10:00
Cameron Zwarich
d7ffe7a198
Merge pull request #3416 from zwarich/remove-jsref-mut
...
Remove uses of &mut JSRef
2014-09-18 22:25:48 -07:00
Glenn Watson
fd176d5387
Fix padding on tables. This fixes the TOC on wikipedia pages.
...
Ref: #2554
2014-09-19 14:58:24 +10:00
Glenn Watson
0d0d2365aa
Adds support for table layout trace and updates viewer for tables.
2014-09-19 14:48:53 +10:00
Cameron Zwarich
176b3f7698
Remove uses of &mut JSRef
...
Since everything with JSRef happens with interior mutability, it doesn't
make any sense to use an &mut JSRef.
2014-09-18 15:30:38 -07:00
Matt Brubeck
f35941d91d
Fix line splitting in white-space: pre
flows
...
The newline position from one line was getting used repeatedly, causing extra
"phantom" newlines in the following lines. Fixes #3413 .
2014-09-18 14:25:12 -07:00
Chris Paris
92638a6fe6
Implement TreeWalker
2014-09-18 11:13:33 -10:00