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

3618 Коммитов

Автор SHA1 Сообщение Дата
Adenilson Cavalcanti d773ec9eaf servo: Merge #5476 - Instead of panicking on broken url, break from the loop and return (from servo:load-failure-panic); r=jdm
Fixes #5365.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6824bc93241d8ad6eff30e5014d27b88ea8a65d7
2015-04-01 07:51:46 -06:00
Keith Yeung c115a75fc4 servo: Merge #5474 - Handle the for and event attributes on a script element correctly when o (from servo:script-for-event); r=Ms2ger
...ne of them is present (fixes #5258).

Source-Repo: https://github.com/servo/servo
Source-Revision: f25604c7f1711ae1218552e529535edc7a60acb2
2015-04-01 07:06:46 -06:00
Florian Eula 19c6db4003 servo: Merge #5475 - Implement the onsubmit event handler (fixes #5396) (from servo:add-event-handlers); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d74e6330a49275bc5d15d29ff55c081739ce3659
2015-04-01 05:18:47 -06:00
yodalee eb0f1adfa5 servo: Merge #5469 - Implement TextEncoder (fixes #4768) (from mbrubeck:yodalee-issue4768-textencoder); r=jdm
This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied:

* Fixed build errors/warnings from the latest rust upgrade.
* Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH.

I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box.  (Or maybe I just didn't wait long enough.)  If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead?

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 4846607e189a65baf8d9ac6566594b7893d07f12
2015-03-31 20:06:49 -06:00
Kyle Cesare 88dfd90815 servo: Merge #5405 - Add space in mach command suggestion (from kylc:fix_mach_help_msg); r=Ms2ger
Running `./mach run --release` without a release profile built suggests running `./mach build--release`. This PR adds a space before `--release`.

Source-Repo: https://github.com/servo/servo
Source-Revision: b20cc69a7a30f62fcdfee5c7f5ca61454199d425
2015-03-31 17:15:52 -06:00
snf bfcff3d7db servo: Merge #5419 - Send storage event (from snf:send_storage_event); r=jdm
Addresses #5196

Source-Repo: https://github.com/servo/servo
Source-Revision: c0c54875a282fd6d03daba71e6e764763be70e09
2015-03-31 15:51:52 -06:00
Nicholas Nethercote 86cb97b7e2 servo: Merge #5441 - Use usize rather than u64 in MemoryReport (from servo:heap-unclassified); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8976bbfe7d8fa061ee7270e4b3553f7fde6050e6
2015-03-31 15:03:56 -06:00
Matt Brubeck 15dc1862d4 servo: Merge #5349 - Don't add margin/border/padding twice to position (from mbrubeck:placement-size); r=pcwalton
I think this should have been changed in #3618 but was missed. r? @pcwalton

I wasn't able to come up with a good test case for this, partly because of other bugs related to floats and formatting contexts.

Source-Repo: https://github.com/servo/servo
Source-Revision: b79d06c8d2363ebd6bdb171a943d1c932a6cea68
2015-03-31 14:15:59 -06:00
Prabhjyot Singh Sodhi 245f72f8e1 servo: Merge #5039 - Make Tidy check ports/cef and ports/glutin (from psdh:tidy); r=jdm
Fixes #5034

Source-Repo: https://github.com/servo/servo
Source-Revision: 9f3493b5bbfc6f0c40385fb41a32e006092e0f3a
2015-03-31 12:42:56 -06:00
Deokjin Kim c77a889e94 servo: Merge #5457 - Implement Navigator.appVersion(#5409) (from deokjinkim:navigator_appversion); r=jdm
In my mistake, I close PR for this commit.
I'm sorry for inconvenience.

@jdm 's comment
The test expectations for /tests/wpt/web-platform-tests/html/dom/interfaces.html and /tests/wpt/web-platform-tests/workers/interfaces.workers.js will need to be updated - http://mxr.mozilla.org/servo/search?string=appversion

According to your guide, I revised commit. Is this your intention?
r? @jdm

cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 225d7d2ece418d5ecefd7ce9047c4754ffb68c73
2015-03-31 11:51:55 -06:00
Patrick Walton c9e2901806 servo: Merge #5400 - layout: Implement CSS transitions per CSS-TRANSITIONS § 2 (from pcwalton:transitions-redux); r=glennw
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: ebdf1d494b6c986e6dfcb7d8fd3f0ffa126523ed
2015-03-31 10:39:56 -06:00
Guro Bokum b937bffcbb servo: Merge #5166 - RootCollection doesn't check if its SmallVec has spilled #5037 (from JIoJIaJIu:gc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 52cc63a2622a77ee317f1b320be8ae7e478b2a43
2015-03-31 09:24:58 -06:00
Patrick Walton 398f2d6a8f servo: Merge #5428 - script: Squash mouse-move events just like resizes (from pcwalton:squash-mouse-move); r=jdm
Otherwise they queue up if the event handler isn't 60FPS.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: c1cc31b9d66f3c61dd0aa7e6a1a43991187d09a5
2015-03-30 13:40:04 -06:00
Adenilson Cavalcanti 72521a0339 servo: Merge #5366 - Load a placeholder when a url to an image is broken (from Adenilson:loadPlaceholder01); r=jdm
I decided to use the old Netscape broken image link icon (later we may
replace the image asset for something more trendier).

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e282d55d7e36f0e488a395b90e961e9200c3817
2015-03-30 12:40:12 -06:00
Patrick Walton 04c5c4c74e servo: Merge #5393 - layout: Stop going to the DOM to determine the root flow's background color (from pcwalton:root-flow-color-reform); r=glennw
This allows us to do layout off the main thread, which is necessary for
transitions.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 46d4ef81674d1de4b9066185c7e63c32b04c167e
2015-03-30 11:40:14 -06:00
Corey Farwell dd91180ff0 servo: Merge #5451 - Cleanup script::dom::cssstyledeclarations (from frewsxcv:cleanup-css-style-declarations); r=Ms2ger
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec

Source-Repo: https://github.com/servo/servo
Source-Revision: 018e1f726d0ec0bf3d0dee68594ef1151dc8049d
2015-03-30 10:55:03 -06:00
Ms2ger 07a6ecf941 servo: Merge #5453 - Remove an unused import (from Ms2ger:unused-import); r=glennw
I accidentally left it in after removing the calls to stdout/stderr in
d926b8342b492cfa442a72b4d4da01e7e23d9cba.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5ead929fea34ca6d05d6bc4f0a07eeab4dfae207
2015-03-30 09:46:07 -06:00
Corey Farwell 7d70a4f3b7 servo: Merge #5403 - Improve and fix default_path cookie algorithm (from frewsxcv:cookie-default-path); r=jdm
* Previously, the function returned an owned String, which is not
  necessary, so now it returns a slice
* Steps have now been documented/labeled
* The last step of the algorithm was incorrect; it would only slice the
  path if the "/" was the last character, which is not what the spec
  says. The spec says to slice up until (but not including) the last
  "/". Also added a regression test for this.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d00e37c23dce23cad5b98f82ae711675f324810
2015-03-30 08:52:06 -06:00
Mikko Vanhatalo ed80e888c3 servo: Merge #5379 - Fixed code_value values (from minsumm:code_value); r=jdm
Changed Key::N to KeyN, also changed Equals to Equal, and NumpadEquals to NumpadEqual.

Source-Repo: https://github.com/servo/servo
Source-Revision: 629edc5c46a869b5bb6bc51b8d39b0115702a00c
2015-03-30 07:58:06 -06:00
Mátyás Mustoha 812d7ef3e7 servo: Merge #5455 - Canvas: arc throws IndexSizeError on negative radius (from mmatyas:canvas_arc_negativeradius); r=Ms2ger
"Negative values for radius must cause the implementation to throw an IndexSizeError exception."

Source-Repo: https://github.com/servo/servo
Source-Revision: 1bd8e18d92c291418ce6a5712f7b4503d9b5104c
2015-03-30 04:16:04 -06:00
Corey Farwell 1e7acc5e4e servo: Merge #5448 - Fix useless assert in script::dom::element (from frewsxcv:fix-assert); r=Ms2ger
We should ensure the parameter is lowercased. Right now, the assert will
always return true.

Discussed in #5445

Introduced in ee2ccc4f872ba33a86057d87a99d1015b3c41cf1

Source-Repo: https://github.com/servo/servo
Source-Revision: 350a35428ab547e45e86826d2a818cb15d004bf5
2015-03-29 20:31:01 -06:00
Ms2ger 61c91ab321 servo: Merge #5444 - Fix gonk warnings (from servo:gonk-warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: acf98dcccdd0affce6346ebf1f6187b2e07761dc
2015-03-29 17:54:59 -06:00
Brandon DeRosier 29ee916a7f servo: Merge #5422 - Use box syntax instead of Box::new() (from bdero:bdero/box-syntax); r=jdm
Closes #5417

Source-Repo: https://github.com/servo/servo
Source-Revision: 39556cc8328793478c0e34ff99e2d36d1ab4f5cb
2015-03-29 17:10:01 -06:00
Ms2ger 1bc473080c servo: Merge #5443 - Use more usize (from Ms2ger:int); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: a0a1304be08250511e20ed8b378bbf6a34c22bf4
2015-03-29 16:16:01 -06:00
Corey Farwell f68ba10506 servo: Merge #5447 - Remove some unnecessary uses of `as_slice` (from frewsxcv:as-slice); r=jdm
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:

* `String` -> `str`
* `Atom` -> `str`

The latter of those two requires, a bump of the locked `string-cache`
library

Source-Repo: https://github.com/servo/servo
Source-Revision: 0fd41847a39be387c03bd5d8b6f2aec2b1bb6f66
2015-03-29 14:52:02 -06:00
Michael Wu ef4d622eec servo: Merge #5442 - Fix more gonk warnings (from servo:fix-more-gonk-warnings); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d3574b583d1c6b4bd591c8174918829a1c559c2
2015-03-29 05:49:01 -06:00
Mukilan Thiyagarajan 6cd127a09d servo: Merge #5436 - Implement a replacement for Vec<Root<T>> (from servo:rooted-vec); r=Ms2ger,jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1282850b998ce82195a7099d950676fc1b53b86b
2015-03-29 05:07:01 -06:00
Ms2ger 6e049e2b87 servo: Merge #5437 - Remove some int/uints (from Ms2ger:int); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7d0d8514565d898123411ece56bfb09e578dbe1c
2015-03-29 03:49:01 -06:00
Corey Farwell 6a9953cad1 servo: Merge #5440 - Add links to spec for script::dom structs/methods (from frewsxcv:spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cf76d65baa8ced9f748b0d5cd632c8852da134d
2015-03-28 19:01:03 -06:00
Corey Farwell 54af934234 servo: Merge #5435 - Cleanup and modernize script::dom::attr (from frewsxcv:dom-attr-cleanup); r=jdm
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization

Source-Repo: https://github.com/servo/servo
Source-Revision: e70beca74bb85bec1f0ea4bb84cea6fea3cfc439
2015-03-28 14:40:02 -06:00
Ms2ger a866f2e1e2 servo: Merge #5416 - Remove some int/uints (from Ms2ger:int); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 674e52afa1012cb342629dab4d3abae975a16fe9
2015-03-28 13:58:02 -06:00
Ms2ger 57cf222efe servo: Merge #5434 - Move to new io in util (from Ms2ger:util-old-io); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: be255304af65ac6aa4d26ea214460073536b9b09
2015-03-28 13:07:06 -06:00
Ms2ger e09eea9082 servo: Merge #5432 - Use the new io's stderr handle to write out the hard-fail warning (from Ms2ger:stderr-comp); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ce3f777a12212604ec5cb56a0145f3cf8fca9ea7
2015-03-28 12:10:06 -06:00
Ms2ger a6a0dfc03e servo: Merge #5431 - Remove some unused imports (from Ms2ger:unused-imports); r=jdm
These became unused in f45db7714c8c3244fe20d1b0a104cb845d0b79f5; I don't know
why I didn't notice that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2b9bfb9af387fba1a080bed070cf6134eb5d10e1
2015-03-28 11:07:03 -06:00
Ms2ger 02d5d537ae servo: Merge #5418 - Cleanup contenttest (from Ms2ger:contenttest); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 65a0ebc5670c249acd3a621816c3322f2f6e1535
2015-03-28 09:37:06 -06:00
Patrick Walton 2394b6a563 servo: Merge #5427 - script: Fix O(n^2) dirty bit marking when setting style on all immediate children of a node (from pcwalton:accidentally-quadratic); r=Ms2ger
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 5833dea7338f1331a36ca3e792bf7656f2d67bf9
2015-03-28 08:52:06 -06:00
Ms2ger 00a5e47538 servo: Merge #5413 - Simplify URLSearchParams::serialize's percent-encoding (from Ms2ger:percent-encoding); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 55f9bd5d6f95cde282909c9128c00e9644332729
2015-03-27 18:09:59 -06:00
Corey Farwell 9e49a08e92 servo: Merge #5401 - Cleanup and modernize script::dom::element (from frewsxcv:cleanup-element); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e916ee081aac4739728843b5761c860983f6f913
2015-03-27 16:25:00 -06:00
Thiago Pontes ebfcbc1f1f servo: Merge #5181 - Notify devtools about new worker globals (from thiagopnts:master); r=jdm
This is for #4704. I'm not sure if this is the best approach, so I'm open to suggestions.

Source-Repo: https://github.com/servo/servo
Source-Revision: 439e3150d74453b86abbcc7934b7e5152f102940
2015-03-27 13:33:56 -06:00
Manish Goregaokar ef4b90fe68 servo: Merge #5389 - Blanket impl JSTraceable on raw pointers (from Manishearth:trace_raw); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5dd43bf84c78063b6eaf505cab253c1666d969ce
2015-03-26 20:51:51 -06:00
Ryan Leavengood 43c977e9b0 servo: Merge #5392 - Fix #5374: Use correct codes for alphabetic chars (from leavengood:fix-alphabetic-key-codes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 07e271b4e5a3aaa6e3e57084dd51b5e1ad987597
2015-03-26 14:30:56 -06:00
Ryan Leavengood 2f474821eb servo: Merge #5390 - Fix #5367: Map GraveAccent to Backquote (from leavengood:backquote-handling); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8127e1e1e9f601f1bcf718198d0c56ed9b6a99e6
2015-03-26 13:12:53 -06:00
Ms2ger 9b8d5ae6d3 servo: Merge #5383 - Update js (from Ms2ger:update-js); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 37a98e40b8b78d88360aa3f856a6c966332e5f51
2015-03-26 12:18:55 -06:00
Ms2ger a70333ec06 servo: Merge #5388 - Stop using old_io in net tests (from Ms2ger:net-tests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ac786e29678ceba8c66bcaa0f2096e4cca2a2372
2015-03-26 11:33:55 -06:00
Manish Goregaokar 85fba26593 servo: Merge #5387 - make no_jsmanaged_fields not require imports (from Manishearth:macro_path); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 265f313de3de12ee137073d4dfde5c35a33c789c
2015-03-26 10:39:57 -06:00
Ms2ger e4c4c06553 servo: Merge #5381 - Stop using old_path (from Ms2ger:old_path); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fefdd9afbaa661b1282babc27e3e5ca7c9ea669d
2015-03-26 09:36:56 -06:00
Fabrice Desré 4e0aaf879e servo: Merge #5380 - Suppress unused import warnings (from fabricedesre:no-unused-import); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 26c77d6662255e6da4ac86c3efb64bd4eba86697
2015-03-26 08:51:51 -06:00
Corey Farwell c1770f9cb8 servo: Merge #5375 - Add comments linking XHR code to XHR specification (from frewsxcv:xhr-docs); r=jdm
Also adding some newlines for visual separation between
functions/methods

Source-Repo: https://github.com/servo/servo
Source-Revision: 699ace844c939ab97180acad67a984dc71108a12
2015-03-26 06:33:50 -06:00
Corey Farwell 9a2592c2ae servo: Merge #5377 - Remove unused script::dom::node::NodeIterator (from frewsxcv:rm-node-iter); r=jdm
Was introduced in 7aee1cae84704b885988a5985a7604747125ec1e

I noticed it isn't actively in use, so unless there's some bigger reason
why it exists, it could probably be removed

Source-Repo: https://github.com/servo/servo
Source-Revision: 96fb1dac3d346cf2e46e5d5ec5abf79134743dad
2015-03-25 23:30:48 -06:00
Nicholas Nethercote 7f03c21505 servo: Merge #5348 - Rename lots of profiling-related things (from nnethercote:profiler-renaming); r=jdm
```
------------------------------------------------------------------------
BEFORE                              AFTER
------------------------------------------------------------------------
util::memory                        util::mem
- heap_size_of                      - heap_size_of (unchanged)
- SizeOf                            - HeapSizeOf
  - size_of_excluding_self            - heap_size_of_children

prof::mem                           prof::mem
- MemoryProfilerChan                - ProfilerChan
- MemoryReport                      - Report
- MemoryReportsChan                 - ReportsChan
- MemoryReporter                    - Reporter
- MemoryProfilerMsg                 - ProfilerMsg
  - {R,UnR}egisterMemoryReporter      - {R,UnR}egisterReporter
- MemoryProfiler                    - Prof
- ReportsForest                     - ReportsForest (unchanged)
- ReportsTree                       - ReportsTree   (unchanged)
- SystemMemoryReporter              - SystemReporter

prof::time                          prof::time
- TimeProfilerChan                  - ProfilerChan
- TimerMetadata                     - TimerMetadata (unchanged)
- Formatable                        - Formattable [spelling!]
- TimeProfilerMsg                   - ProfilerMsg
- TimeProfilerCategory              - ProfilerCategory
- TimeProfilerBuckets               - ProfilerBuckets
- TimeProfiler                      - Profiler
- TimerMetadataFrameType            - TimerMetadataFrameType (unchanged)
- TimerMetadataReflowType           - TimerMetadataReflowType (unchanged)
- ProfilerMetadata                  - ProfilerMetadata (unchanged)
```
In a few places both prof::time and prof::mem are used, and so
module-qualification is needed to avoid overlap, e.g. time::Profiler and
mem::Profiler. Likewise with std::mem and prof::mem. This is not a big
deal.

Source-Repo: https://github.com/servo/servo
Source-Revision: d784d9c488be4533a3590a154addd366d15a5864
2015-03-25 21:18:48 -06:00