Commit Graph

3403 Commits

Author SHA1 Message Date
Chris Manchester
4e33e62e67 servo: Merge #5094 - Add support for BinaryName attribute to servo's codegen (fixes #4435) (from chmanchester:binarynames); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1f53d30f858a71206fce01116a3b1e5c199c1648
2015-02-28 09:57:58 -07:00
Liam Zdenek
0ac8f1f430 servo: Merge #5059 - Click event is now a MouseEvent (from saneyuki:event); r=jdm
Fix #4260

Pick up: This original commit is https://github.com/servo/servo/pull/4718.

Source-Repo: https://github.com/servo/servo
Source-Revision: b261d27ac5fc5e8a858b344087792f9b1709ee55
2015-02-28 09:21:54 -07:00
Ms2ger
1bc0663206 servo: Merge #5100 - Fix a typo in argument_type (from Ms2ger:descriptorProvdider); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: b84f620b26b5dd14cb4a92bf428c5c722a6f6eb4
2015-02-28 08:45:54 -07:00
Alexandru Cojocaru
68cf9c0af2 servo: Merge #5098 - Remove uint/int inside components/util (partial #4745) (from servo:int-util); r=Ms2ger
This leaves range.rs alone.

Source-Repo: https://github.com/servo/servo
Source-Revision: 07b918f731c0ff7c101f69195a4ff94b2f13acdc
2015-02-28 07:21:53 -07:00
yodalee
50d5ff0835 servo: Merge #4928 - Issue4906 fix characterdata substringdata (from yodalee:issue4906-fix-characterdata-substringdata); r=jdm
issue #4906
Fix substringData function, and add a test case for all function in characterdata.

Source-Repo: https://github.com/servo/servo
Source-Revision: 55f763654910bb3110a8853d74481290a4e591af
2015-02-27 19:39:58 -07:00
Bryan Bell
195b198cde servo: Merge #4952 - Dont draw interior borders for text run fragments (from bjwbell:borders-txt-nodes); r=pcwalton
Inline fragments that are part of a text run don't have interior borders.
So don't draw interior borders or include them when calculating positioning.

Fixes https://github.com/servo/servo/issues/4658, where multiple text nodes that are adjacent have distinct borders.

r? @Ms2ger, @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: b2f099026a8c649daf063dc7e119a514c2680697
2015-02-27 16:57:53 -07:00
James Gilbertson
eaced89b69 servo: Merge #5066 - Implemented Document.currentScript (from luniv:document-currentscript); r=jdm
Implements https://github.com/servo/servo/issues/5057 (Document.currentScript)

Source-Repo: https://github.com/servo/servo
Source-Revision: 26567ef2e62597b359c179f8665213002e05da96
2015-02-27 11:30:57 -07:00
dhneio
64e845c2ed servo: Merge #5091 - Remove AccessControl header implementations in favor of hyper’s (from dhneio:5090); r=jdm
We no longer need these header implementations as they are included in hyper. Fixes #5090.

Source-Repo: https://github.com/servo/servo
Source-Revision: 60ce6c3b0fa7bd4199976a2b7e18f14df99bc511
2015-02-27 09:48:58 -07:00
Glenn Watson
1f9816fcf2 servo: Merge #5064 - Fix setting display:none after a layout where the element was visible (from glennw:hide-after-layout); r=pcwalton
Prior to incremental layout, the code would remove the existing
construction result. However, with incremental layout the construction result
is cloned rather than removed. This change ensures that the previous
construction result is cleared when an element's display type
changes to none.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8ad3c5aeb65e473a4c099b12e9439dfc556024f8
2015-02-26 14:46:10 -07:00
Jack Moffitt
10158ea9a8 servo: Merge #5078 - Update to latest Cocoa (from metajack:cocoa-hotifx); r=jdm
This fixes Servo in release mode on OS X.

Source-Repo: https://github.com/servo/servo
Source-Revision: 24139a21e8dabf5d1b16773a3a7a1919aa2655fd
2015-02-26 08:39:54 -07:00
Keith Yeung
c82108a005 servo: Merge #5031 - Moved dispatch_key_event method from script_task.rs to document.rs (from KiChjang:refactor-dispatch-key-event); r=jdm
Fixes #4982

Source-Repo: https://github.com/servo/servo
Source-Revision: 071941da59e442ad359d97e7c36e387c0029f9aa
2015-02-26 06:15:56 -07:00
James Gilbertson
1280a21db0 servo: Merge #5070 - Implement 'beforescriptexecute' and 'afterscriptexecute' events (from luniv:script-before-after-events); r=Ms2ger
Spec: https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block, sections 2.b.2 & 2.b.9

Source-Repo: https://github.com/servo/servo
Source-Revision: c1645bd10ccd9a17e149d8bec56633ac06d8529f
2015-02-26 01:06:51 -07:00
Adenilson Cavalcanti
06295cffa8 servo: Merge #5072 - Clean compilation warnings (from Adenilson:cleanWarnings01); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a8b55e821a10c5ed8e5942e88e88eb20d08ad43c
2015-02-25 22:48:50 -07:00
Glenn Watson
0d83959390 servo: Merge #5071 - If root element contains "reftest-wait" class, don't mark document as ready until it's removed (from glennw:reftest-wait); r=jdm
This allows reftests to perform tests for incremental layout and other bugs that require rendering multiple frames.

Source-Repo: https://github.com/servo/servo
Source-Revision: c7c399a26b01fe6f4d49476638a68caf6ecb8f82
2015-02-25 21:06:57 -07:00
Adenilson Cavalcanti
3fe1f46565 servo: Merge #5062 - Implements a DisplayList dumper (from Adenilson:printDisplayList01); r=pcwalton
This patch will iterate through the DisplayList after the reflow is done and print its elements (as also any sub-lists associated to a child node stacking context).

Source-Repo: https://github.com/servo/servo
Source-Revision: 67b78983db31128604339e2fd7f391e878cf9f9b
2015-02-25 20:15:56 -07:00
Jack Moffitt
e8c545debc servo: Merge #5069 - Change Servo release builds to include debugging (from metajack:rel-debug); r=larsbergstrom
This makes basic symbols available in release builds.

Source-Repo: https://github.com/servo/servo
Source-Revision: 259792e4818c6356a87d8375503feff9f837cf21
2015-02-25 12:04:04 -07:00
dhneio
7b5edad7d8 servo: Merge #5052 - Remove outdated warning from test-unit (from dhneio:5042); r=Manishearth
This warning is no longer applicable due to a change in cargo's behavior, see https://github.com/servo/servo/issues/5042

Source-Repo: https://github.com/servo/servo
Source-Revision: 862c66e78e9a590229acbcc9ce139653da7c1e52
2015-02-25 08:52:18 -07:00
Dae-seon Moon
4591049d79 servo: Merge #5068 - Remove ScriptMsg::Navigate (fixes #4948) (from servo:navigate-msg); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a5688466855c31548ba27506bd99a35b9e6d136d
2015-02-25 07:49:08 -07:00
Patrick Walton
cbb589d36c servo: Merge #5061 - style: Fix parsing of text decorations (from pcwalton:fix-text-decoration); r=mbrubeck
Adds a reftest so it doesn't break again.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: cbc4b9520e8fb609fa068bb53193a95202f3a0a7
2015-02-24 19:12:50 -07:00
Matt Brubeck
07744237bb servo: Merge #5060 - Fix incorrect comment in BlockFlow (from mbrubeck:comment); r=pcwalton
The behavior of this code was changed in #3631.  The parent no longer sets the inline size to a temporary value.

r? @pcwalton or @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 213b90fdacc3dc27d59e145ae37484dbc808f316
2015-02-24 18:30:57 -07:00
Ms2ger
0adaac0b3b servo: Merge #5048 - Derive Debug rather than the deprecated Show for TimerControlMsg (from servo:show-warning); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bf60477e955ff8997b8dffd2b4e6da76ad6b3346
2015-02-24 08:15:47 -07:00
Ms2ger
9f4b732f0b servo: Merge #5049 - Make 'args' a list in the mach run handler (from servo:Ms2ger-patch-1); r=Manishearth
This fixes a regression from 894e58f714de0f3d65aeb943dbf8f569feb8c1d6.

Source-Repo: https://github.com/servo/servo
Source-Revision: 337433cde572099ff2975fd5cade49a9b79911d2
2015-02-24 06:54:46 -07:00
Pawel Kondzior
4be04275fb servo: Merge #4960 - Add thaw/freeze messages that can suspend/resume webcontent timers #4907 (from pkondzior:add-script-timers-suspend-resume-functionality); r=jdm
Adds free/thaw methods to script_task that let you send suspend/resume messages to web content timers. Fixes #4907

Source-Repo: https://github.com/servo/servo
Source-Revision: a3ea3eed47713a4a6faa86c575bc2ac95c5fe135
2015-02-23 21:45:46 -07:00
Nathan Froyd
c17713165d servo: Merge #5047 - add basic |mach rr-{record,replay}| commands (from jdm:rr-mach-commands); r=jdm
These are very basic commands for invoking Servo underneath rr.  rr
currently doesn't support all the syscalls that Servo requires, but
that's easy to fix on the rr side.

Fixes #4177. Rebased from #4237.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6264e4dcdc75b83c8d08eb6bbbc9ed8412a2115c
2015-02-23 21:09:46 -07:00
Josh Matthews
2d23b906b0 servo: Merge #4996 - Eagerly report errors when evaluating JS on a global scope. Fixes #4966 (from jdm:reportpending); r=Ms2ger
I believe this problem was introduced with the mozjs error reporting changes, since we don't see errors reported from `<script>` blocks any more.

Source-Repo: https://github.com/servo/servo
Source-Revision: 99617557d40504060d5162739f8ba9b962843099
2015-02-23 20:30:48 -07:00
Nicholas Nethercote
c46175ed5f servo: Merge #4894 - Read smaps in the memory profiler on Linux (from nnethercote:read-smaps); r=jdm
Here's example -m output after these changesets are applied:

```
_size (MiB)_: _category_
     2798.61: vsize
      136.80: resident
      142.89: resident-according-to-smaps
       97.84: - anonymous (rw-p)
       23.98: - /home/njn/moz/servo/components/servo/target/servo (r-xp)
        6.58: - [heap] (rw-p)
        5.36: - other
        3.51: - /usr/lib/x86_64-linux-gnu/dri/i965_dri.so (r-xp)
        1.33: - /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
        0.93: - /home/njn/moz/servo/components/servo/target/servo (r--p)
        0.76: - /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 (r-xp)
        0.74: - /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 (r-xp)
        0.50: - /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (r-xp)
        0.50: - /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1 (r-xp)
        0.45: - /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 (r-xp)
        0.43: - /lib/x86_64-linux-gnu/libm-2.19.so (r-xp)
       30.85: system-heap-allocated
        4.91: jemalloc-heap-allocated
        6.11: jemalloc-heap-active
      120.00: jemalloc-heap-mapped
```
The `resident-according-to-smaps` line is new, as are all the indented lines beneath it. This is useful particularly because it shows how much memory is taken up by code, e.g. the line ending in `servo (r-xp)` shows that the `servo` executable's code alone takes up 24 MiB of physical memory.

Source-Repo: https://github.com/servo/servo
Source-Revision: eb7e86ac4e21334e807a81ed01348a82ac7610b5
2015-02-23 19:54:50 -07:00
Glenn Watson
2e341432b6 servo: Merge #4959 - Fixes a number of issues with setting hover state, and simplifies the code (from glennw:fix-hover); r=jdm
Specifically:
 - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs.
 - Send the mousemove event after all the hover states have been set correctly.
 - Correctly handle removing hover state from elements when mouse is not over any elements.
 - Correctly detect when a reflow is required (previous code failed in several edge cases).

Source-Repo: https://github.com/servo/servo
Source-Revision: 576158d08deae2d87bde351548cbeb77590a34dc
2015-02-23 19:18:51 -07:00
Ms2ger
12dfb91106 servo: Merge #5040 - Simplify RootCollection::unroot a bit (from Ms2ger:cleanup-unroot); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 9a5970cceacb40a742a3f34292ad6bf5fa56c01f
2015-02-23 14:51:54 -07:00
Simon Sapin
40036d9f8a servo: Merge #5010 - Move selector matching to an external library, for use outside Servo (from SimonSapin:external-selectors); r=larsberg
The new library is https://github.com/servo/rust-selectors. It’s not quite ready for other users (the API needs work), but this is a first step.

https://github.com/servo/rust-selectors/pull/2 should also be reviewed.

Fixes #3669.

Source-Repo: https://github.com/servo/servo
Source-Revision: 91abf5557b1a324d6568ce08cfb92cdffca10e41
2015-02-23 08:39:47 -07:00
Ms2ger
471b294157 servo: Merge #5028 - Split the 'Execute a script block' code out of prepare() (from Ms2ger:script-split); r=jdm
This also adds comments for missing steps.

The only change in behaviour should be the debug message when an external
script fails to load.

Source-Repo: https://github.com/servo/servo
Source-Revision: f0b5794e44a2a28212aaf3fac4c340a3f32a8515
2015-02-23 06:33:47 -07:00
Patrick Walton
c89b718f8e servo: Merge #5016 - script: Implement enough 2D canvas support to render basic SVGs such as (from jdm:canvas-for-svg); r=jdm
the tiger.

Rebased from #4623.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2e1adb3fa670504fb0fedaa517f312ba233bf67b

--HG--
rename : servo/components/script/dom/webidls/HTMLHeadElement.webidl => servo/components/script/dom/webidls/CanvasPattern.webidl
2015-02-22 20:33:45 -07:00
Ms2ger
f158c18736 servo: Merge #5024 - Fix build warnings in CEF (from Ms2ger:cef-warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 21a6633898d244595dc3bcf8b10ed859bca96e2e
2015-02-22 15:57:43 -07:00
Tetsuharu OHZEKI
1c2ef92830 servo: Merge #5023 - Introduce dom::htmlscriptelement::EventDispatcher (from saneyuki:script); r=Ms2ger
Fix #5021

Source-Repo: https://github.com/servo/servo
Source-Revision: fe7db9d8d0dbf1135cf955a0cfb7bb1405a92a6e
2015-02-22 14:57:44 -07:00
Keith Yeung
3bd31af0aa servo: Merge #5022 - script_task.rs now utilizes hyper's LastModified header (from KiChjang:hyper-last-modified); r=Manishearth
Fixes #4986

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d9ff6e880a22de9fc5f9751da5a404e55ea23bf
2015-02-22 14:24:45 -07:00
Josh Matthews
4671d7cb11 servo: Merge #5019 - The HTML serializer depth can change on each iteration (from jdm:serializerfix); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0ea9dafa639d153f6f064192f8f378c0b482540f
2015-02-22 13:51:45 -07:00
Prabhjyot Singh Sodhi
56b7bb7f35 servo: Merge #5012 - using opts::default_opts() in cef/core.rs (from psdh:defopts); r=jdm
Fixes #5002

Source-Repo: https://github.com/servo/servo
Source-Revision: 2271de3d5be0adbe6dcdcbfbbc480a3d39b8a321
2015-02-22 13:15:44 -07:00
Edit Balint
515ef0d463 servo: Merge #5020 - Implement Canvas pixel manipulation (from jdm:canvas); r=jdm
Rebase of #4639.

Source-Repo: https://github.com/servo/servo
Source-Revision: 287f390c4a56dd8c5960df699d45653227b25d6f
2015-02-22 11:48:46 -07:00
Ms2ger
a9f76e032c servo: Merge #5017 - Mark some unused arguments as unused in bindings (from Ms2ger:unused-args); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3ea09bf2ea8db621107abbc8b358f1c0ce0ffea4
2015-02-22 10:15:47 -07:00
Ms2ger
3aa03cdd4e servo: Merge #5004 - Reindent handle_click_event (from Ms2ger:handle_click_event); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e68d6d2924bf2f6f762e2dc50b75fc32c0eafe16
2015-02-22 09:36:46 -07:00
Ms2ger
2379d5a154 servo: Merge #5015 - Only unwrap the object once when finalizing (from Ms2ger:finalize); r=jdm
Previously, we had 'value' and 'this' locals, both storing a pointer to the
DOM object, for no good reason.

Source-Repo: https://github.com/servo/servo
Source-Revision: 92620c0a5f3bf01ddfb2f52fb89cdc467ff4a761
2015-02-22 08:36:49 -07:00
Prabhjyot Singh Sodhi
27cccf0267 servo: Merge #5011 - changin os.exit to sys.exit (from psdh:ossys); r=Manishearth
Fixes #5009

Source-Repo: https://github.com/servo/servo
Source-Revision: a5f52bf086fcb4ec4c3d22917b928ebd0997ff84
2015-02-21 13:42:45 -07:00
Prabhjyot Singh Sodhi
8e4c455bec servo: Merge #4956 - Fixing Intermittent failure in pages with timers (from psdh:interfail); r=jdm
Fixes #4923

Source-Repo: https://github.com/servo/servo
Source-Revision: f1f826544919b4fa7cdf4bf263abf0c0c1497f70
2015-02-21 12:51:44 -07:00
Ms2ger
959786fd9f servo: Merge #5007 - Remove unused imports (from Ms2ger:warnings); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 939b13f436d2fc895cf8a57140b0bd50acc53a89
2015-02-21 11:33:46 -07:00
Ms2ger
0369e60ea1 servo: Merge #5006 - Cleanup ScriptTask::load (from Ms2ger:script_task); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 31c8f97b4b493d828f1b96144772f3df1aff145b
2015-02-21 10:48:46 -07:00
yodalee
5da0bd9faa servo: Merge #5003 - update mozjs-sys to newest (from yodalee:update-mozjs-sys); r=Ms2ger
update mozjs-sys after rust-mozjs

Source-Repo: https://github.com/servo/servo
Source-Revision: d368d70f14474c5c0460d0d06f163c390cff60bd
2015-02-21 10:06:48 -07:00
Tetsuharu OHZEKI
d03a50553c servo: Merge #4997 - Move DocumentProgressHandler to document.rs (from saneyuki:doc); r=jdm
Fix #4987

Source-Repo: https://github.com/servo/servo
Source-Revision: b589735b47e0c8c9b008831a776a6db38b38cd5d
2015-02-21 09:24:47 -07:00
Keith Yeung
06a1188c2f servo: Merge #4939 - Script elements now fire async error events (fixes #4506) (from KiChjang:script-element-error-events); r=jdm
Fixes #4506

Source-Repo: https://github.com/servo/servo
Source-Revision: 0be6389158799a58a46564524004e827c5884296
2015-02-21 08:42:46 -07:00
Keith Yeung
da58e664b1 servo: Merge #4931 - Worker now fires errorevent when url fetching failed, fixes #4511 (from KiChjang:worker-error-event); r=jdm
Fixes #4511

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ad9c678f7fbfaffe86a0f76904aaf5f5a3bbee2
2015-02-21 07:39:51 -07:00
Ms2ger
9c6ed590bc servo: Merge #5000 - Move gfx to libc from crates.io (from Ms2ger:libc-gfx); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bc5eeb00a1874c7211d6a656871000f9352c2f40
2015-02-21 06:51:50 -07:00
Keith Yeung
624cc237e1 servo: Merge #4999 - Moved handle_click_event from script_task.rs to document.rs (from KiChjang:refactor-handle-click-event); r=jdm
Fixes #4983

Source-Repo: https://github.com/servo/servo
Source-Revision: aad6cc03b80c3ef88439c3dc68693ddcc941ecde
2015-02-21 05:42:53 -07:00