Commit Graph

3064 Commits

Author SHA1 Message Date
Ms2ger
da6f46492e servo: Merge #4452 - Cleanup _obj_toString (from Ms2ger:_obj_toString); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 6efa7eedbc43c4a1752dccb6a42a080cbe232581
2014-12-20 17:24:44 -07:00
Ms2ger
542d3545f7 servo: Merge #4451 - Require documentation for ByteString (from Ms2ger:bytestring-doc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b4025f167f0a4a64a22eb308984c18446537bec2
2014-12-20 16:57:43 -07:00
Ms2ger
19944cd1f3 servo: Merge #4450 - Document DOMRefCell (from Ms2ger:domrefcell-doc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 661144d28546dc287cba6a76325855c0efac9551
2014-12-20 08:36:43 -07:00
Bruno de Oliveira Abinader
def07162d0 servo: Merge #4038 - Implement HTMLElement.dataset (from brunoabinader:dataset); r=Ms2ger
Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-dataset

Closes #2974.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f74e54bb2d0b16866aeaa7e4d00f801560afe7b
2014-12-20 08:06:44 -07:00
Ms2ger
1f730e0a12 servo: Merge #4449 - Cleanup unwrap_jsmanaged (from Ms2ger:unwrap_jsmanaged); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8a4eea003276cdb4d0c4b905068c93bd3bf398ee
2014-12-20 07:36:45 -07:00
Ms2ger
8e3ecf0d97 servo: Merge #4446 - Remove unused libgreen import (from Ms2ger:green); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 58e7b8c154cae663ee82b6c042044de68c43a007
2014-12-19 14:03:44 -07:00
Josh Matthews
5be4e8a1fb servo: Merge #4401 - Create a replacement for Cell<SM primitive>. Fixes #4337 (from jdm:heapsm2); r=Manishearth
We still will need a lint to ban any further uses, but that can be a followup.

Source-Repo: https://github.com/servo/servo
Source-Revision: c17d5330af88eb919195ac39d7795548f6683541
2014-12-19 09:18:46 -07:00
Ms2ger
97e31c7099 servo: Merge #4444 - Simplify some code in ScriptTask::load (from Ms2ger:load-simplify); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b9edc2243a98f2d71408430fe68716bdbbd015d7
2014-12-19 08:09:48 -07:00
Ms2ger
1d72ea6a6b servo: Merge #4443 - Make the argument to dispatch_event_with_target non-optional (from Ms2ger:dispatch_event_with_target); r=Manishearth
The name of the method makes it clear it's supposed to be used with a target
override, so we might as well enforce that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 11b27361c9f6af08ed78fa1a3fe58732b4c69cd4
2014-12-19 04:33:46 -07:00
Eduard Burtescu
7be1408838 servo: Merge #4326 - Handle onload correctly and trigger the load event for <script> (from eddyb:script-onload); r=jdm
Without this, facebook.com pages (with their custom module loading system and React.js) silently fail to make progress loading content, forever waiting on load events on the initial set of `<script>` elements.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7317518c173ef61384e29c1bdfa7052acaf27f8d
2014-12-18 22:27:44 -07:00
Glenn Watson
5306294517 servo: Merge #4441 - Add time as submodule - workaround for android cross compiling until next rustup (from glennw:android-time-hack); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 9aaae08c3666d13ab608999e1dca587656e7b228
2014-12-18 18:00:59 -07:00
Glenn Watson
61026a418e servo: Merge #4438 - Update cargo nightly to get android cross compile fix. Also add stub tra (from glennw:android-fix-1); r=metajack
...it method to glutin port.

Source-Repo: https://github.com/servo/servo
Source-Revision: 465b38c03f8565f3cf3d22e3b7f98f51b116e2e4
2014-12-18 17:01:10 -07:00
Adenilson Cavalcanti
8455823764 servo: Merge #4437 - Fix inset/outset when border is black (from Adenilson:fixInsetOutsetBlack03); r=jdm
Freshly rebased.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ac8b6a723fe0ce6a80ce03e1e4e2082961f1319
2014-12-18 16:24:54 -07:00
Tetsuharu OHZEKI
8bc1f6376b servo: Merge #4434 - script: Remove glob imports added in #4405 (from saneyuki:glob_script); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 803e5ef7904f2843d8e44184f9154af079eea9fa
2014-12-18 15:57:48 -07:00
Simon Sapin
2d7fe5cdae servo: Merge #4425 - Fix some writing mode mismatch assertions errors (from SimonSapin:mixed-writing-modes); r=mbrubeck
The rendering is still wrong beause of #2795, but at least we get a rendering.

(This test change is just for readability, it should be equivalent to before.)

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 3cc87165a1279005fa2c12413f33487dee31df96
2014-12-18 15:31:28 -07:00
Patrick Walton
be135fd302 servo: Merge #4403 - script: Fix double borrow error when going back. Closes #4402 (from pcwalton:back-borrow); r=jdm
I have verified that back and forward work once again.

Sorry about this one. r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 8626be6ab00d966cb4abed2a2fef691d286df32d
2014-12-18 14:39:50 -07:00
Patrick Walton
c36d533145 servo: Merge #4394 - layout: Implement clip per CSS 2.1 § 11.1.2 (from pcwalton:clip); r=SimonSapin
Only the recommended, comma-separated syntax is supported.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: a80d88897d176630c79f929e8b1fd661b2e1a17c
2014-12-18 14:12:51 -07:00
Tetsuharu OHZEKI
370886dc52 servo: Merge #4423 - net: Remove glob imports added in #4405 (from saneyuki:glob_net); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ccecd8dca406a4f0d62ac50f461b09816786ec5
2014-12-18 13:21:55 -07:00
Tetsuharu OHZEKI
4c1092dbf9 servo: Merge #4418 - gfx: Remove glob imports added in #4405 (from saneyuki:glob_gfx); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: a425bb528957fd77cf8300b17e153f8fc3777483
2014-12-18 12:52:01 -07:00
Josh Matthews
fa63e17acb servo: Merge #4342 - Implement basic HTMLElement.style support (from jdm:cssom); r=jdm,metajack
This does not implement any notion of CSSStyleDeclaration objects that do not have an owning element; there's no actual CSS object model in play here. This does support setting and getting properties of the style attribute for HTMLElement, and tries to implement the ambiguous CSS value serialization spec.

Source-Repo: https://github.com/servo/servo
Source-Revision: 824788649cd338c044d9396166af5b0f378d6685
2014-12-18 11:54:52 -07:00
Tetsuharu OHZEKI
34f83f1a6e servo: Merge #4424 - style: Remove glob imports added in #4405 (from saneyuki:glob_style); r=SimonSapin
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f342638c46d6b43bca4cfbd405aceedc0465a85
2014-12-18 11:03:55 -07:00
Matt McCoy
667e396b08 servo: Merge #4416 - Merge request for #4407. Removes the cloning because it wasn't necessary (from mattnenterprise:fire-timer-clone); r=jdm
I tested that it worked correctly by using running './mach run tests/html/test_timeout.html' and making sure the timers went off.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7df37847d3a0a02da6917c669fe62a5e4af7efcd
2014-12-18 09:39:56 -07:00
Matt Brubeck
21a0b185fa servo: Merge #4412 - Update layer bounds on resize (from mbrubeck:fixed-layer-resize); r=mrobinson
This fixes a bug where fixed-position layers are not repositioned when the
window is resized.  This can be reproduced with any `position: fixed` element with a `right` or `bottom` position.  I'm not sure how to reftest this, though.

r? @mrobinson

Source-Repo: https://github.com/servo/servo
Source-Revision: d7f38a8973c1baac2a68bd83a0c141deef920bac
2014-12-18 08:06:54 -07:00
Simon Sapin
b308cce0c9 servo: Merge #4420 - Fix warnings (from servo:fix-warnings); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: eea49ee1d986c306a8eec32b64be9b10cb2278fc
2014-12-18 04:42:50 -07:00
Glenn Watson
8b295b0ae2 servo: Merge #4419 - Restore glutin close on escape functionality. Also fix linux compile error (from glennw:fix-glutin-esc); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d7b3900431598883212162460254c846bf5f8b52
2014-12-18 01:00:57 -07:00
Patrick Walton
cda269baf7 servo: Merge #4358 - compositing: Implement cursor per CSS3-UI § 8.1.1 in the CEF/Mac port (from pcwalton:cursor); r=mbrubeck
I'm not sure how we want to handle Linux cursors, and GLFW has no
ability to set cursors (short of disabling it and managing it yourself).

If you test this in the wild you will probably hit #4357 until that PR lands.

Source-Repo: https://github.com/servo/servo
Source-Revision: e2267e0a0749e27046ee8a26ba514cc6865e0345
2014-12-18 00:24:49 -07:00
Patrick Walton
ccf77f9b53 servo: Merge #4404 - layout: Implement caption-side per CSS 2.1 § 17.4.1 (from pcwalton:caption-side); r=mbrubeck
`caption-side` is used by 4% of pages by number of loads.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 6eb9ae1eff2d26c52ad2ac59eec703bd7e8ae867
2014-12-17 23:57:52 -07:00
Patrick Walton
2ba8079a6a servo: Merge #4400 - layout: Implement empty-cells per CSS 2.1 § 17.6.1.1 (from pcwalton:empty-cells); r=SimonSapin
r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 636641f90533c941a3580b5caee1ae1fef953841
2014-12-17 22:33:51 -07:00
Chris Paris
c6d8118a3f servo: Merge #4415 - Use parse_html in DOMParser (from ChrisParis:parse_html); r=jdm
For https://github.com/servo/servo/issues/4362. This is a simple fix that avoids redesigning task_state. This doesn't track nesting depth, but it wasn't clear what would use the nesting depth if we tracked it. Maybe this is enough.

Source-Repo: https://github.com/servo/servo
Source-Revision: 59b9d14ca44d96b90fa812c1dfff6904c9b38dc2
2014-12-17 21:12:48 -07:00
Glenn Watson
8e111e211a servo: Merge #4414 - Compile fix for glutin feature after rust upgrade (from glennw:fix-glutin); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 592c93e0c252828b8ff2797b7a9fe0e7d59e13af
2014-12-17 20:03:48 -07:00
Glenn Watson
b185394a0f servo: Merge #4405 - Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d (from servo:rustup_20141124); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fbf42c951b2f53d91e2f32f8035484a07ea83493
2014-12-17 18:45:49 -07:00
Glenn Watson
bd8a083ff1 servo: Merge #4398 - Update gleam, clear initial framebuffer under glutin (from glennw:glutin-clear); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: b8900782b0fcb409f37189bdc08eb7f8b3564a5f
2014-12-16 20:18:44 -07:00
Adenilson Cavalcanti
f38d6c1c65 servo: Merge #4393 - Inset and outset border coloring is incorrect on left side border (from Adenilson:fixInsetOutsetColor01); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: df4c3ff28441884217333eb13c18b944b81f1a3a
2014-12-16 17:03:43 -07:00
Jerry Shih
efed6f1c6f servo: Merge #4397 - Handle null when evaluating JS value. Fixes #4235 (from jdm:issue_4235); r=jdm
Rebased from #4241.

Source-Repo: https://github.com/servo/servo
Source-Revision: 03666f31051562453a6be789f9d350db9c3fa6a2
2014-12-16 16:03:45 -07:00
Matthew Rasmus
4f922915fe servo: Merge #4133 - Implements basic form resetting (from mttr:form_resetting); r=jdm
We can reset `<input type=text>` fields! I wish I could've done something with checkboxes, but unfortunately, that's it for now.

In addition to that, this PR implements `HTMLInputAttribute.defaultValue`, updates wpt-test to expect passing tests as a result of that implementation, and fixes an index error crash with text inputs.

edit: also includes an html example where one may lazily watch form resets in action: ` tests/html/form_reset_handsfree.html`

Source-Repo: https://github.com/servo/servo
Source-Revision: 5951056973fc0e08e70224214740a274ca8ef20f
2014-12-16 15:03:49 -07:00
Michael Wu
7c59583691 servo: Merge #4392 - Update Cargo.lock to fix gonk build (from michaelwu:fix-gonk-20141216); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b6a593650bcc33e4188153d135e9a2781a488f96
2014-12-16 13:31:08 -07:00
Matthew Rasmus
a9eadca568 servo: Merge #4380 - Makes layout respect <textarea> rows and cols attributes (from mttr:textarea_rows_and_cols); r=jdm
...with a bit of a caveat: sizing has the same problem as seen in #4378, and it is _significantly_ more noticeable when using `rows`.

Fixes #4291

Source-Repo: https://github.com/servo/servo
Source-Revision: fcaa45fb675bdf3fede3b50a9d212adda1dc2b4f
2014-12-16 12:09:50 -07:00
Ms2ger
68d4605b77 servo: Merge #4390 - Remove some manual deref() / deref_mut() calls (from Ms2ger:derefs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 905c30d69739fcacfe67cb2605eb9f669ae9a82f
2014-12-16 09:22:02 -07:00
Ms2ger
f505abaa83 servo: Merge #4389 - Fix bogus transmute (from Ms2ger:transmute); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 508924771e8f0f60700931ebd88aebf8c8889e44
2014-12-16 08:54:51 -07:00
Glenn Watson
a917674ccc servo: Merge #4386 - Update cocoa (needed for newer glutin) (from glennw:update-cocoa); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: cd1ccacf5e803281ead0168c3ac1ba5f64dc9343
2014-12-16 08:24:49 -07:00
thiagopnts
02dc0e1e27 servo: Merge #4374 - Add auxiliary method to EventTargetHelpers for events without target (from thiagopnts:dispatch-event); r=Ms2ger
servo/pull/4369 with the right commit.

Source-Repo: https://github.com/servo/servo
Source-Revision: 746b262ff4e23db11586f74ef1a03e98cb12bb52
2014-12-16 06:36:47 -07:00
Edit Balint
f458bd96e5 servo: Merge #4387 - Fixed codegen error regarding Uint8ClampedArray (from ebalint:codegen); r=Ms2ger
If we added a "readonly attribute Uint8ClampedArray arrayAttribute" in a webidl, codegen created the binding method like this: "fn ArrayAttribute(self) -> * mut JSObject;" but called it with a "*mut JSContext" parameter.

Source-Repo: https://github.com/servo/servo
Source-Revision: 38a4e71502f3b668ff322d9047af7ec8892312d3
2014-12-16 04:06:56 -07:00
Patrick Walton
ea62373791 servo: Merge #4385 - script: Fix double-borrow error (from pcwalton:page-double-borrow); r=jdm
This was my fault. It comes up on almost any page after scrolling a bit.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: fb5c1bef6fe48b7bd2c1dd9e73069d5b00b20aad
2014-12-15 20:54:44 -07:00
Manish Goregaokar
bff63476bf servo: Merge #4381 - Fix window.performance.now() (from Manishearth:performancenow); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e0ec21e814f07601fa3e5e2ec04de7c7a0fd7893
2014-12-15 20:00:53 -07:00
Patrick Walton
90a61bb1c7 servo: Merge #4289 - style: Implement basic column spans, quirks mode, and the legacy bgcolor and border attributes (from pcwalton:hacker-news); r=SimonSapin
This patch provides some of the groundwork for column spans greater than
1. It implements the column-span CSS property as well as the
corresponding colspan attribute; although the former is not
well-specified outside of CSS multi-column layout, INTRINSIC refers to
it. Although width is distributed to spanning columns, they do not yet
contribute minimum and preferred widths; this will be implemented in a
follow-up.

The parsing for the legacy bgcolor and border attributes is
implemented according to the WHATWG HTML specification.

Additionally, this patch cleans up some miscellaneous formatting issues,
refactors layout/css somewhat to eliminate needless levels of
indirection, and cleans up the handling of table rowgroups.

New Hacker News screenshot: http://i.imgur.com/hnl2a7E.png

Source-Repo: https://github.com/servo/servo
Source-Revision: 8e31e5f98747e4b42dafcc4b076fac46aeb09310
2014-12-15 19:33:46 -07:00
Patrick Walton
23a62da542 servo: Merge #4371 - layout: Make line breaking able to restart from any position (from pcwalton:line-breaking-improvements); r=mbrubeck
This commit removes the "merge-fragments" pass from inline reflow,
instead merging "on the fly". This ended up being simpler, as well as
more fine grained. Additionally, this patch makes the line breaker no
longer clone every fragment (!)

This functionality will be used in the implementation of
`text-overflow`.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 88ec52dd617bafe384553ef38325c552fb4f1e23
2014-12-15 19:09:49 -07:00
Patrick Walton
59d35b5a90 servo: Merge #4310 - layout: Implement basic lists and the CSS1 list properties (from pcwalton:lists); r=SimonSapin
The exact rendering is ill-spec'd. Some things are ugly (especially the
width and height of list style images) but they are infrequently used
and I believe this implementation matches the spec. Numeric lists are
not supported yet, since they will require a separate layout pass.

The implementation is a subclass of `BlockFlow`, on advice from Robert
O'Callahan.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 112ef5c484e821aa4869aeaf12a12146f2424fe0
2014-12-15 17:42:48 -07:00
Patrick Walton
4a65faf9eb servo: Merge #4318 - gfx: Implement box-shadow per CSS-BACKGROUNDS (from pcwalton:box-shadow-redux); r=SimonSapin
r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 7805fe19edf5353711f49a8ef1c988dc9f932bb7
2014-12-15 16:31:14 -07:00
Patrick Walton
ee36da2b11 servo: Merge #3844 - script: Improve dirty propagation and fix script-layout synchronization (from pcwalton:script-layout-synchronization); r=jdm
This fixes race conditions whereby layout and script could be running
simultaneously.

r? @jdm
cc @cgaebel

Source-Repo: https://github.com/servo/servo
Source-Revision: 5f2684d2f81046abd7548fb22d996d1e506a104a
2014-12-15 15:31:21 -07:00
Michael Wu
b7c00db2cb servo: Merge #4375 - Fix gonk 20141215 (from michaelwu:fix-gonk-20141215); r=glennw
This updates azure to pick up a gonk fix - https://github.com/servo/rust-azure/pull/120 and adds a stub function to the window.

Source-Repo: https://github.com/servo/servo
Source-Revision: d75e85261fd777405482e1a194dff1b5111808d7
2014-12-15 15:06:59 -07:00