aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #6317 - frewsxcv:rm-util-crate-reexports, r=Ms2gerbors-servo2015-06-105-3/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The util component specified fnv and smallvec as dependencies and publicly reexported both of them. Several other components utilized these reexports, presumably because fnv and smallvec used to live in the tree so reexporting made the transition easier. These indirect dependencies through the util component are unnecessary. This commit removes the fnv & smallvec crate reexports in the util component. It exchange, it adds fnv & smallvec as dependencies to non-util components wherever needed. Finally, it removes the fnv dependency from util as it is not utilized anywhere in the util component. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6317) <!-- Reviewable:end -->
| * Remove fnv & smallvec crate reexports from utilCorey Farwell2015-06-105-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The util component specified fnv and smallvec as dependencies and publicly reexported both of them. Several other components utilized these reexports, presumably because fnv and smallvec used to live in the tree so reexporting made the transition easier. These indirect dependencies through the util component are unnecessary. This commit removes the fnv & smallvec crate reexports in the util component. It exchange, it adds fnv & smallvec as dependencies to non-util components wherever needed. Finally, it removes the fnv dependency from util as it is not utilized anywhere in the util component.
* | Auto merge of #6323 - Ms2ger:typo, r=SimonSapinbors-servo2015-06-101-1/+1
|\ \ | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6323) <!-- Reviewable:end -->
| * | Fix a typo in the DOM documentation.Ms2ger2015-06-101-1/+1
| | |
* | | Remove null_str_as_empty and null_str_as_empty_ref functions.Ms2ger2015-06-101-2/+2
|/ / | | | | | | | | With just one caller between the two functions, there doesn't seem to be much point in having the abstraction.
* | Auto merge of #6318 - Ms2ger:optimize-lookup-prefix, r=noxbors-servo2015-06-102-7/+12
|\ \ | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6318) <!-- Reviewable:end -->
| * | Optimize lookupPrefix.Ms2ger2015-06-102-7/+12
| |/
* | Auto merge of #6319 - mukilan:overload-codegen, r=Ms2gerbors-servo2015-06-101-16/+9
|\ \ | |/ |/| | | | | | | | | | | The cause of the issue is that the index of the overload to be invoked was being derived from the wrong lists (that contain only a subset of the overloads) - `possibleOverloads` and `interfaceSigs` rather than the `method.signatures()` (which contains all possible overloads). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6319) <!-- Reviewable:end -->
| * Fix codegen for overload resolution. Fixes #6300Mukilan Thiyagarajan2015-06-101-16/+9
| |
* | Auto merge of #6284 - fbau123:6242-testbinding-add-specialoperations, r=noxbors-servo2015-06-094-3/+59
|\ \ | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6284) <!-- Reviewable:end -->
| * | added TestBindingProxy.webidl and testbindingproxy.rs filesFrancesc Bautista2015-06-094-3/+59
| | | | | | | | | | | | | | | | | | | | | | | | added testbindingproxy to dom/mod.rs and fixed unused variable warning of testingbindingproxy.rs removed useless GlobalField, removed brackets use statements with only 1 element and changed the description of TestBindingProxy.webidl renamed reflector to reflector_ and removed unused import in testbinding.rs
* | | Audit and reduce unstable usage in scriptManish Goregaokar2015-06-104-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasons behind existing unstable features: alloc: - `Rc.make_unique()` - `into_raw` / `from_raw` (naming). All over the bindings code. collections: - `Vec.push_all()` - `from_str` - can be replaced by `.to_owned()` - `from_raw_buf` - could be done directly core: - `nonzero` - `UnsafeCell` (`as_unsafe_cell`) - `Zeroable` - `Peekable.is_empty` std_misc: - Handle stuff
* | | Auto merge of #6293 - ecoal95:webgl-objects, r=noxbors-servo2015-06-0910-73/+310
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements: * WebGLFramebuffer * WebGLRenderbuffer * WebGLTexture And adds the following methods to `WebGLRenderingContext`: * create{Texture,Framebuffer,Renderbuffer} * bind{Texture,Framebuffer,Renderbuffer} * destroy{Buffer,Texture,Framebuffer,Renderbuffer} Fixes: * WebGLUniform location shouldn't inherit from WebGLObject. Known Issues: * WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this Also refactors a huge part of the current implementation, to allow failing on creation of different WebGL objects. Blocked on https://github.com/servo/gleam/pull/22 A reftest for most of the added functionality is not doable right now, we need a few more functions in order to upload a texture, for example. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293) <!-- Reviewable:end -->
| * | | Implement new WebGL interfaces and methodsecoal952015-06-0610-73/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements: * WebGLFramebuffer * WebGLRenderbuffer * WebGLTexture And adds the following methods to `WebGLRenderingContext`: * create{Texture,Framebuffer,Renderbuffer} * bind{Texture,Framebuffer,Renderbuffer} * destroy{Buffer,Texture,Framebuffer,Renderbuffer} Fixes: * WebGLUniform location shouldn't inherit from WebGLObject. Known Issues: * WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this Also refactors a huge part of the current implementation, to allow failing on creation of different WebGL objects. Blocked on https://github.com/servo/gleam/pull/22 A reftest for most of the added functionality is not doable right now, we need a few more functions in order to upload a texture, for example.
* | | | Auto merge of #6290 - hyowon:fill_or_stroke_style, r=noxbors-servo2015-06-082-19/+53
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fillStyle and strokeStyle attributes can be either strings(color), CanvasGradients, or CanvasPatterns. The current implementation only considers strings(color). r? @nox @jdm @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/6290) <!-- Reviewable:end -->
| * | | Replace fill_color and stroke_color with fill_style and stroke_style in ↵Hyowon Kim2015-06-062-19/+53
| |/ / | | | | | | | | | | | | | | | | | | CanvasContextState. The fillStyle and strokeStyle attributes can be either strings(color), CanvasGradients, or CanvasPatterns.
* | | Auto merge of #6299 - GreenRecycleBin:#6271, r=Ms2gerbors-servo2015-06-072-7/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get_proto_or_iface_array now returns *mut ProtoOrIfaceArray Fix #6271 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6299) <!-- Reviewable:end -->
| * | | Avoid casting in the callersDaniel Le2015-06-062-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | get_proto_or_iface_array now returns *mut ProtoOrIfaceArray Fix #6271
* | | | Use the correct log crate and setup env_logger in main.Eduard Burtescu2015-06-062-1/+1
| | | |
* | | | Auto merge of #6297 - brson:inline, r=jdmbors-servo2015-06-061-10/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This results in a 14% compile time improvement. See https://gist.github.com/brson/b48dd03b06c406be68e6 I'm not suggesting you merge this as-is, but you might consider whether removing some of these is worth pursuing. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6297) <!-- Reviewable:end -->
| * | | | Convert inline(always) to inline in CodegenRust and jstraceable.Brian Anderson2015-06-051-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This results in a 14% compile time improvement. See https://gist.github.com/brson/b48dd03b06c406be68e6
* | | | | Auto merge of #6291 - Ms2ger:caption, r=noxbors-servo2015-06-061-13/+6
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6291) <!-- Reviewable:end -->
| * | | | Use if let in HTMLTableElement::SetCaption.Ms2ger2015-06-061-13/+6
| | |/ / | |/| |
* / | | Timestamp fix for issue #5690Wafflespeanut2015-06-051-1/+1
|/ / /
* | | Auto merge of #6247 - jdm:tracefix, r=Ms2gerbors-servo2015-06-032-3/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should allow the jQuery testsuite to complete. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6247) <!-- Reviewable:end -->
| * | | Trace the prototype array on the global object.Josh Matthews2015-06-012-3/+18
| | | |
* | | | Auto merge of #6231 - AopicieR:get_elements_by_name, r=Ms2gerbors-servo2015-06-031-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #1745 Should I adjust the expected result of the corresponding wpt test cases? html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.html html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6231) <!-- Reviewable:end -->
| * | | | Restrict output of getElementsByName to HTML elementsPhilipp Hartwig2015-05-311-0/+3
| | |_|/ | |/| | | | | | | | | | https://html.spec.whatwg.org/#dom-document-getelementsbyname
* | | | add window method for notifying when the <head> tag has been parsedMike Blumenkrantz2015-06-021-0/+5
| | | |
* | | | add handling for favicon link elementsMike Blumenkrantz2015-06-021-1/+40
| | | | | | | | | | | | | | | | fixes #6166
* | | | Auto merge of #6253 - hyowon:serialize_colour, r=noxbors-servo2015-06-021-9/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #4761 cc @yichoi r? @jdm @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6253) <!-- Reviewable:end -->
| * | | | Serialize colors for fill and stroke styles in canvas.Hyowon Kim2015-06-031-9/+21
| | | | |
* | | | | Auto merge of #6254 - servo:rustup_20150601, r=SimonSapinbors-servo2015-06-021-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6254) <!-- Reviewable:end -->
| * | | | | Move to latest hyper everywhereManish Goregaokar2015-06-021-2/+2
| |/ / / /
* | | | | Auto merge of #6230 - frewsxcv:getters-get, r=noxbors-servo2015-06-022-4/+4
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6230) <!-- Reviewable:end -->
| * | | | Remove `get_` prefix on gettersCorey Farwell2015-06-022-4/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
* | | | Auto merge of #6193 - j3parker:fix-5232, r=noxbors-servo2015-06-011-8/+18
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #5232 The correct styling shows up in the Firefox devtools (e.g. a caution symbol beside warning messages.) I couldn't quickly find the corresponding Firefox code that handles log-levels so the values I'm sending are "guesses" (but they work seem to work.) I'll look today because I'm sending "log" for Debug-level, Error for failed asserts etc. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6193) <!-- Reviewable:end -->
| * | | fixes #5232, more console log levels sent to devtoolsJacob Parker2015-06-011-8/+18
| | | |
* | | | Add support for switching frames with the webdriver API.James Graham2015-06-015-20/+54
| |_|/ |/| | | | | | | | This moves webdriver_traits into msg to avoid a circular dependency.
* | | Change not(ndebug) to debug_assertionsMatt Brubeck2015-06-011-1/+1
| | | | | | | | | | | | The name of this directive changed in rust-lang/rust#22980.
* | | WebGLRenderingContext getters and `getParameter`ecoal952015-06-012-7/+40
| | | | | | | | | | | | | | | | | | This implements the `canvas`, `drawingBufferHeight` and `drawingBufferWidth` getters to `WebGLRenderingContext`, and an initial version of `getParameter`.
* | | Auto merge of #6183 - ecoal95:webglcontextattributes, r=noxbors-servo2015-06-019-72/+191
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r? @jdm I couldn't add the `getContextAttributes` method since `CodegenRust` doesn't know how to return a dictionary value, I'll take a look at it ASAP. I think the helper functions can return directly the renderer, since they're used just for that, but I wanted to hear your opinions about this. By the way I'm interested in adding more serious tests for WebGL, and I think the [khronos conformance suit](https://github.com/KhronosGroup/WebGL/tree/master/conformance-suites/1.0.3) should be the best option. Should I try to integrate it in wpt, or making a `tests/webgl` directory (or similar) inside the servo tree? (Maybe this question should be for @Ms2ger) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6183) <!-- Reviewable:end -->
| * | | Add WebGLContextAttributes supportecoal952015-06-019-72/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit also: * Allows to return non-rootable dictionaries from Codegen. * Merges the two context types in an enum type.
* | | | Correct the calculation of rects for drawimage.Hyowon Kim2015-06-011-4/+4
| |_|/ |/| |
* | | Auto merge of #5972 - pgonda:remove-children-from-doc, r=jdmbors-servo2015-05-291-7/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5972) <!-- Reviewable:end -->
| * | | fixes #5963Peter2015-05-261-7/+3
| | | |
* | | | Auto merge of #6206 - nox:typeerror-for-unions, r=Manishearthbors-servo2015-05-281-7/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6206) <!-- Reviewable:end -->
| * | | | Make throw_not_in_union() throw a TypeError (fixes #6194)Anthony Ramine2015-05-281-7/+4
| | |/ / | |/| |
* | | | Auto merge of #5981 - Jinwoo-Song:nodeiterator, r=Manishearthbors-servo2015-05-285-25/+363
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement NodeIterator's basic functionality. (Fixes #1235) But the cases for node removals are not implemented yet. r? @jdm cc @yichoi <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5981) <!-- Reviewable:end -->
| * | | Update NodeIterator code to apply review comments.Jinwoo Song2015-05-284-190/+237
| | | |