aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Use a struct variant for clarityTamir Duberstein2015-05-231-1/+6
|
* Auto merge of #5727 - jdm:parserinterrupt2, r=mbrubeckbors-servo2015-05-218-174/+422
|\ | | | | | | | | | | | | | | | | | | ...r parsing. Hook up document loading to async networking events. Relies on https://github.com/servo/html5ever/pull/107, so we'll likely need to backport it rather than wait for the next rustc upgrade. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5727) <!-- Reviewable:end -->
| * Update test expectations. Mark script loads as complete when the response is ↵Josh Matthews2015-05-212-2/+9
| | | | | | | | complete.
| * Make external script sources load asynchronously, yet still block further ↵Josh Matthews2015-05-208-174/+415
| | | | | | | | parsing. Hook up document loading to async networking events.
* | Auto merge of #6154 - Nashenas88:websocket-parse-url-typo, r=jdmbors-servo2015-05-211-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | This is a really small typo fix for an issue I worked on recently. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6154) <!-- Reviewable:end -->
| * | Adding in a missed algorithm step number in the comments.Paul Faria2015-05-201-1/+1
| | |
* | | Auto merge of #6152 - glennw:runnable-panic, r=jdmbors-servo2015-05-202-8/+31
|\ \ \ | |/ / |/| | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6152) <!-- Reviewable:end -->
| * | Fix document load event firing after pipeline is closed.Glenn Watson2015-05-212-8/+31
| | |
* | | Auto merge of #5586 - pcwalton:no-broken-background-image-redux, r=glennwbors-servo2015-05-203-11/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5586) <!-- Reviewable:end -->
| * | | net: Don't load the placeholder image for background images, only forPatrick Walton2015-05-203-11/+14
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | image fragments. This also changes the way the placeholder is handled in the image cache task to decode it up front instead of each time an image fails to load, both because it was more convenient to implement that way and because it saves CPU cycles to do so. This matches the behavior of Gecko and WebKit. It improves the look of our cached copy of Wikipedia.
* | | Auto merge of #6083 - ecoal95:layerize-canvas, r=pcwaltonbors-servo2015-05-207-9/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've done a bit of job to get this done. Right now readback is still used, but we have a `LayerId` -> `CanvasRenderer` map on the paint task, that we can use to get rid of that. I'd want review, to see if this is a good approach (I know it's not the initial `CanvasId` -> renderer approach, but it's pretty similar, since a canvas involves a `PaintLayer`). I had to do a bit of refactoring to avoid cyclic dependencies between canvas and gfx. I'd want you to review them too. It's mergeable and doesn't break any tests :P Some of my main concerns: * Does the canvas render really need to be behind an `Arc<Mutex<T>>`? * I can't clone a `NativeSurface` right now (that's why the `SendNativeSurface()` msg is unimplemented in the WebGL task). It should be easy to add that to rust-layers, supposing the caller is responsible to mark it as non-leaking, any reason to not do it? cc @jdm @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6083) <!-- Reviewable:end -->
| * | Layerize canvasecoal952015-05-207-9/+13
| |/ | | | | | | | | | | | | Note that this keeps using readback right now, `NativeSurface` painting will be implemented soon. Also see https://github.com/servo/servo/issues/6142
* | Auto merge of #5858 - pgonda:tabindex-focus-flag, r=jdmbors-servo2015-05-204-4/+80
|\ \ | | | | | | | | | | | | | | | | | | | | | Added support for the tabindex field, also added its correct defaults (-2 TODOs for things not supported in Servo yet). Also added tabindex logic into Element::is_focusable_area. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5858) <!-- Reviewable:end -->
| * | fixes #5603, adds support for tabindexPeter2015-05-204-4/+80
| | |
* | | script: Implement the `width` and `height` attributes for iframes perPatrick Walton2015-05-204-13/+83
| |/ |/| | | | | | | | | HTML5 § 4.8.6. Improves Amazon and Ars Technica.
* | Auto merge of #6139 - michaelwu:rustup-fixes, r=SimonSapinbors-servo2015-05-201-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Mutable transmutes and wrong transmutes fixed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6139) <!-- Reviewable:end -->
| * | Fix borrow_unchecked in LayoutDataRefMichael Wu2015-05-191-1/+1
| | |
* | | Auto merge of #6127 - Nashenas88:websockets-invalid-urls, r=Ms2gerbors-servo2015-05-201-9/+54
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix #6061. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6127) <!-- Reviewable:end -->
| * | | Responded to more code review comments. Simplified code a lot.Paul Faria2015-05-191-64/+12
| | | |
| * | | Responded to code review comments, general cleanupPaul Faria2015-05-191-51/+29
| | | |
| * | | Fixing one missed trailing whitespace, and fixed urlPaul Faria2015-05-191-2/+2
| | | |
| * | | Removing trailing whitespacePaul Faria2015-05-191-4/+4
| | | |
| * | | Initial work on #6061.Paul Faria2015-05-191-8/+127
| | | |
* | | | Fixed definition of Close and Send in WebSocket.webidl and updated ↵Paul Faria2015-05-192-8/+9
|/ / / | | | | | | | | | implementation in websocket.rs.
* | | Auto merge of #6131 - glennw:jquery-exit-fix, r=jdmbors-servo2015-05-192-16/+63
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a hang found while testing the jQuery test suite. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6131) <!-- Reviewable:end -->
| * | | Add closed pipelines record as a debugging aidGlenn Watson2015-05-201-9/+24
| | | |
| * | | Handle case where a page fetch completes after pipeline exits.Glenn Watson2015-05-201-4/+7
| | | |
| * | | Address review commentsGlenn Watson2015-05-201-2/+1
| | | |
| * | | Fix several hangs / panics during pipeline cleanup of in progress loads.Glenn Watson2015-05-192-5/+35
| |/ / | | | | | | | | | This fixes a hang found while testing the jQuery test suite.
* | | Auto merge of #6084 - WriterOfAlicrow:radiobutton-fix, r=jdmbors-servo2015-05-191-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6084) <!-- Reviewable:end -->
| * | | fixup! Fix for Issue #6073WriterOfAlicrow2015-05-151-1/+1
| | | |
| * | | Fix for Issue #6073WriterOfAlicrow2015-05-151-0/+2
| | |/ | |/|
* | | Auto merge of #6053 - pcwalton:displayports, r=glennwbors-servo2015-05-191-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves Servo's performance on large pages. Please double-check the logic when it comes to nested layers—I'm sure I've messed up some of the geometry calculations :) r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6053) <!-- Reviewable:end -->
| * | | compositing: Implement display ports and avoid creating display listsPatrick Walton2015-05-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | for items outside it. This improves Servo's performance on large pages.
* | | | script: Implement the `color` attribute of the `<font>` element.Patrick Walton2015-05-194-8/+86
|/ / / | | | | | | | | | Improves Hacker News.
* | / layout: Support inline incremental reflow, and stop reconstructing allPatrick Walton2015-05-191-2/+2
| |/ |/| | | | | | | | | | | flows when mousing over the document. This exposes more "jumpiness" on sites like Hacker News, but the bug that causes it was pre-existing.
* | Auto merge of #6064 - nox:characterdata-overflow, r=Ms2gerbors-servo2015-05-171-16/+18
|\ \ | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6064) <!-- Reviewable:end -->
| * | Fix overflow in CharacterDataAnthony Ramine2015-05-151-16/+18
| | |
* | | Made open event in WebScoket not cancelable (fixes #6101)Keith Yeung2015-05-181-1/+1
| | |
* | | Auto merge of #6067 - Jinwoo-Song:backgroundclip, r=pcwaltonbors-servo2015-05-151-0/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property determines the background painting area, which determines the area within which the background is painted. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-clip Fixes #6066. r? @pcwalton cc @yichoi <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6067) <!-- Reviewable:end -->
| * | Implement 'background-clip' property in CSS3 BackgroundJinwoo Song2015-05-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This property determines the background painting area, which determines the area within which the background is painted. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-clip Fixes #6066.
* | | Auto merge of #6043 - mukilan:get_root_element, r=Ms2gerbors-servo2015-05-151-6/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | The [current implementation](http://mxr.mozilla.org/servo/source/components/script/dom/element.rs#666) is wrong as it always tries to cast the furthest ancestor into an element. When the method is invoked on an element that is in the document tree, this will be the `Document` node, which is not an element. The ```last().map(ElementCast::to_temporary)``` returns Some(None) hence the method will return ```None```, while the correct behaviour is to return the ```html``` node. This PR interprets the line ```"furthest ancestor element node of whatever node is being discussed"``` in the spec to mean ```"find the furthest ancestor that is an element node"```. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6043) <!-- Reviewable:end -->
| * | Fix implementation of Element::get_root_elementMukilan Thiyagarajan2015-05-141-6/+6
| | |
* | | Auto merge of #6046 - Jinwoo-Song:background_origin, r=pcwaltonbors-servo2015-05-141-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property determines the background positioning area, that is the position of the origin of an image specified using the 'background-image' CSS property. 'background-origin' is ignored when background-attachment is fixed. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin Fixes #6045. r? @pcwalton cc @yichoi <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6046) <!-- Reviewable:end -->
| * | | Implement 'background-origin' property in CSS3 BackgroundJinwoo Song2015-05-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property determines the background positioning area, that is the position of the origin of an image specified using the 'background-image' CSS property. 'background-origin' is ignored when background-attachment is fixed. Spec: http://dev.w3.org/csswg/css-backgrounds-3/#background-origin Fixes #6045.
* | | | Auto merge of #5902 - nox:length, r=jdmbors-servo2015-05-141-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blocked by https://github.com/w3c/testharness.js/pull/124. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5902) <!-- Reviewable:end -->
| * | | | Fix length value of interface methodsAnthony Ramine2015-05-141-2/+2
| | |_|/ | |/| |
* | | | Partially implement getter of DocumentAnthony Ramine2015-05-142-2/+92
| | | |
* | | | Make HTMLFormElement name attribute use an atomAnthony Ramine2015-05-142-6/+27
| | | |
* | | | Make HTMLImageElement name attribute use an atomAnthony Ramine2015-05-141-2/+3
| | | |