aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * | | | Issue #8113: Support file, about and data schemes as form action.Simon Martin2015-12-021-1/+2
| | |/ / | |/| |
* | | | Auto merge of #8787 - Jayflux:hotfix/8695, r=mbrubeckbors-servo2015-12-032-3/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now using external ref_slice instead of the std version fixed #8695 Fixes #8695. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8787) <!-- Reviewable:end -->
| * | | | now using external ref_slice instead of the std versionJason Williams2015-12-032-3/+4
| |/ / /
* | | | Auto merge of #8786 - eefriedman:localname-atom, r=jdmbors-servo2015-12-0372-153/+202
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unnecessary conversion to/from DOMString for localName. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8786) <!-- Reviewable:end -->
| * | | | Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-0272-153/+202
| |/ / /
* | | | Auto merge of #8739 - jitendra29:finalMimeAndCharsetHelper, r=eefriedmanbors-servo2015-12-031-13/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M1504: Implement final charset support for text_response method Following changes have been made: * Added final_mime_type and final_charset helper methods to return the appropriate final mime/charset values * Modified the text_response method to use the final_charset instead of directly using the response charset <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8739) <!-- Reviewable:end -->
| * | | | Implement final_mime_type and final_charset helpers and use in text_responseJitendra Jain2015-12-021-13/+30
| |/ / /
* | | | Auto merge of #8693 - yanirs:websocket-close-unspecified-status, r=jdmbors-servo2015-12-031-5/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement unspecified websocket close code (fixes issue #8158) Fixes #8158. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8693) <!-- Reviewable:end -->
| * | | | Implement unspecified websocket close code (fixes issue #8158)Yanir Seroussi2015-11-301-5/+21
| | | | |
* | | | | Auto merge of #7988 - nox:unforgeable, r=jdmbors-servo2015-12-037-82/+253
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement [Unforgeable] This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7988) <!-- Reviewable:end -->
| * | | | | Implement [Unforgeable]Anthony Ramine2015-12-027-82/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. Given the unforgeable holder object has the same prototype as actual instances of the interface, the finalize hook needs to check its slot pointer for nullity before dropping it. The new failing test isn't related to Unforgeable attributes, but to the fact that all Document instances currently have a Location, even if their window isn't in a browsing context.
* | | | | | Makes setting negative values to maxLength throw an IndexSize exceptionSam Gibson2015-12-034-12/+28
| | | | | |
* | | | | | Add additional WPT tests for maxlength parser setSam Gibson2015-12-031-1/+0
| | | | | |
* | | | | | Fix typo in error messageSam Gibson2015-12-031-1/+1
| | | | | |
* | | | | | Correct the default max lengthSam Gibson2015-12-031-1/+1
| | | | | |
* | | | | | Resolves long-running merge conflictsSam Gibson2015-12-032-11/+8
| | | | | |
* | | | | | Makes int_getter macro, and uses -1 as default maxlength instead of maxintSam Gibson2015-12-034-11/+51
| | | | | |
* | | | | | Adds support for input element's maxlength attrSam Gibson2015-12-033-4/+36
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | servo/servo#7320 servo/servo#7004
* | | | | Auto merge of #8714 - frewsxcv:body-fgcolor, r=Ms2gerbors-servo2015-12-012-1/+11
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement attribute 'fgColor' on 'document' The 'text' attribute was implemented on `<body>` in #7841 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8714) <!-- Reviewable:end -->
| * | | | Implement attribute 'fgColor' on 'document'Corey Farwell2015-11-302-1/+11
| |/ / / | | | | | | | | | | | | The 'text' attribute was implemented on '<body>' in #7841
* / / / Dispatch load events for cross origin iframes. Resolves #6672.Josh Matthews2015-11-302-15/+34
|/ / /
* | | Remove unused slot in prototype object (fixes #8588)Anthony Ramine2015-11-302-30/+2
| | |
* | | Make OnErrorEventHandlerNonNull return 'any' instead of 'boolean'.Jason Schein2015-11-291-1/+1
| | |
* | | Auto merge of #8729 - dzbarsky:canvas_webidl, r=dzbarskybors-servo2015-11-292-25/+27
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Canvas webIDL to spec <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8729) <!-- Reviewable:end -->
| * | | Update Canvas webIDL to specDavid Zbarsky2015-11-282-25/+27
| | | |