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

5002 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger fad7f9bff1 servo: Merge #8212 - Remove SharedLayoutContext::reflow_root (from Ms2ger:reflow-root); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: b6bcccb204f710665482fa8098084a30126a3bac
2015-10-30 04:53:54 +05:01
Ms2ger 1b01c21c9d servo: Merge #5745 - Move the DOM memory management blog post into the tree (from servo:gc); r=Manishearth
This is a WIP, but I wanted to get eyes on it already.

Source-Repo: https://github.com/servo/servo
Source-Revision: 88f501c412ddf73bce8c585c324f45b0d97d48aa
2015-10-29 21:29:22 +05:01
Ms2ger 17fbd59d9a servo: Merge #8247 - Add thread assertions to js.rs (from Ms2ger:assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 430578355b75a3d58bec48b865cccbcf7eb8c990
2015-10-29 16:39:50 +05:01
Martin Robinson 5672e44e9c servo: Merge #8244 - Expand DisplayList layer bounds to whole pixels (from mrobinson:layer-size); r=pcwalton
Before passing these layers to the paint task, expand them to pixel
boundaries. This ensures that subpixel edges of the layer will not be
clipped away and helps prevent rounding issues with layer contents.

Fixes #8166.

Source-Repo: https://github.com/servo/servo
Source-Revision: 94ca87e7ddc07160b9205c0112b60b0a951f0742
2015-10-29 06:26:10 +05:01
Matt Brubeck f42dc56081 servo: Merge #8229 - Disable debug logging in release builds (from mbrubeck:debug-log); r=larsbergstrom
This uses the new `release_max_level` feature added in rust-lang-nursery/log#58 to turn the `debug!` and `trace!` macros into no-ops in optimized builds.

r? @pcwalton (or anyone else who wants it)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9501564e0143f134297bc1fd339883f7f987c283
2015-10-29 02:38:01 +05:01
Bobby Holley b3fb877c87 servo: Merge #8098 - Track event state changes on Document and do the dirtying from layout (from bholley:dirty_from_layout); r=jdm
This is a first step in fixing #6942.

Source-Repo: https://github.com/servo/servo
Source-Revision: 285e29c06637f31a8b8a27c2e454468717924ebd
2015-10-28 23:55:53 +05:01
Ms2ger 6089351099 servo: Merge #8242 - Update js (from Ms2ger:update-js); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 30ce2a84c162915f71873e9e20955e12709b39ae
2015-10-28 23:06:40 +05:01
Manish Goregaokar 0869f53e87 servo: Merge #8241 - Update euclid to 0.3 (from Manishearth:euclid_up); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d699a2b4419632e31b35352c518e2ef5ffcc9a3
2015-10-28 21:32:15 +05:01
Nathan Froyd 0e1dc5b616 servo: Merge #8226 - unblock using JS_GC_ZEAL (from froydnj:gc-zeal); r=Ms2ger
I think these patches move the `JS_SetReservedSlot` call to the right place for #6057.  I'm not sure that the interface to `create_dom_global` is the best; passing a `JSVal` or a `*libc::c_void` seemed about equal, so I'd welcome feedback there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3efa74997626afb3eda0f34842a4969da468dff0
2015-10-28 16:55:36 +05:01
Dongie Agnir df914bbdba servo: Merge #7963 - Implement ask_for_reset for HTMLSelectElement (from dagnir:issue-7774); r=eefriedman
Fixes #7774

Source-Repo: https://github.com/servo/servo
Source-Revision: 3951c577bf2ec0f809d81752737fccac966537a8
2015-10-28 07:16:02 +05:01
Axel Solis Trompler 64b55b1241 servo: Merge #8169 - Implement document.createEvent(TouchEvent) (from ax3lst:master); r=eefriedman
This solves #8160

Source-Repo: https://github.com/servo/servo
Source-Revision: 7c9f4644f3f5849a68a0575c755d9cb5619c86dc
2015-10-28 05:26:03 +05:01
Matt Brubeck 9023c5ff16 servo: Merge #8231 - Fix misplaced doc comment in plugins/lib.rs (from mbrubeck:plugin-doc); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 949a5b3a3e650c321e488cffc8ddee28a7283bb3
2015-10-28 04:43:36 +05:01
Michael Howell b5d2540e12 servo: Merge #8145 - Show overflow for #8118 (from notriddle:master); r=pcwalton
Fixes list items.

Source-Repo: https://github.com/servo/servo
Source-Revision: bccede03708c0e80b7ef718890e0a740edcce901
2015-10-28 03:28:07 +05:01
David Raifaizen eee7bbae25 servo: Merge #8129 - Made block type pattern match less inclusive (from craftytrickster:pos-fixed-list-item); r=glennw
Given the comments above the match statement, it seems that fixed-pos check should match only block elements in this case. Doing this change seems to partially resolve the issue where list items with `position:fixed;` styling are not displaying their bullet points. This change only resolves the issue for list items with `list-style-position: inside`, outside positioning is still not functioning correctly.

https://github.com/servo/servo/issues/8001#issuecomment-149781613

Source-Repo: https://github.com/servo/servo
Source-Revision: 381317f658bbfd66674cc1e92b27c86503ca7d31
2015-10-28 01:15:48 +05:01
Nathan Froyd cb4c680b95 servo: Merge #8040 - generate JIT argument type information for methods (from froydnj:codegen-arg-info); r=jdm
This enhances `CodegenRust.py` to output `JSTypedMethodJitInfo` structures where appropriate.  This brings a notable speedup to tests like Dromaeo's `dom-attr/getAttribute`, which improves by several orders of magnitude with these patches applied.

If there are tricks for addressing the XXX comments, I would appreciate hearing them.

I think this addresses all of #6904.

Source-Repo: https://github.com/servo/servo
Source-Revision: d1295e9e7d0acfa32a55827fa8e28a297dbcf214
2015-10-28 00:37:06 +05:01
Alan Jeffrey 5d19ecc6d6 servo: Merge #8224 - Upgrade glutin and related packages (from mbrubeck:glutinup); r=frewsxcv
Updated version of #8172.

Source-Repo: https://github.com/servo/servo
Source-Revision: 98dc67dbec7f4f9a6d8b62d75a9b2e0aca91eb7d
2015-10-27 23:30:53 +05:01
Rohan Prinja 83a9340c66 servo: Merge #8217 - remove DocumentProgressTask enum (from ajnirp:8211-remove-documentprogresstask); r=Manishearth
for #8211

Source-Repo: https://github.com/servo/servo
Source-Revision: a6e2c138db156a7b817107b22c482010ebcdcf2a
2015-10-27 00:12:02 -05:00
David Zbarsky d747cdd1bc servo: Merge #8200 - Implement HTMLCanvasElement#toDataURL (from dzbarsky:canvas_todata); r=glennw
Confirmed that dumping the output of toDataUrl on toDataURL.png.primarycolours.html gives the same results as Firefox (including padding)

Source-Repo: https://github.com/servo/servo
Source-Revision: 4a4dda38969d5f7efdfc1e28e04721302552195a
2015-10-26 23:29:04 -05:00
Martin Robinson 62da234ead servo: Merge #8215 - Implement pinch zoom emulation to the glutin port (from mrobinson:glutin-pinch-sim); r=glennw
The GLFW port had pinch zoom emulation that could be triggered by
holding control and using the mouse wheel. This was very useful for
testing pinch zoom behavior on desktop machines. This commit
implements this for the glutin port.

Source-Repo: https://github.com/servo/servo
Source-Revision: e49c7a3acbc36549e52f99ad67048f5e31352bad
2015-10-26 21:01:00 -05:00
Glenn Watson 219603be46 servo: Merge #8094 - Fix start and end points for linear gradients with angle specified (from glennw:fix-angle-gradients); r=pcwalton
Previously, this was most noticeable with 45deg gradients, where the gradient would end too early, and the remainder was filled with a solid color.

(This also fixes gradients on webrender, which relies on the start and stop points being correct).

Source-Repo: https://github.com/servo/servo
Source-Revision: b8f196f858dea3b6c275eafa57d14679f9be7066
2015-10-26 17:59:39 -05:00
Till Schneidereit f0ce107fb5 servo: Merge #7979 - Improve spec-compliance of script loading and execution during document startup (from tschneidereit:script-loading-fixes); r=jdm
Including proper support for async and deferred scripts.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 704c5ef25a846ac4321cd136d9747dee9513f98b
2015-10-26 15:48:23 -05:00
Keith Yeung fae470a0e6 servo: Merge #8201 - Add missing htmlpreelement (from KiChjang:add-missing-htmlpreelement); r=jdm
Fixes #7995. My tests came out pretty weird, with additional crashes and timeouts.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c051ce8286873e47fd33ec438142ddffbb84ca2
2015-10-26 14:07:50 -05:00
Ms2ger a030ecb8b6 servo: Merge #8208 - Return a LayoutNode with a limited lifetime from layout_node_from_unsafe_layout_node (fixes #3044) (from Ms2ger:lnfuln); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: f6e3146de248554607790108680a43844dff70bf
2015-10-26 11:08:33 -05:00
Ms2ger 9633ebf292 servo: Merge #8206 - Cleanup layout interaction with canvas elements (from Ms2ger:dlb-canvas); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 2091aafcfb32dffba836fde2ccddf4a183e88302
2015-10-26 10:27:47 -05:00
Corey Farwell a62d22ef7f servo: Merge #8178 - Implement a couple attributes for <label> elements (from frewsxcv:label); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: af8a1cb8a03e661f27c738512254a8f31915f3ba
2015-10-26 09:51:56 -05:00
Ms2ger 1b418c9475 servo: Merge #8205 - Return the result from query functions (from Ms2ger:query); r=jdm
This reduces some unnecessarily tight coupling, makes it clearer what these functions do, and may help avoid bugs where we would return from such a function without updating the relevant field.

It is also a precondition for some future experimentation I'm thinking of doing with this querying design.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3a254b7e20c37e4ce7b614abea9ebd4687c65f98
2015-10-26 09:00:30 -05:00
Rohan Prinja d6cfa43728 servo: Merge #8097 - implement PartialEq for MutHeap<JS<T>> and MutNullableHeap<JS<T>> (from ajnirp:8090-partialeq-for-mutheap); r=nox
for #8090

Source-Repo: https://github.com/servo/servo
Source-Revision: 6b95c3957b32db1f7a25738229381e046e9be6e7
2015-10-26 06:08:01 -05:00
Ms2ger 7603e5f864 servo: Merge #8203 - Remove manual implementations of Send and Sync for BaseFlow (from Ms2ger:unsafe-impl-baseflow); r=nox
They don't appear to be necessary.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e015b53781ce6ae26c8972fe5cfe82f0cc98b72
2015-10-26 03:48:19 -05:00
Ms2ger 5b0cf7f800 servo: Merge #8204 - Privatize FlowConstructionUtils (from Ms2ger:privatize-FlowConstructionUtils); r=nox
This makes it match the documentation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 83b72e86693452ce9e950752743a712c29deb430
2015-10-26 03:04:24 -05:00
Paul Rouget 31bd4ca6f7 servo: Merge #8165 - hacking quickstart documentation (from paulrouget:hackingQuickstart); r=Manishearth
Please someone review this (content and english).

Source-Repo: https://github.com/servo/servo
Source-Revision: ec691904cc3f03e1cd6e630a7dac0fc0357d130d
2015-10-26 00:33:41 -05:00
Ms2ger 8e835efaa7 servo: Merge #8196 - Remove a pointless clone() from add_font_face_rules (from Ms2ger:clone-font-cache-task); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 64cae0c5905d1069e40c94c4ef61d50b30bc8196
2015-10-25 17:58:11 -05:00
Ms2ger ac7eb40a9e servo: Merge #8195 - Update js (from Ms2ger:update-js); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1982ae38e33a64396bd2174cba5925b62a7715e0
2015-10-25 14:23:57 -05:00
Jan-Erik Rediger 96e291aab5 servo: Merge #8070 - Move inline-block styling to user-agent and add button (from badboy:inline-block-for-button); r=jdm
First Servo PR for me. \o/

Fixes #8064

Source-Repo: https://github.com/servo/servo
Source-Revision: 41df37cf1b2f305a879d6bb1a2be3460f6ad23b6
2015-10-25 12:43:00 -05:00
Ms2ger 7912b9e110 servo: Merge #8186 - Remove an unnecessary Atom::clone() call (from Ms2ger:rm-clone); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 4b5bc4f9a95aa8aa1497ff2545ff7ed018d3c650
2015-10-25 05:09:11 -05:00
Tetsuharu OHZEKI 72d0e7c0b3 servo: Merge #8183 - script: Element.webkitMatchesSelector() (from saneyuki:matches); r=nox
spec:
- 9ac9c15486
  - https://github.com/whatwg/compat/issues/3

Source-Repo: https://github.com/servo/servo
Source-Revision: 47a8256c2cdd254943aaaf71e68204f9dcd70744
2015-10-25 02:47:30 -05:00
Eli Friedman 362ec775db servo: Merge #8073 - Make unrooted_must_root a bit more aggressive (from eefriedman:root-lint); r=Manishearth
Basically, instead of trying to check for specific kinds of statements,
just check the types of all local variables.

Also included are some commented-out proposals for some slightly more
aggressive lints which might be useful (but trigger a little too
frequently at the moment).

Source-Repo: https://github.com/servo/servo
Source-Revision: bb88832c078fbb14fa03c413fac1252b2b755015
2015-10-24 20:20:04 -05:00
Corey Farwell 809309e229 servo: Merge #8181 - Remove unnecessary allocation with getElementById (from frewsxcv:no-alloc-get-element-by-id); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 3b50f219631ee8b8746199ef2bc1d60c716295ea
2015-10-24 17:25:09 -05:00
Ms2ger 18f0c01282 servo: Merge #8171 - Remove the default implementation of Reflectable::init_reflector (from Ms2ger:reflector); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 354e75a447c8afc7757d0340c03119de853110f5
2015-10-23 17:49:28 -05:00
Martin Robinson 19653ac5ca servo: Merge #8140 - Integrate Canvas into the DisplayList (from mrobinson:canvas); r=pcwalton
Canvas is currently given a layer at the stacking context level.
Instead it's DisplayItem should be given a layer directly. This fixes
painting order issues where canvases are painted on top of other
positioned content that is later in tree order. It always simplifies
the code a bit.

Source-Repo: https://github.com/servo/servo
Source-Revision: 22a6884a671da0434fe2b3bf30f50b9133d4c70b
2015-10-23 17:17:12 -05:00
Roman Klauke 84086415fe servo: Merge #8137 - Remove unnecessary rooting from `CSSStyleDeclaration` (from romankl:gh/8126); r=nox
This commit will replace calls to `self.owner.root()` with `self.owner` to avoid unnecessary rooting of JS elements objects.

Ref.- Issue: #8126

Source-Repo: https://github.com/servo/servo
Source-Revision: ff2c7bb47b4303573e48021f5f5af6a0ab6e8e80
2015-10-23 16:38:24 -05:00
Anthony Ramine 5feaf75b63 servo: Merge #8091 - Remove Rc<T> usage from Range (from nox:cleanup-range); r=eefriedman
I initially used this to correctly handle ranges when their respective containers
are mutated, to get weak references of Range objects. I now realise that the weak
references should be handled at a lower level, closer to the JS-managed object.

Source-Repo: https://github.com/servo/servo
Source-Revision: e3bcf7bab7d0340fc7ebd0e58a2cde34e534c1cf
2015-10-23 16:00:00 -05:00
Ms2ger ab7dacfa3f servo: Merge #8170 - Cleanup some code in htmlcanvaselement.rs (from Ms2ger:cleanup-canvas); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: ac8097b5d2532b3b9fb94f59dddc1be21aa1fb4d
2015-10-23 09:34:28 -06:00
Ms2ger fb417f1b96 servo: Merge #8167 - Various cleanup in util (from Ms2ger:util); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 94aa8ca80a4a934d42ab5f739f268875b05d1b26
2015-10-23 07:00:09 -06:00
Matt Brubeck ab57828df0 servo: Merge #8163 - Enable multitouch in Glutin (from mbrubeck:glutin-multitouch); r=glennw
This tells Glutin's Android and iOS back-ends to send events for more than one
pointer at a time.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 28f4dd4f4806bfc2496bebcdedc3120731f14da2
2015-10-23 06:13:28 -06:00
Antonio de Luna c5df265cfe servo: Merge #8161 - Fixes #8154 Convert match to `if let` in handle_window_event (from A-deLuna:fix-#8154); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 51ab0abb7f7663e6113246fd7bc525e5f4f0281b
2015-10-23 05:35:33 -06:00
Ms2ger ce05956312 servo: Merge #8155 - Remove Window::layout_join_port (from Ms2ger:join); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4d737b51bb2053e9bb970b31b0516ac8810a061b
2015-10-23 04:50:38 -06:00
Matt Brubeck a4f7ce3218 servo: Merge #7204 - Very basic touch events and touch scrolling (from mbrubeck:touchevent); r=jdm
This implements just enough of [Touch Events](http://w3c.github.io/touch-events/) to enable scrolling on Android without regressing basic single-touch interaction like clicking on links.

Dragging a page will scroll it, unless the page calls `preventDefault` on the "touchstart" event.

Does **not** yet support pinch zooming or other multi-touch gestures or events.

Includes a `-Z convert-mouse-to-touch` command line flag for testing on non-touch platforms.  This is also enabled by default on Android because Glutin currently translates touch input to mouse events on Android.

Source-Repo: https://github.com/servo/servo
Source-Revision: dcd207f9bf15c9ecf5d043385ba93277e69201f6
2015-10-22 15:54:01 -06:00
Ms2ger 5e771be0e4 servo: Merge #8150 - Use the select!{} macro in LayoutTask::handle_request (from Ms2ger:select-layout); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e05999ea9f4883c85939b209f811ae20e9e9e89c
2015-10-22 11:14:52 -06:00
Brandon Fairchild 43bbf4c046 servo: Merge #8144 - Add `clippy` as a command to mach (from nerith:clippy); r=Manishearth
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.

Source-Repo: https://github.com/servo/servo
Source-Revision: 79f300f0387ad8218d06511c429d071cdef0193c
2015-10-22 10:27:02 -06:00
Paul Rouget 75219d581c servo: Merge #8121 - make it possible to disable default keybindings (from paulrouget:disableControls); r=jdm
For browser.html, we want to let the top level webpage handle these keybindings.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d4641b640627da2a6f30b688d728f0a730671f6
2015-10-22 08:38:01 -06:00