Commit graph

7249 commits

Author SHA1 Message Date
bors-servo
929671f945 auto merge of #4029 : znewman01/servo/issue4009, r=Ms2ger
Fixes #4009.

Only lower-case the argument to Document#createElement if it's a HTML document.
2014-11-18 07:15:34 -07:00
bors-servo
3fafd61f71 auto merge of #4021 : letharion/servo/Case-insensitive-HTMLScriptElementHelpers-comparision, r=Ms2ger
Fix for #3993
2014-11-18 06:51:34 -07:00
Claes 'Letharion' Gyllensvärd
d84c0fc52a Lower case the type attribute before checking if it's JS 2014-11-18 08:39:59 +01:00
Zachary Newman
a8ce3e3366 Update behavior of Document.createElement
Fixes #4009.

Only lower-case the argument to Document#createElement if it's a HTML document.
2014-11-17 21:21:46 -05:00
bors-servo
64cc9ec688 auto merge of #4019 : Ms2ger/servo/constellation, r=mbrubeck 2014-11-17 10:36:29 -07:00
Ms2ger
4d3977b8f8 Various cleanup in constellation.rs. 2014-11-17 18:27:22 +01:00
bors-servo
2bda68f038 auto merge of #3987 : mbrubeck/servo/rust-root, r=larsbergstrom
r? @larsbergstrom
2014-11-17 09:21:28 -07:00
bors-servo
bd4f94a11f auto merge of #4016 : SimonSapin/servo/fix-freetype-build, r=Manishearth
Pick up https://github.com/servo/libfreetype2/pull/3

r? @Manishearth
2014-11-17 08:30:31 -07:00
bors-servo
9833cfbbff auto merge of #4017 : Ms2ger/servo/sniffertask, r=jdm 2014-11-17 07:57:29 -07:00
Ms2ger
d8b0f973b0 Reformat sniffer_task.rs. 2014-11-17 15:49:45 +01:00
bors-servo
b9dcaa34c3 auto merge of #3991 : Hoverbear/servo/patch-1, r=jdm
glfw3 is in the `homebrew/versions` keg.

```bash
➜  ~  brew install glfw3
Error: No available formula for glfw3
Searching formulae...
Searching taps...
homebrew/versions/glfw3
```

Simplest fix:

```bash
➜  ~  brew install homebrew/versions/glfw3
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-versions'...
remote: Counting objects: 2495, done.
remote: Total 2495 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2495/2495), 820.05 KiB | 462.00 KiB/s, done.
Resolving deltas: 100% (1433/1433), done.
Checking connectivity... done.
Tapped 161 formulae
==> Installing glfw3 from homebrew/homebrew-versions
==> Downloading https://downloads.sourceforge.net/project/glfw/glfw/3.0.4/glfw-3.0.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/glfw3-3.0.4.tar.bz2
==> Patching
patching file CMakeLists.txt
Hunk #1 succeeded at 370 with fuzz 1 (offset 13 lines).
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/glfw3/3.0.4 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DGLFW_USE_CHDIR=TRUE -DGLFW_USE_MENUBAR=TRUE -DBUIL
==> make install
🍺  /usr/local/Cellar/glfw3/3.0.4: 11 files, 220K, built in 9 seconds
```

Users who have `homebrew/versions` already tapped won't notice this, since after tapping `homebrew/versions` keg shouldn't notice, since after tapping, the library is available using just ` brew install glfw3`.

```bash
➜  ~  brew tap
homebrew/versions
➜  ~  brew install glfw3
==> Installing glfw3 from homebrew/homebrew-versions
==> Downloading https://downloads.sourceforge.net/project/glfw/glfw/3.0.4/glfw-3.0.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/glfw3-3.0.4.tar.bz2
==> Patching
patching file CMakeLists.txt
Hunk #1 succeeded at 370 with fuzz 1 (offset 13 lines).
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/glfw3/3.0.4 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DGLFW_USE_CHDIR=TRUE -DGLFW_USE_MENUBAR=TRUE -DBUIL
==> make install
🍺  /usr/local/Cellar/glfw3/3.0.4: 11 files, 220K, built in 9 seconds
```
2014-11-17 07:21:29 -07:00
Simon Sapin
6ed83b55f5 Fix freetype build, pick up https://github.com/servo/libfreetype2/pull/3 2014-11-17 13:43:28 +00:00
bors-servo
d1eaa3adda auto merge of #3796 : shanil-puri/servo/ServoExitDevtools, r=jdm 2014-11-17 06:15:30 -07:00
Shanil Puri
d6e99cb269 Spacing changes corrected. 2014-11-17 00:55:41 -05:00
bors-servo
eeb11d6851 auto merge of #4014 : wenderen/servo/doc-createevent-keyevents, r=Manishearth
fix #4007
2014-11-16 21:36:30 -07:00
Rohan Prinja
aad124fce3 key[board]event args for Document#createEvent 2014-11-17 09:37:05 +05:30
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