aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports.Ms2ger2015-12-129-9/+0
|
* Auto merge of #8935 - Ms2ger:get_or_create, r=Manishearthbors-servo2015-12-122-34/+2
|\ | | | | | | | | | | | | | | Avoid some rooting in parsing. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8935) <!-- Reviewable:end -->
| * Avoid some rooting in parsing.Ms2ger2015-12-112-34/+2
| |
* | Auto merge of #8930 - frewsxcv:event-type-atom, r=noxbors-servo2015-12-1122-107/+128
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Pass around event types as Atoms instead of Strings `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8930) <!-- Reviewable:end -->
| * Pass around event types as Atoms instead of StringsCorey Farwell2015-12-1022-107/+128
| | | | | | | | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* | Auto merge of #8918 - Ms2ger:trace, r=noxbors-servo2015-12-111-16/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | Initialize the slots of global objects before a possible GC. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8918) <!-- Reviewable:end -->
| * | Initialize the slots of global objects before a possible GC.Ms2ger2015-12-101-16/+10
| | |
* | | Auto merge of #8926 - frewsxcv:no-map, r=SimonSapinbors-servo2015-12-111-4/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer 'if let' over 'map() with side effects' <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8926) <!-- Reviewable:end -->
| * | | Prefer 'if let' over 'map() with side effects'Corey Farwell2015-12-101-4/+12
| | |/ | |/|
* / | Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-102-6/+6
|/ /
* | Auto merge of #8909 - cnaj:msg_refactoring, r=jdmbors-servo2015-12-1012-15/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move ScriptMsg to script_traits crate, Fixes #8833 Review of documentation that was missing needed. Fixes #8833. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8909) <!-- Reviewable:end -->
| * | Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-0912-15/+13
| |/
* / Implement responseXML API and document response type for XHRJitendra Jain2015-12-092-4/+116
|/
* Auto merge of #8867 - nfallen:6638-websocket_loader, r=jdmbors-servo2015-12-081-101/+55
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move websocket creation to resource task This is a pull request for part of https://github.com/servo/servo/issues/6638 It includes the following changes: -The websocket networking code (ie. making a connection, receiving data, and sending data) has been extracted out of components/script/dom/websocket.rs and into the new file components/net/websocket_loader.rs. -websocket.rs now communicates with the resource task (components/net/resource_task.rs) to instruct it to initiate a new websocket connection - websocket_loader.rs now provides an API sent over an IPCChannel that allows websocket.rs to receive feedback about this process and to subsequently send and receive data <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8867) <!-- Reviewable:end -->
| * move websocket creation to resource taskNova Fallen2015-12-081-101/+55
| |
* | Auto merge of #8827 - jdm:debugmozjscrash, r=Ms2gerbors-servo2015-12-081-22/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid a null-dereference using debug mozjs builds. This matches the e… …quivalent code upstream in Gecko. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8827) <!-- Reviewable:end -->
| * | Avoid a null-dereference using debug mozjs builds. This matches the ↵Josh Matthews2015-12-071-22/+9
| | | | | | | | | | | | equivalent code upstream in Gecko.
* | | Auto merge of #8876 - ecoal95:webgl-nits, r=jdmbors-servo2015-12-081-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebGL nits This improves support for running our triangle test (see: https://github.com/servo/servo/pull/8831), and adds missing error in `BufferSubData` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8876) <!-- Reviewable:end -->
| * | | webgl: Add correct error handling to BufferSubDataEmilio Cobos Álvarez2015-12-071-1/+1
| | |/ | |/| | | | | | | | | | | | | From the WebGL spec: > If data is null then an INVALID_VALUE error is generated.
* | | Auto merge of #8862 - fstr:move_workerid, r=Ms2gerbors-servo2015-12-084-7/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Moved WorkerId type to devtools_traits Fixes #8846. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862) <!-- Reviewable:end -->
| * | Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-074-7/+8
| | |
* | | Auto merge of #8853 - KiChjang:generic-task-sources, r=jdmbors-servo2015-12-0711-39/+98
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Split fn script_chan into 5 different task channel fn Partial #7959. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8853) <!-- Reviewable:end -->
| * | Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-0611-39/+98
| | |
* | | Auto merge of #8831 - simartin:ticket_6791, r=eefriedmanbors-servo2015-12-071-7/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #6791: Allow more array types in bufferData and bufferSubData. Fix https://github.com/servo/servo/issues/6791 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8831) <!-- Reviewable:end -->
| * | | Issue #6791: Allow more array types in bufferData and bufferSubData.Simon Martin2015-12-061-7/+3
| | |/ | |/|
* | | move FocusType enum to the script crateRoman Klauke2015-12-062-3/+9
| | | | | | | | | | | | | | | | | | | | | This commit moves the FocusType enum to the script crate and replaces all usages with the new `usage`. Fixes #8840
* | | Implement IsPointInPathDavid Zbarsky2015-12-052-6/+18
| | |
* | | Add link to issue for :visitedSimon Sapin2015-12-051-0/+1
| | |
* | | Auto merge of #8812 - jitendra29:support-withCredentials, r=jdmbors-servo2015-12-051-0/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | M1504: Implement basic support for withCredentials API The pull request includes the following task: * Implemented basic network-level support by adding a member to LoadData that is used by http_loader.rs to conditionally exclude cookies from the HTTP request if the flag is false (default true) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8812) <!-- Reviewable:end -->
| * | implement support for withCredentialsJigesh Mehta2015-12-041-0/+3
| |/
* | Create and invoke XML parser for XML documents.ronak2015-12-042-7/+61
| |
* | Introduce abstraction over HTML and XML parsers for parser network listener.Josh Matthews2015-12-044-28/+323
| |
* | Prepare infrastructure for XML parser.jsharda2015-12-041-0/+28
|/
* Auto merge of #8788 - ecoal95:fix-webgl-texturing, r=jdmbors-servo2015-12-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Fix texturing These two tiny changes were making WebGL textures not work. It was not seen in our texturing test since it only used one texture, we render to a texture by default, and that texture was bound to `gl::TEXTURE_2D`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8788) <!-- Reviewable:end -->
| * webgl: Fix texturingEmilio Cobos Álvarez2015-12-031-1/+1
| | | | | | | | | | | | | | These two tiny changes were making WebGL textures not work. It was not seen in our texturing test since we render to a texture by default, and that texture was bound to `gl::TEXTURE_2D`.
* | Auto merge of #8805 - Ms2ger:drain_modified_elements, r=jdmbors-servo2015-12-041-3/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Simplify drain_modified_elements a bit. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8805) <!-- Reviewable:end -->
| * | Simplify drain_modified_elements a bit.Ms2ger2015-12-031-3/+2
| | |
* | | Fix warnings.Ms2ger2015-12-041-1/+0
| | |
* | | Auto merge of #8818 - jdm:imagepanic, r=Manishearthbors-servo2015-12-041-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make IPC image cache listener silently drop failures instead of catas… …trophically panicking. Resolves #8817. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8818) <!-- Reviewable:end -->
| * | | Make IPC image cache listener silently drop failures instead of ↵Josh Matthews2015-12-041-2/+2
| | | | | | | | | | | | | | | | catastrophically panicking. Resolves #8817.
* | | | Auto merge of #8728 - dzbarsky:reset_bitmpa, r=dzbarskybors-servo2015-12-042-2/+10
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reset canvas state when changing bitmap dimensions Ran http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-canvas-element/initial.reset.2dstate.html?force=1#88 to confirm that this code is being executed, but the test still fails because the font isn't implemented and the expando doesn't get reset. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8728) <!-- Reviewable:end -->
| * | | Reset canvas state when changing bitmap dimensionsDavid Zbarsky2015-11-302-2/+10
| | | |
* | | | Auto merge of #8810 - frewsxcv:webidl-spec-link, r=eefriedmanbors-servo2015-12-041-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken WebIDL spec link <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8810) <!-- Reviewable:end -->
| * | | | Fix broken WebIDL spec linkCorey Farwell2015-12-031-1/+1
| | |/ / | |/| |
* | | | Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwaltonbors-servo2015-12-042-14/+42
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add slow path for hit testing of iframe behind positioned content layer Fixes browser.html blocker #8759. r? @pcwalton This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. If the script task discovers that a mouse event should have been dispatched to an iframe, it bounces the event back to the constellation to be forwarded to the correct pipeline. This isn't terribly slow (on the slow path, it adds one extra round-trip message between script and constellation), but if we want to optimize this better we could instead replace the compositor's layer hit testing with display list hit testing in the paint task. This would be a more complicated change that I think we should save for a follow-up. This only fixes mouse input for now. A basically-identical change will be needed for touch-screen input, whether we stick with this approach or switch to the paint task. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8785) <!-- Reviewable:end -->
| * | | | If a mouse event is targeting an iframe, forward it to the iframe's inner windowMatt Brubeck2015-12-032-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8759. This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. To optimize for this case, we could instead replace the layer hit testing with display-list hit testing done in the paint task.
| * | | | Minor refactoring of mouse event typesMatt Brubeck2015-12-031-10/+3
| | |_|/ | |/| | | | | | | | | | | | | | * Move some types into the `msg` crate so they can be shared more. * Use MouseEventType instead of duplicating it in other enums.
* | | | Auto merge of #8712 - simartin:issue_8462, r=ecoal95bors-servo2015-12-042-10/+81
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #8462: Add support for BufferSubData, CompressedTexImage2D and CompressedSubTexImage2D and reenable individual webgl WPT tests Fixes https://github.com/servo/servo/issues/8462 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8712) <!-- Reviewable:end -->
| * | | | Issue #8462: Add support for BufferSubData, CompressedTexImage2D andSimon Martin2015-12-012-10/+81
| | | | | | | | | | | | | | | | | | | | CompressedSubTexImage2D and re-enable individual webgl WPT tests.
* | | | | Auto merge of #8293 - simartin:issue_8113, r=jdmbors-servo2015-12-031-1/+2
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #8113: Support file, about and data schemes as form action. Fix https://github.com/servo/servo/issues/8113 by supporting those schemes as form action and unit test the "about:blank" case <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8293) <!-- Reviewable:end -->