Граф коммитов

923 Коммитов

Автор SHA1 Сообщение Дата
Mátyás Mustoha 34409fd616 servo: Merge #5302 - Canvas: Added stroke support (from mmatyas:canvas_stroke); r=jdm
This is the servo side patch of servo/rust-azure#149.

Source-Repo: https://github.com/servo/servo
Source-Revision: f29ea4e4ef633c023a43f47f7fc8c6b46e51b8df
2015-03-25 07:54:50 -06:00
Ms2ger 3cb06b56a1 servo: Merge #5354 - Cleanup canvas_paint_task.rs (from Ms2ger:canvas); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 004e12c89deb2c30ac634e3ce2e2c63ac9da5dee
2015-03-25 03:45:48 -06:00
Tetsuharu OHZEKI 5bf2fed53e servo: Merge #5346 - Add bindings support for unrestricted float values (from saneyuki:binding); r=jdm
- Fix #707
- Take over from #5106

Source-Repo: https://github.com/servo/servo
Source-Revision: e77c4e2d76104855c42d1eee09caf36b61acccad
2015-03-25 01:09:47 -06:00
Corey Farwell 32417e1cd8 servo: Merge #5351 - Add links for script::dom::window to whatwg HTML spec (from frewsxcv:window-docs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8b5df113f0202e889195e3772e13c037c4d33cc7
2015-03-24 23:54:48 -06:00
Glenn Watson 58a59a03a9 servo: Merge #5350 - Fixes #4964 and #4965 (from glennw:glutin-fixes); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 2926963045f505b5cf88fd433c696c9edfb829ae
2015-03-24 21:57:48 -06:00
Avi Weinstock 7e1ad8fb27 servo: Merge #5345 - Create a seperate thread for devtools' TCP acceptor (Closes #5294) (from aweinstock314:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1f0291c4db25c7f0f6bb2c0f1126819162a97aa6
2015-03-24 16:39:49 -06:00
Diego Marcos d6bdd7223d servo: Merge #5231 - Implementing canvas drawImage API for HTML Canvas elements as image sour (from dmarcos:issue4784); r=jdm
...ce

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ab1ece765a50e26c2908bcbe5463ff1fda0b085
2015-03-24 14:01:06 -06:00
snf c0fb8ff049 servo: Merge #5306 - Implementing StorageEvent interface (from snf:storage_event); r=jdm
Needed for #5196

Source-Repo: https://github.com/servo/servo
Source-Revision: 2c51d0ef53d25892be4c992fdbe131c1b641bf74
2015-03-24 12:52:00 -06:00
Patrick Walton 2d75c96ff8 servo: Merge #5344 - layout: Stop copying the guts of style objects when calculating replaced widths and heights (from pcwalton:dont-copy-style-guts); r=mbrubeck
50% layout improvement in a photo gallery demo I'm working on.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a9f29f3824479da357d5cded2dc0847e6854813
2015-03-24 11:42:55 -06:00
Corey Farwell 2be8901a8a servo: Merge #5343 - Clean up a few things in script::dom::window (from frewsxcv:script-dom-window); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1432b630d2fb54be1bae512d3a37cc0aee714db4
2015-03-24 10:33:55 -06:00
Corey Farwell bff27f2f8e servo: Merge #5334 - Cleanup and modernize script::dom::document (from frewsxcv:cleanup-document); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 8f4526842087c0e47a51d320d06749980ed94ecb
2015-03-24 06:54:48 -06:00
Nicholas Nethercote f9758aa688 servo: Merge #5335 - Move profiler code from `util` into a new crate `profile` (from nnethercote:profile-crate); r=glennw
- Most of util::memory has been moved into profile::mem, though the
  `SizeOf` trait and related things remain in util::memory. The
  `SystemMemoryReporter` code is now in a submodule
  profile::mem::system_reporter.

- util::time has been moved entirely into profile::time.

Source-Repo: https://github.com/servo/servo
Source-Revision: d1268ec9c6633684270015e7b2619181aeb47b8b

--HG--
rename : servo/components/util/time.rs => servo/components/profile/time.rs
2015-03-24 03:15:49 -06:00
Glenn Watson 95196d8d68 servo: Merge #5333 - Ensures that iframe navigation updates the parent iframe element subpage id (from glennw:fix-iframe-subpage); r=jdm
This fixes the case of clicking a link in an iframe, going back, then clicking the link again.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2f85c5bb502c2582d34772db979e27c741ee76e3
2015-03-23 23:03:45 -06:00
Glenn Watson a36e5c770b servo: Merge #5332 - Fixes a bug where the window size may not get passed to a new root pipeline (from glennw:fix-root-window-rect); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: cad58b3bec03586fd7d81e6fa45831803efd2350
2015-03-23 21:45:46 -06:00
Avi Weinstock 5114131570 servo: Merge #5328 - Fixed some deprecation errors in components/net (from aweinstock314:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: be68ea0d81718415cf78e45edbe46800a49697c9
2015-03-23 20:36:47 -06:00
Adenilson Cavalcanti 5d4903ed78 servo: Merge #5326 - Squashing the remaining warnings in utils module (from Adenilson:squashingWarnings03); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7f60feef77ff9f3cdd1c592e71d8f7afa2ac1199
2015-03-23 19:27:46 -06:00
Glenn Watson 945a29068c servo: Merge #5318 - Make text input relayout when value is changed directly (from glennw:input-relayout); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b7e66c5349e639dd6b1850e6b6e93811ffd47141
2015-03-23 18:03:45 -06:00
Nicholas Nethercote 12a0f0c4fc servo: Merge #5284 - Print trees in the memory profiler's output (from nnethercote:treeify-reports); r=jdm
Memory reports are much nicer to read when grouped into trees, which requires giving each report a path instead of a name.

Sample output:
```
Begin memory reports
|
|    2.51 MiB -- pages
|       2.51 MiB -- url(file:///home/njn/moz/servo/../servo-static-suite/wikipedia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyclopedia.html)
|          2.51 MiB -- display-list
|
|  238.89 MiB -- resident-according-to-smaps
|     188.31 MiB -- anonymous (rw-p)
|      27.29 MiB -- /home/njn/moz/servo/components/servo/target/debug/servo (r-xp)
|       7.82 MiB -- other
|       6.65 MiB -- [heap] (rw-p)
|       3.55 MiB -- /usr/lib/x86_64-linux-gnu/dri/i965_dri.so (r-xp)
|       1.42 MiB -- /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
|       1.13 MiB -- /home/njn/moz/servo/components/servo/target/debug/servo (r--p)
|       0.74 MiB -- /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 (r-xp)
|       0.73 MiB -- /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 (r-xp)
|       0.65 MiB -- /lib/x86_64-linux-gnu/libm-2.19.so (r-xp)
|       0.60 MiB -- /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1 (r-xp)
|
|   71.08 MiB -- jemalloc-heap-active
|   59.11 MiB -- jemalloc-heap-allocated
|  180.00 MiB -- jemalloc-heap-mapped
|  232.87 MiB -- resident
|   54.43 MiB -- system-heap-allocated
| 3130.11 MiB -- vsize
|
End memory reports
```

Source-Repo: https://github.com/servo/servo
Source-Revision: bfb80f20b523867c94d7cda8b984ca14eb9587bf
2015-03-23 16:33:47 -06:00
Corey Farwell 9695d84a7c servo: Merge #5312 - Cleanup 'view-source:' conditional (from frewsxcv:cleanup-view-source); r=jdm
Fixes #5304

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c3615ced1c4b648e63ad8c33ea0885c45ce3fb1
2015-03-23 15:42:48 -06:00
Corey Farwell 60bbdefff4 servo: Merge #5311 - Make Actor::handle_message take &str instead of &String (from frewsxcv:handle-message-str); r=jdm
Fixes #5305

Source-Repo: https://github.com/servo/servo
Source-Revision: f62ab247fcb9e5fb7025dfdaa83f4ebd4084eab1
2015-03-23 14:42:50 -06:00
Josh Matthews 5b0eafa083 servo: Merge #5327 - Fix double-panic when the script task panics (from Ms2ger:memory-explosion); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 5ce7d8accfc52dd37b19b4400a643a980412bb2f
2015-03-23 13:39:53 -06:00
Ms2ger d5ae5a73b2 servo: Merge #5324 - Remove allow(missing_copy_implementations) attributes (from Ms2ger:missing_copy_implementations); r=jdm
This is now the default.

Source-Repo: https://github.com/servo/servo
Source-Revision: b1a35f549baad871a3691ae485af2efecd2d73f7
2015-03-23 08:45:50 -06:00
Corey Farwell 34bf7826c9 servo: Merge #5321 - Add TODO comments for a recently opened issue (from frewsxcv:patch-1); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ca79abe45871b4bfe8e8162cb39f8b6bacd0b0b6
2015-03-23 07:57:50 -06:00
Ms2ger a9cd0f12b3 servo: Merge #5323 - Fix warnings in script (from Ms2ger:script-warnings); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: f9826c3ae80a9d859fc067dcceddf3ab105656f6
2015-03-23 06:57:50 -06:00
Corey Farwell d81e8a7173 servo: Merge #5319 - dom::urlsearchparams cleanup and documentation (from frewsxcv:urlsearchparams); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ccac6a944e37e2ea99aa933bbabc2e3d896c2f6e
2015-03-23 05:18:50 -06:00
Ms2ger 176d45569b servo: Merge #5314 - Update some feature gates (from Ms2ger:warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4c2ec083e855d52eeb77f25e00190b8beb820742
2015-03-23 03:24:50 -06:00
Glenn Watson 2ee608fe49 servo: Merge #5281 - Experimental implementation of (a small subset of) mozbrowser APIs (from glennw:mozbrowser); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1f682d878db99651bfd26b8a28b57895f2238f87
2015-03-22 21:36:51 -06:00
Corey Farwell 7cb441f853 servo: Merge #5316 - Stop abusing format! macro when construct a String (from frewsxcv:no-format-abuse); r=jdm
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.

Source-Repo: https://github.com/servo/servo
Source-Revision: dfb8929b001c8d0fb6d5e63f5a9d6dcc17cb388a
2015-03-22 19:30:51 -06:00
Corey Farwell 2a6d042d29 servo: Merge #5307 - Tidy up script::dom::document.SetBody (from frewsxcv:document-set-body); r=jdm
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented

Source-Repo: https://github.com/servo/servo
Source-Revision: 445f1c891a5536a26b4759ba4b2dab99c31505f4
2015-03-22 10:09:46 -06:00
Ms2ger 6ba4aedea5 servo: Merge #5308 - Remove the unneccesary thread being spawned in Browser::new (from Ms2ger:main-spawn); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: aeaf1ea5833f9de40a0b4e27bc26196014ce1683
2015-03-22 09:18:47 -06:00
Manish Goregaokar 0af6669a72 servo: Merge #5298 - Basic userscript support (from Manishearth:userscript); r=saneyuki
Gives us a place to store polyfills and other userscripts so that we can:

 - Quickly determine what DOM features are needed to make stuff like jQuery work by iteratively writing stub implementations
 - Write spec-incompatible but "good enough" polyfills for stuff like jQuery to make Servo more testable on live sites, for demos, and for browser.html


r? @jdm

cc @eddyb

Source-Repo: https://github.com/servo/servo
Source-Revision: 72e2c79a089ff6654a36951ce4aedac62006e6a1
2015-03-22 08:27:48 -06:00
Ms2ger c90dcd40b6 servo: Merge #5301 - Modernize reftest.rs (from Ms2ger:reftests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 87af57cefc671f445c5b977f2b27d7ca9e70e390
2015-03-21 13:42:45 -06:00
Ms2ger ed37ff9cb6 servo: Merge #5303 - Update some code that's feature-gated under core (from Ms2ger:core); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 43f3f6c897916aea75773f74060ec84a338834d0
2015-03-21 12:57:46 -06:00
Manish Goregaokar 5dbe6eb389 servo: Merge #5296 - Replace unsafe_blocks by unsafe_code (from servo:unsafe_code); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 29a36adbe7d87fb38ba9bef3a718c6c823fb5977
2015-03-21 05:12:45 -06:00
Ms2ger 75737c51cb servo: Merge #5297 - Replace most usage of std::old_io::File (from Ms2ger:fs); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: ec60f29203c75b46d59253c7cbb4005fce7e4ad4
2015-03-20 17:00:44 -06:00
Corey Farwell a9e08702bc servo: Merge #5259 - A few Constellation cleanup commits (from frewsxcv:constellation-cleanup); r=glennw
I messed up #5255

Source-Repo: https://github.com/servo/servo
Source-Revision: 075f667ce7fe3d94e9013768449a93ff3155c307
2015-03-20 15:57:45 -06:00
Ms2ger d08d1bffbd servo: Merge #5293 - Cleanup resource_task's global_init() (from Ms2ger:global_init); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4eb26065acdc37d275e658d8581282cb39b90686
2015-03-20 15:00:49 -06:00
Patrick Walton 3f9d312730 servo: Merge #5261 - Remove debugging info in release mode and stop reflowing on every new image that comes in (from pcwalton:too-many-reflows); r=pcwalton,metajack
These help Facebook Timeline a lot.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: aa6ed369b80cbbc81eef9e8697963d0d64358f9b
2015-03-20 11:51:47 -06:00
Ms2ger 01a90574bd servo: Merge #5288 - Fix various build warnings (from Ms2ger:warnings); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 0663cd632517c9a9c86db47456c5a4da637045ed
2015-03-20 11:00:54 -06:00
Ms2ger c7a10f319e servo: Merge #5289 - Stop using CString::from_slice in redirect_output (from Ms2ger:android-redirect); r=metajack
It will panic if there are any null bytes in read_buffer, but fgets
guarantees that there is a null-terminator.

Source-Repo: https://github.com/servo/servo
Source-Revision: 717805a593b58c69763dcabadff0b4aff182c80b
2015-03-20 09:57:54 -06:00
Ms2ger ce96136abb servo: Merge #5287 - Update some feature gates (from Ms2ger:gates); r=jdm
CC #5286.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6ffd459479dde59f471eb42ef0515dd964b6a9d9
2015-03-20 09:12:51 -06:00
Tim Cuthbertson b25ea3bb55 servo: Merge #5282 - Free the interface prototype array when Window is finalized (from timbertson:finalize_global); r=Ms2ger
Fixes #1871

I thought I'd take a look at this for a first contribution to servo. A couple of things I'm not 100% sure on are:

1) `get_proto_or_iface_array` returns a `*mut *mut JSObj`, which I'm assuming is really an array of pointers to `JSObj`s. So dropping its return value will drop the memory for the array of pointers. Do we also need to drop each element, or is that handled by GC?

2) Are there any tests I need to add for this? I don't know if there are existing leak tests, or if leaks are mostly discovered by profiling.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8998edb912b4f6efea7b2ff4e707325d7c03488c
2015-03-20 07:54:48 -06:00
Mátyás Mustoha 6fe3dfb702 servo: Merge #5251 - Canvas: implement quadraticCurveTo() (from mmatyas:canvas_quadratic); r=jdm
Yet another small canvas patch.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2c85c1d312405c586f05244c221b65750cf09981
2015-03-20 04:27:47 -06:00
Mátyás Mustoha 1bf28c3915 servo: Merge #4891 - Implement canvas gradient (from mmatyas:canvas_gradient); r=jdm
Based on [ebalint](https://github.com/ebalint)'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases.
Depends on #4623 and servo/rust-azure#136.

Source-Repo: https://github.com/servo/servo
Source-Revision: dea36f981650f027902b4f71f0cdabd2da69fe21
2015-03-20 03:12:47 -06:00
Maciej Skrzypkowski 22557a07cf servo: Merge #4819 - Added document.activeElement attribute (from mskrzypkows:document_activeElement); r=jdm
#4770

Source-Repo: https://github.com/servo/servo
Source-Revision: 459c35441612d3247450e253b1dcd0bc003985ae
2015-03-19 22:30:49 -06:00
Himaja 3f1f2f164e servo: Merge #5229 - M1503: Extend the developer tools support - Initial steps (from hsvalava:m1503); r=jdm
Fixing ConsoleMsg for console.log messages in the Developer Tools web console.

Source-Repo: https://github.com/servo/servo
Source-Revision: ab8d43910ca2f3e60e3dd1417be80ab53f438b6e
2015-03-19 21:48:48 -06:00
Matt Brubeck e555e46c85 servo: Merge #5280 - Use the same version of rand everywhere (from mbrubeck:rand); r=larsbergstrom
r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 794d9f696a7a1c80afec44badfb151c047239cd7
2015-03-19 17:33:48 -06:00
Glenn Watson 83c49f2b56 servo: Merge #5270 - Fix hit testing with stacking contexts (apparent since transforms landed) (from glennw:hit-test-stacking-context); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: fef439726aea26ef631f414c4852fa4cb49fff15
2015-03-19 15:18:53 -06:00
Jack Moffitt e0618abf79 servo: Merge #5276 - Switch from poll_events to wait_events (from metajack:fix-idle-loop); r=pcwalton
This fixes 100% CPU usage during idle.

Source-Repo: https://github.com/servo/servo
Source-Revision: e845695b6674a8f97f6a172bf575e6c965883ff1
2015-03-19 12:03:52 -06:00
Jack Moffitt 646b243c98 servo: Merge #5277 - Fix overflowed arithmetic (from metajack:deque-wrap-fix); r=jdm
This uses wrapping_add, which was always the intended operation.

Fixes #5275.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4863eb65e9419d4b89834c7d1ad068eabfa05641
2015-03-19 09:45:56 -06:00