Martin Robinson
fbb1e0c6b8
Send incremental frame tree updates to the compositor
...
This allows the compositor to add frames after the call to SetIds,
where the initial frame tree is created. There are still some issues
preventing proper late frame creation, but this prevents crashes when
it happens.
Fixes #3738 .
2014-11-11 17:36:19 -08:00
Martin Robinson
750bedab81
Add some factory methods for frame tree types
2014-11-11 17:36:19 -08:00
Martin Robinson
a10e261ffd
Small fix to variable name
...
This is a more accurate name for the script pipeline.
2014-11-11 17:36:19 -08:00
Martin Robinson
6e06a1353c
Rename LoadIframeUrlMsg to CreateIFrameAndLoadUrlMsg
...
This better reflects what the message does.
2014-11-11 17:36:18 -08:00
bors-servo
b94f20c7c1
auto merge of #3934 : guillaumebort/servo/fix/84, r=jdm
...
Actually `<img>` elements in `<noscript>` are not prefetched anymore.
Probably because html5ever already parses the `<noscript>` content as raw
text data if `scripting_enabled` is activated.
See https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#L126
Also, added a test to the images cache.
2014-11-11 14:30:39 -07:00
Martin Robinson
c7327450ef
Clip display list based on frame viewport
...
Instead of creating a display list for the entire page, only create one
for an area that expands around the viewport. On my machine this makes
incremental layout of http://timecube.com 50% faster.
2014-11-11 08:46:16 -08:00
Cameron Zwarich
91be7443df
Remove unnecessary import of libgreen
2014-11-10 16:18:10 -08:00
Ms2ger
c2fa5f3b4f
Fix the documentation comment for logical_geometry.rs.
2014-11-10 09:45:34 +01:00
bors-servo
fc62243f81
auto merge of #3915 : shinglyu/servo/bug3811, r=jdm
...
This is a fix for bug #3811 , thank you.
2014-11-09 20:24:31 -07:00
Shing Lyu
783c6703ca
Bug #3811 - Extracted the script task handlers into methods
2014-11-10 10:38:12 +08:00
Ms2ger
aa83388f38
Remove VoidVal.
...
There are no undefined constants in IDL.
2014-11-08 18:00:04 +01:00
bors-servo
fe11a75f79
auto merge of #3937 : Ms2ger/servo/docs-bindings, r=jdm
2014-11-07 10:57:30 -07:00
Ms2ger
3ed3c9a978
Document bindings/conversions.rs.
2014-11-07 18:33:38 +01:00
Tom Schuster
96e42feaa1
Implement the whole Attr interface
2014-11-07 14:36:57 +01:00
Guillaume Bort
8e2abb6ffc
Close #84
...
Actually <img> elements in <noscript> are not prefetched anymore.
Probably because html5ever already parses the <noscript> content as raw
text data if `scripting_enabled` is activated.
See
https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#
L126
Also, added a test to the images cache.
2014-11-07 13:43:19 +01:00
Ms2ger
223c3bc7ae
Document bindings/callback.rs.
2014-11-07 12:22:00 +01:00
Ms2ger
52ef7f7948
Document bindings/trace.rs.
2014-11-07 12:11:50 +01:00
Ms2ger
bfa1ab816f
Document bindings/utils.rs.
2014-11-07 11:57:37 +01:00
bors-servo
338a9c3f05
auto merge of #3917 : mukilan/servo/xhr-status-async, r=jdm
...
Fixes #3877
2014-11-06 19:00:29 -07:00
bors-servo
f775f12fe9
auto merge of #3886 : glennw/servo/mq, r=SimonSapin
2014-11-06 17:24:28 -07:00
Glenn Watson
a48c780d22
Fix unit tests for media queries.
2014-11-06 15:53:37 -08:00
Glenn Watson
b278fc2284
Short circuit media queries test if stylist is already dirty.
2014-11-06 14:42:55 -08:00
Bruno de Oliveira Abinader
a9d68474c9
Remove warning from 'deleter' WebIDL codegen
2014-11-06 11:31:58 -08:00
Bruno de Oliveira Abinader
5c76502b91
Implement DOMStringMap
2014-11-06 11:31:58 -08:00
Bruno de Oliveira Abinader
b50cfa56a9
Couple more fixes to handle 'setter' properties in WebIDL
2014-11-06 11:31:58 -08:00
Mukilan Thiyagarajan
dc02352564
XHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONE
...
Fixes #3877
2014-11-06 23:57:48 +05:30
bors-servo
c828e83604
auto merge of #3817 : nkdalmia/servo/master, r=jdm
...
We have completed the initial step for "Implement Window.sessionStorage and Window.localStorage"
- Create and stub the Storage WebIDL interface
2014-11-06 10:51:40 -07:00
bors-servo
ed22c9b35b
auto merge of #3696 : pcwalton/servo/gradients, r=SimonSapin
...
This implements a subset of the CSS `linear-gradient` property per the
CSS-IMAGES specification:
http://dev.w3.org/csswg/css-images-3/
The full syntax is parsed, but only the beginning and end color stops
are used, and gradients are clamped to the nearest 90 degrees. It should
not be architecturally difficult to add the remaining pieces, but in the
interests of bounding the size of this patch that work has been left to
follow-ups.
Improves GitHub.
r? @glennw
2014-11-06 10:00:42 -07:00
Patrick Walton
215c2a9d4c
layout: Implement CSS linear gradients per the CSS-IMAGES specification.
...
This implements the CSS `linear-gradient` property per the CSS-IMAGES
specification:
http://dev.w3.org/csswg/css-images-3/
Improves GitHub.
2014-11-06 08:26:47 -08:00
nkdalmia
bb76b0f3f2
Intial Commit for Storage.webidl, along with impl stub
2014-11-06 10:55:27 -05:00
Ms2ger
bb9cad938b
Implement HTMLElement#lang.
2014-11-06 15:28:52 +01:00
Ms2ger
fbb00da212
Remove the glob import from the HTML parser.
...
Glob imports are frowned upon, and after the removal of
build_element_for_tag, only a few types are actually used.
2014-11-06 09:41:24 +01:00
bors-servo
57cb8a10f0
auto merge of #3903 : Manishearth/servo/plugin-fixes, r=jdm
2014-11-05 20:03:34 -07:00
bors-servo
45262ec9d2
auto merge of #3905 : Ms2ger/servo/prefix-create, r=jdm
2014-11-05 19:27:35 -07:00
Manish Goregaokar
52983ed97c
Silence lint for self.global in XHR
2014-11-06 06:37:44 +05:30
Ms2ger
f565e203e4
Remove the manual Element::new call from Document::CreateElementNS.
2014-11-05 23:22:47 +01:00
Ms2ger
a5e9f97c8f
Pass the prefix to Element::new in create_element.
2014-11-05 23:18:33 +01:00
bors-servo
c9857d49dd
auto merge of #3901 : Ms2ger/servo/title, r=jdm
2014-11-05 14:33:36 -07:00
Ms2ger
45701002a3
Implement HTMLElement.title.
2014-11-05 22:08:36 +01:00
Manish Goregaokar
4a8af307d1
Catch all types of local bindings in check_stmt
2014-11-06 01:30:29 +05:30
bors-servo
76cc006a40
auto merge of #3898 : Ms2ger/servo/prefix-clone, r=jdm
...
The current code calls as_slice() on the Option, yielding &[DOMString], and
then calls to_string, yielding "[prefix]".
2014-11-05 12:57:37 -07:00
Ms2ger
82ff32a710
Pass the correct argument to Element::create when cloning.
...
The current code calls as_slice() on the Option, yielding &[DOMString], and
then calls to_string, yielding "[prefix]".
2014-11-05 20:51:41 +01:00
bors-servo
390e111537
auto merge of #3900 : kmcallister/servo/parse-error, r=Ms2ger
...
r? @ms2ger
2014-11-05 12:21:42 -07:00
Manish Goregaokar
6c9ee378f5
Add documentation to plugins crate
2014-11-06 00:46:12 +05:30
Keegan McAllister
01ea963711
Only print HTML parse errors with RUST_LOG=script::parse
2014-11-05 10:36:20 -08:00
bors-servo
fba6cb9c42
auto merge of #3897 : Ms2ger/servo/enable-reflection, r=Manishearth
2014-11-05 11:12:40 -07:00
Ms2ger
e1bb3c3b06
Parse the size attribute on input elements.
2014-11-05 19:07:01 +01:00
bors-servo
b27ec2b223
auto merge of #3896 : Ms2ger/servo/attr-crash, r=jdm
...
The semantics of has_attribute aren't anywhere close to the ones expected for
Element#hasAttribute, and it fails an assertion when passed non-lower-case
names.
2014-11-05 10:36:38 -07:00
Ms2ger
214c356ecd
Pass an Atom to VirtualMethods::parse_plain_attribute.
2014-11-05 16:19:11 +01:00
Ms2ger
cdde96e989
Defer to GetAttribute in HasAttribute.
...
The semantics of has_attribute aren't anywhere close to the ones expected for
Element#hasAttribute, and it fails an assertion when passed non-lower-case
names.
2014-11-05 16:05:06 +01:00