Ms2ger
c66cefa313
Use MutNullableJS::or_init in Document.
2014-12-04 15:50:13 +01:00
Ms2ger
d26283c065
Implement MutNullableJS::or_init.
...
This will make it easier to implement lazy getters.
2014-12-04 15:49:29 +01:00
Ms2ger
9416e9b11a
Cleanup Document::GetElementsByName.
2014-12-04 11:40:44 +01:00
Ms2ger
d22964792a
Cleanup Document::SetBody.
2014-12-04 11:38:54 +01:00
Ms2ger
2ce4c6c529
Cleanup Document::GetDocumentElement.
2014-12-04 09:44:01 +01:00
Ms2ger
41395412eb
Cleanup Document::GetDoctype.
2014-12-04 09:43:40 +01:00
bors-servo
90b0369cdf
auto merge of #4217 : cmr/servo/issue/4196, r=jdm
...
Closes #4196 .
r? @jdm
2014-12-04 00:06:55 -07:00
bors-servo
28a132a8f4
auto merge of #4213 : jdm/servo/sepreadwrite, r=jdm
...
Rebased from #4211 .
2014-12-03 22:48:59 -07:00
Corey Richardson
4d55ab8157
Don't categorize HTMLInputElement as a TableCellFragment
...
Closes #4196 .
2014-12-03 21:44:18 -08:00
bors-servo
0b5cc3f4aa
auto merge of #4214 : jdm/servo/modifyattr, r=jdm
...
Rebased from #4197 .
2014-12-03 20:28:00 -07:00
Shanil Puri
72a5ae7210
Implemeneted ModifyAttribute handler to update DOM elements.
2014-12-03 18:58:44 -08:00
Sagar Muchhal
75ffda9fb8
Support for Separated Read Write
2014-12-03 18:45:05 -08:00
Glenn Watson
f2100ec676
Update skia submodule to get android build fix.
2014-12-03 17:59:23 -08:00
bors-servo
92cc423709
auto merge of #4202 : zwarich/servo/remove-libgreen, r=larsbergstrom
2014-12-03 18:27:57 -07:00
bors-servo
736d542beb
auto merge of #4187 : cgaebel/servo/issue-4127, r=SimonSapin
...
This will avoid drawing Arcs if there's no border-radius property set.
Fixes #4127
2014-12-03 17:48:56 -07:00
Cameron Zwarich
e3b7aeb531
Remove libgreen support.
2014-12-03 15:32:15 -08:00
nkdalmia
f6fb9f862d
Implement Window.sessionStorage: Storage Task, Storage Methods (excluding Storage event, QuotaExceededError)
2014-12-03 18:31:50 -05:00
Patrick Walton
1c1c507c03
layout: Implement opacity
per CSS-COLOR § 3.2.
...
This adds the infrastructure necessary to support stacking contexts that
are not containing blocks for absolutely-positioned elements. Our
infrastructure did not support that before. This minor revamp actually
ended up simplifying the logic around display list building and
stacking-relative position computation for absolutely-positioned flows,
which was nice.
2014-12-03 14:17:16 -08:00
Clark Gaebel
d3e4d29368
Fixed #4170 - Incremental reflow wasn't being aggressive enough when nodes get reparented.
...
When inserting a node that was already dirtied, the dirtying logic
would short circuit: "This node is already dirty? Great! Then its
parents must be HAS_DIRTY_DESCENDANTS, too! Let's skip that step."
This isn't appropriate when nodes move around the tree. In that case,
the node may be marked HAS_CHANGED, but ancestors may not yet have
the HAS_DIRTY_DESCENDANTS flag set.
This patch adds a `content_and_heritage_changed` hook in the document,
to deal with these cases appropriately.
2014-12-03 11:17:38 -08:00
Simon Sapin
2f413c8937
Move the servo crate from root to components/servo
2014-12-02 18:03:39 -08:00
Clark Gaebel
85856d0072
code review
2014-12-02 17:30:54 -08:00
Clark Gaebel
7d1e85f774
Fixed #4127 : Added a fast path to border-radius.
...
This will avoid drawing Arcs if there's no border-radius property set.
2014-12-02 16:28:26 -08:00
bors-servo
ed45aa9efd
auto merge of #4156 : Michael03/servo/master, r=Ms2ger
...
This fixes issue #4122
2014-12-02 05:24:49 -07:00
Clark Gaebel
ffcf0bf394
[gfx/style] Implement border-radius.
...
This patch is a first stab at implementing border-radius. It looks fine as long as
the border isn't an ellipse (that might not even parse yet), and the border-widths
around a border-radius are the same.
Here's a cool screenshot!

r? @pcwalton @SimonSapin
2014-12-01 16:10:35 -08:00
bors-servo
9afdce4405
auto merge of #4162 : pcwalton/servo/text-align-flags, r=kmcallister
...
Fixes the blank spaces showing up in Wikipedia.
r? @kmcallister
2014-12-01 12:12:55 -07:00
Patrick Walton
803624c51e
layout: Stop having text alignment stomp on layerization flags.
...
Fixes the blank spaces showing up in Wikipedia.
2014-12-01 10:55:13 -08:00
Michael Booth
2cbf5a3671
Updated reflect_dom_object to be passed by value
2014-11-30 19:47:52 +00:00
bors-servo
9541dcdee2
auto merge of #4149 : aakashjain/servo/MovingElementGetters, r=Manishearth
...
Moved all getters from Element to ElementHelpers. Existing ElementHelpers getters `get_namespace` and `get_local_name` were replaced by `namespace` and `local_name`. Callers were updated accordingly. Also the getters are no longer inlined.
3 of the getters needed to be added to RawLayoutElementHelpers as well, to accomodate existing calls directly from Element objects.
2014-11-29 04:42:41 -07:00
aakashjain
fab09a5137
Fixes #4123
2014-11-29 15:06:17 +05:30
bors-servo
e9aec8b9a7
auto merge of #4141 : SimonSapin/servo/style-cleanup, r=jdm
2014-11-29 00:51:43 -07:00
bors-servo
9c3b2ae8a5
auto merge of #4147 : jdm/servo/devtoolspanic, r=Manishearth
...
...ets resolved since the last rustc upgrade.
2014-11-29 00:00:48 -07:00
Josh Matthews
13fe502cd6
Don't abort the sniffer task whenever an error occurs. Also, switch to blocking recv_opt vs. non-blocking try_recv.
2014-11-29 00:40:03 -05:00
Josh Matthews
9242d1a1a3
Fix the panic on runnig with --devtools due to a change in how type_id gets resolved since the last rustc upgrade.
2014-11-29 00:17:35 -05:00
bors-servo
1ac79c64da
auto merge of #4000 : t29/servo/mime-sniffing, r=jdm
...
Issue: #3144
This PR addresses the second step of the ticket. i.e. move from a 1:1 sniffer:request task model to a shared sniffer task.
2014-11-28 10:51:44 -07:00
Simon Sapin
c6ff02199d
Remove dead code
2014-11-28 17:44:00 +00:00
Simon Sapin
18de4dd75d
style::properties::longhand shouldn’t be public.
2014-11-28 17:43:14 +00:00
Kshitij Parajuli
f5e9ae17cf
Shared Sniffer Task
...
- Added TargetedLoadResponse and ResponseSenders
- LoadData constructor contains the next consumer which means
SnifferManager doesn't need the next consumer to start
- New SnifferTask is created at new resource_task creation
- Update Unit Tests
2014-11-28 12:35:49 -05:00
bors-servo
2d904f7080
auto merge of #4132 : jtuchsen/servo/issue-4131, r=jdm
...
A slight refactor.
2014-11-28 10:27:43 -07:00
bors-servo
82050d1e53
auto merge of #4130 : saneyuki/servo/cast, r=Manishearth
...
Fix #4124
This also introduce `BarCast::from_actual()` which is used for up-cast for dom's actual data types (non JS pointer values).
2014-11-28 09:24:44 -07:00
bors-servo
12ae541302
auto merge of #4129 : aakashjain/servo/HTMLElement#hidden, r=Manishearth
2014-11-28 05:33:48 -07:00
aakashjain
5a30bd00cb
Implemented hidden, removed corresponding passed tests
2014-11-28 17:39:30 +05:30
Jesse Tuchsen
db885f04ee
Fixes #4131
...
A slight refactor.
2014-11-27 15:16:09 -08:00
Tetsuharu OHZEKI
1305ac4dd0
Remove Element.node().
2014-11-28 06:05:45 +09:00
Tetsuharu OHZEKI
d53ce7f8d2
Remove Node.eventtarget().
2014-11-28 06:02:21 +09:00
Tetsuharu OHZEKI
106b7a3924
Remove HTMLElement.element().
2014-11-28 06:02:03 +09:00
Tetsuharu OHZEKI
2502c692f3
Remove UIEvent.event().
2014-11-28 06:01:43 +09:00
Tetsuharu OHZEKI
3681628936
Make callers of ${Derived}::${base}()
use casts instead.
2014-11-28 06:00:23 +09:00
Jesse Tuchsen
b664ee88e7
Fixes #3962
...
Bad HTTP responses now have a 0 status code instead of 200 OK.
2014-11-27 11:55:31 -08:00
bors-servo
431644bfc8
auto merge of #4114 : glennw/servo/table-layout-fix, r=pcwalton
2014-11-26 18:39:38 -07:00
bors-servo
184a3346ab
auto merge of #4113 : payload/servo/issue-4110, r=jdm
...
The attribute `value` and the underlying model `TextInput` are not connected to each other, so I just pulled the value out of `TextInput`.
2014-11-26 16:15:38 -07:00