Commit graph

7284 commits

Author SHA1 Message Date
bors-servo
a51d08737a auto merge of #4012 : glennw/servo/update-green-rs, r=mbrubeck 2014-11-16 20:21:28 -07:00
Glenn Watson
a1de810dd3 Add missing gfx dependency, that was causing a race in cargo on the build machine. 2014-11-17 12:13:58 +10:00
bors-servo
1fd94adb3d auto merge of #4013 : glennw/servo/android-resources, r=larsbergstrom
This is a temporary solution, until they are packaged properly.
2014-11-16 18:12:28 -07:00
Glenn Watson
e4bc2ca82a Redirect android resource folder (user-agent.css and friends) to /sdcard/servo. This is a temporary solution, until they are packaged properly. 2014-11-17 09:51:13 +10:00
Glenn Watson
e9ff6d9ce7 Update green-rs submodule to get android tls fix. 2014-11-17 09:45:56 +10:00
bors-servo
397d8138e7 auto merge of #3990 : pcwalton/servo/stacking-contexts, r=glennw
This implements the scheme described here:

    https://groups.google.com/forum/#!topic/mozilla.dev.servo/sZVPSfPVfkg

This commit changes Servo to generate one display list per stacking
context instead of one display list per layer. This is purely a
refactoring; there are no functional changes. Performance is essentially
the same as before. However, there should be numerous future benefits
that this is intended to allow for:

* It makes the code simpler to understand because the "new layer needed"
  vs. "no new layer needed" code paths are more consolidated.

* It makes it easy to support CSS properties that did not fit into our
  previous flat display list model (without unconditionally layerizing
  them):

  o `opacity` should be easy to support because the stacking context
    provides the higher-level grouping of display items to which opacity
    is to be applied.

  o `transform` can be easily supported because the stacking context
    provides a place to stash the transformation matrix. This has the side
    benefit of nicely separating the transformation matrix from the
    clipping regions.

* The `flatten` logic is now O(1) instead of O(n) and now only needs to
  be invoked for pseudo-stacking contexts (right now: just floats),
  instead of for every stacking context.

* Layers are now a proper tree instead of a flat list as far as layout
  is concerned, bringing us closer to a production-quality
  compositing/layers framework.

* This commit opens the door to incremental display list construction at
  the level of stacking contexts.

Future performance improvements could come from optimizing allocation of
display list items, and, of course, incremental display list
construction.

r? @glennw
f? @mrobinson @cgaebel
2014-11-16 16:39:27 -07:00
bors-servo
3da9ad464d auto merge of #4011 : glennw/servo/gleam-update, r=larsbergstrom 2014-11-16 16:09:28 -07:00
Glenn Watson
8addf6f633 Update gleam submodule, and use glfw to load OpenGL function pointers. 2014-11-17 07:41:54 +10:00
bors-servo
3a0b12f2c0 auto merge of #4005 : nkdalmia/servo/master, r=jdm
This will enable the web platform test in the webstorage folder.
2014-11-16 10:30:29 -07:00
Andrew Hobden
3b2fcb07ce Update README for Homebrew.
glfw3 is in the `homebrew/homebrew-versions` repository.
2014-11-16 08:30:05 -08:00
bors-servo
1a40a6bc82 auto merge of #4003 : Ms2ger/servo/pre-insert, r=jdm 2014-11-16 07:24:28 -07:00
Ms2ger
859f14f38b Correct the checks in step 5 of Node::pre_insert. 2014-11-16 12:40:42 +01:00
nkdalmia
4361194773 Including webstorage folder in tests 2014-11-15 20:28:58 -05:00
bors-servo
561fab57d6 auto merge of #3998 : Hoverbear/servo/fix_table_caption, r=jdm
Fixed #3997.
2014-11-15 13:24:28 -07:00
bors-servo
644765ea5e auto merge of #3980 : SimonSapin/servo/freetype-sys-linux, r=larsbergstrom
See:
https://github.com/servo/libfreetype2/pull/2
https://github.com/servo/skia/pull/38
https://github.com/servo/rust-azure/pull/114

Let’s close #3867, even though this only works around and doesn’t fix the underlying issue.

r? @larsbergstrom
2014-11-15 12:48:29 -07:00
bors-servo
f54299d485 auto merge of #3978 : Manishearth/servo/wpt-readme, r=Ms2ger 2014-11-15 12:15:31 -07:00
bors-servo
77e1c4de72 auto merge of #3992 : servo/servo/wpt_20141113, r=jgraham 2014-11-15 11:42:31 -07:00
bors-servo
43b452f3b8 auto merge of #3941 : mukilan/servo/timeout-arguments, r=Ms2ger 2014-11-15 11:09:32 -07:00
Andrew Hobden
d4f4018e88 Add test. 2014-11-15 09:52:17 -08:00
Andrew Hobden
a70543c2a3 Fix Table Caption infinite recursion. 2014-11-15 09:37:44 -08:00
bors-servo
796258114b auto merge of #3766 : t29/servo/mime-sniffing, r=jdm
Issue: #3144 

We created a sniffer task in components/net/, added a call in resource_task load function to create a new sniffer task (sending all the data), and sniffer_task currently sends all the data back to resource_task.

The purpose of this request is to get feedback from @jdm on our progress before moving forward and writing tests.
2014-11-15 10:36:31 -07:00
bors-servo
483e84ca7b auto merge of #3989 : jdm/servo/disableiframetest, r=mbrubeck 2014-11-15 10:03:33 -07:00
bors-servo
80baba015e auto merge of #3996 : jdm/servo/flakyvertical, r=Ms2ger
...investigated. #3926
2014-11-15 09:30:34 -07:00
Josh Matthews
a589ed7848 Mark vertical-lr-blocks.html as flaky to ease the pain while it's being investigated. #3926 2014-11-15 11:17:04 -05:00
Mukilan Thiyagarajan
4b2b0d0723 Allow passing arguments to setTimeout/setInterval callbacks 2014-11-15 18:32:12 +05:30
Mukilan Thiyagarajan
05bd182538 Fix binding generation for Callback Functions and Callback Interfaces 2014-11-15 18:29:48 +05:30
Ms2ger
bd400b0665 Update web-platform-tests. 2014-11-15 12:37:57 +01:00
bors-servo
443b1b98e1 auto merge of #3984 : zmike/servo/embedding-option_callbacks, r=jdm
@jdm,  @larsbergstrom

#legday
2014-11-14 18:45:35 -07:00
Patrick Walton
a4a9a46a87 gfx: Rewrite display list construction to make stacking-contexts more
first-class.

This implements the scheme described here:

    https://groups.google.com/forum/#!topic/mozilla.dev.servo/sZVPSfPVfkg

This commit changes Servo to generate one display list per stacking
context instead of one display list per layer. This is purely a
refactoring; there are no functional changes. Performance is essentially
the same as before. However, there should be numerous future benefits
that this is intended to allow for:

* It makes the code simpler to understand because the "new layer needed"
  vs. "no new layer needed" code paths are more consolidated.

* It makes it easy to support CSS properties that did not fit into our
  previous flat display list model (without unconditionally layerizing
  them):

  o `opacity` should be easy to support because the stacking context
    provides the higher-level grouping of display items to which opacity
    is to be applied.

  o `transform` can be easily supported because the stacking context
    provides a place to stash the transformation matrix. This has the side
    benefit of nicely separating the transformation matrix from the
    clipping regions.

* The `flatten` logic is now O(1) instead of O(n) and now only needs to
  be invoked for pseudo-stacking contexts (right now: just floats),
  instead of for every stacking context.

* Layers are now a proper tree instead of a flat list as far as layout
  is concerned, bringing us closer to a production-quality
  compositing/layers framework.

* This commit opens the door to incremental display list construction at
  the level of stacking contexts.

Future performance improvements could come from optimizing allocation of
display list items, and, of course, incremental display list
construction.
2014-11-14 17:31:15 -08:00
bors-servo
0ab70dd539 auto merge of #3977 : wenderen/servo/cef-empty-enums, r=jdm
fix for #3968
2014-11-14 17:15:33 -07:00
bors-servo
7d3b76c60d auto merge of #3979 : Ms2ger/servo/as_unsafe_cell, r=jdm 2014-11-14 15:48:35 -07:00
Mike Blumenkrantz
5f10092995 embedding: convert callback Option<> matching to map() 2014-11-14 17:18:50 -05:00
Mike Blumenkrantz
11e30731ef embedding: change Option<> unwrapping for fptrs to use match 2014-11-14 17:08:36 -05:00
bors-servo
e3ee984f17 auto merge of #3985 : mbrubeck/servo/android-green, r=larsbergstrom
r? @glennw
2014-11-14 15:03:35 -07:00
Josh Matthews
62a74cf3f0 Disable the iframe content test due to #3986. 2014-11-14 16:25:36 -05:00
Matt Brubeck
3cacb029cc Use the correct Rust path in Android packaging 2014-11-14 13:01:46 -08:00
Ms2ger
86d609abaf Use RefCell in DOMRefCell to reduce duplicated code. 2014-11-14 21:18:43 +01:00
Matt Brubeck
18dad40dfb Update GLUT for rustup fixes
Pulls in servo/rust-glut#49
2014-11-14 12:14:03 -08:00
Matt Brubeck
6323c230a2 Update Cargo.lock files for Android rustup fixes
r? @glennw
2014-11-14 11:56:29 -08:00
Simon Sapin
ed9e3078af List bzip2 as a requirement in README.md
… but not for Homebrew or MacPorts, OS X which apparently ships with it.
2014-11-14 19:41:42 +00:00
Mike Blumenkrantz
d33f74f499 embedding: remove eutil::fptr_is_null, fix #3967, add Option<> to fptrs 2014-11-14 14:30:59 -05:00
Simon Sapin
b1eb403382 Use freetype-sys on Linux.
See:
https://github.com/servo/libfreetype2/pull/2
https://github.com/servo/skia/pull/38
https://github.com/servo/rust-azure/pull/114

Let’s close #3867, even though this only works around and doesn’t fix the underlying issue.
2014-11-14 18:24:27 +00:00
Manish Goregaokar
57e7fa92db Fix wpt readme for mach changes 2014-11-14 21:13:43 +05:30
Rohan Prinja
ab6a230839 empty enum replaces c_void
fix incorrect type aliasing logic

remove trailing semicolons

remove trailing semicolons

embedding: empty enum replaces c_void
2014-11-14 20:27:54 +05:30
Ms2ger
c0016c7438 Use Cell::as_unsafe_cell in Reflector::rootable. 2014-11-14 11:56:00 +01:00
bors-servo
85a2f0b66a auto merge of #3953 : neojski/servo/implement-HTMLIFrameElement.contentDocument, r=jdm
Because of #2122 I cannot write test for this right now because it will be failing randomly due to that iframe issue. However, if it doesn't fail due to that issue a test like this:

```html
<html>
  <head>
    <meta charset="utf8" />
    <script src="harness.js"></script>
    <title>Iframe contentDocument test.</title>
  </head>
  <body>
    <iframe src="test_iframe_contentDocument_inner.html" id="iframe"></iframe>
    <script>
      waitForExplicitFinish();

      var timeout = 100;
      var iframe = document.getElementById('iframe');
      function test_contentWindow() {
        if (!iframe.contentWindow) {
          // Iframe not loaded yet, try again.
          // No load event for iframe, insert bug number here.
          setTimeout(test_contentWindow, timeout);
          return;
        }
        is(iframe.contentDocument.getElementById('test').textContent, 'value');
        finish();
      }
      test_contentWindow();
    </script>
  </body>
</html>
```
where inner is simply:
```html
<html><body><div id="test">value</div></body></html>
```
passes.

I have added `SameOrigin` method to the `UrlHelper`. I wanted to reuse it in [`constellation.rs` same_script check](f0184a2d01/components/compositing/constellation.rs (L625)) but I it didn't want to compile saying

```
error: unresolved import `dom::urlhelper::UrlHelper`. Maybe a missing `extern crate dom`?
```

So I didn't include it in this PR for now.

There is more discussion about the cross origin iframes in [another issue](https://github.com/servo/servo/issues/3939). In this PR I just added same origin check.
2014-11-13 23:54:28 -07:00
Tomasz Kołodziejski
fb8a45c58d Iframe resource file moved to resources dir so it's not picked up by test harness (and does not fail). 2014-11-13 22:45:55 -08:00
Tomasz Kołodziejski
af30484f2a Add contentDocument support for HTMLIFrameElement. Fixes #3808. 2014-11-13 22:45:46 -08:00
Shanil Puri
fc7b3699ed Sending exit message to devtools to exit.
Accepted and closed incoming streams

Added header to for constant use.

Removed extra spaces.

Corrected spacing to conform to coding standards.

Corrected spacing to conform to coding standards.

Corrected spacing to conform with coding standards.

Moving new import next to old import for devtools_traits as specified in comment.

Removed method definition to include as inline code and changed to iter_mut.

Using loops to exit devtools on server exit message and disconnected message to simply break as suggested in the comment.

Removing TODO comment for completed functionality.

Moved the operation for exit of devtools on servo closing outside the match loop.

Removing trailing ';' and adding new line before connection closing loop.
2014-11-13 20:44:06 -05:00
bors-servo
10cd7728ff auto merge of #3973 : Manishearth/servo/301-fix, r=jdm 2014-11-13 17:45:29 -07:00