Commit graph

622 commits

Author SHA1 Message Date
Josh Matthews
a80320e24e Add event handlers for media-related events. 2016-05-03 18:05:22 -04:00
Josh Matthews
e3db11fd8b Implement play, pause, paused, and autoplay APIs. 2016-05-03 18:05:20 -04:00
Josh Matthews
5960fbe604 Implement load, canPlayType, and error APIs for media elements. 2016-05-03 18:05:18 -04:00
Josh Matthews
53f9307fb7 Add stubs for src and currentSrc for HTMLMediaElement. 2016-05-03 16:25:21 -04:00
Josh Matthews
b8b4be34c0 Stub out readyState and networkState attributes for HTMLMediaElement. 2016-04-28 17:35:29 -04:00
bors-servo
4f05ea73fe Auto merge of #10761 - amarant:Node-isSameNode, r=Ms2ger
Implements Node::isSameNode

Fixes #10746

I adapted the tests from dom/nodes/Node-isEqualNode.html
should I also add ones for xhtml too like here : dom/nodes/Node-isEqualNode-xhtml.xhtml ?

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10761)
<!-- Reviewable:end -->
2016-04-25 01:04:47 -07:00
bors-servo
20dd8ba7ec Auto merge of #10817 - danlrobertson:flex-basis, r=mbrubeck
Add style property for flex-basis

Add the style property for flex-basis. The property should allow all
values acceptable for `width` or `height` with the addition of `content`.

I also disabled the tests that I expect to pass. I am confused by [flexbox_computedstyle-flex-basis-0percent:20](https://github.com/servo/servo/blob/master/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_computedstyle_flex-basis-0percent.htm#L20). Should that be `0%` instead of `0px`?

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10817)
<!-- Reviewable:end -->
2016-04-24 23:34:37 -07:00
Daniel Robertson
2d9d31ee04
Add style property for flex-basis
Add the style property for flex-basis. The property should allow all
values acceptable for `width`|`height` with the addition of `content`.
2016-04-24 14:04:40 -04:00
Keith Yeung
2946fbef77 Implement stencil fns for WebGLRenderingContext 2016-04-24 02:40:22 -04:00
Arnaud Marant
ed42cc72a4 Implements Node::isSameNode
Fixes #10746

Adapted the tests from dom/nodes/Node-isEqualNode.html
2016-04-23 22:03:25 +02:00
bors-servo
1b13ddcd8a Auto merge of #10795 - yoava333:master, r=Ms2ger
updated Blob constructor to use optional

fixes https://github.com/servo/servo/issues/10779

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10795)
<!-- Reviewable:end -->
2016-04-22 23:17:55 -07:00
bors-servo
8163347e34 Auto merge of #10762 - canaltinova:has_attributes, r=nox
Implement Element::hasAttributes

Fixes #10748 .
Implement Element::hasAttributes. I'm not sure if tests are enough. I'm open to suggestion :)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10762)
<!-- Reviewable:end -->
2016-04-22 15:11:20 -07:00
bors-servo
82938547ed Auto merge of #10757 - ineol:root-node, r=Ms2ger
Implement Node::rootNode

Fixes #10747.

I don't know whether it's OK to recurse up the tree, though it is a tail call.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10757)
<!-- Reviewable:end -->
2016-04-22 12:10:52 -07:00
bors-servo
f1defb446e Auto merge of #10443 - emilio:webgl-teximage2d-overload, r=jdm
webgl: Implement the pending texImage2D overload, and add more validation

This is a large-ish refactor of the Texture2D code, but it should be
easier to read and of course more correct.

I tried to annotate every error condition with a spec paragraph.

I made just a reftest to ensure this works as intended, since I expect #10373 to land pretty soon.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10443)
<!-- Reviewable:end -->
2016-04-22 11:25:29 -07:00
Nazım Can Altınova
47f43d45a7 Implement Element::hasAttributes 2016-04-22 15:18:08 +03:00
Léo Stefanesco
00b3f7930e Implement Node::rootNode 2016-04-22 13:18:50 +02:00
Yoav Alon
711c23ae39 updated Blob constructor to use optional, fixes https://github.com/servo/servo/issues/10779 2016-04-22 01:28:35 +03:00
edunham
7ae63b1213 Remove modelines everywhere but tests/wpt 2016-04-20 10:49:09 -07:00
Zhen Zhang
11b12f677b element scroll setters 2016-04-20 08:29:17 +08:00
Emilio Cobos Álvarez
87e112dea7
webgl: Implement the pending texImage2D overload, and add more validation
This is a large-ish refactor of the Texture2D code, but it should be
easier to read and of course more correct.

I tried to annotate every error condition with a spec paragraph.
2016-04-19 13:25:40 +02:00
Zhen Zhang
fefdaf76de Implement ScrollTop and ScrollLeft getters:
Add new compositor message to get scroll_offset;
Add new layout query for computed value of overflow-x/y;
Implement layer_id method for ThreadSafeLayoutNode;
Add new layout query for layer_id;
Implement script interface for getting scrollTop and scrollLeft, as well as relavant helper functions.
2016-04-19 12:27:35 +08:00
bors-servo
19a5a9ad08 Auto merge of #10508 - g-k:insert-row, r=KiChjang
Insert row

Fixes #9269

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10508)
<!-- Reviewable:end -->
2016-04-19 01:38:38 +05:30
Greg Guthe
1d59d8784d Implement HTMLTableElement.insertRow()
refs: https://github.com/servo/servo/issues/9269

and update HTMLTableElement.webidl

insertRow returns an HTMLTableRowElement and throws an IndexSizeError
sortable and stopSorting were removed.
2016-04-18 15:18:16 -04:00
Alberto Corona
5e863f2eb8
Implement HTMLTextArea.setSelectionRange 2016-04-17 17:27:26 +02:00
Adrian Utrilla
89c432b2d2
Added remaining uniforms 2016-04-14 07:42:14 +02:00
bors-servo
9053721a32 Auto merge of #10558 - frewsxcv:tr-SectionRowIndex, r=KiChjang
Implement `sectionRowIndex` property on `<tr>`.

Fixes https://github.com/servo/servo/issues/10509.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10558)
<!-- Reviewable:end -->
2016-04-13 19:33:26 +05:30
bors-servo
3ad1b9134f Auto merge of #10512 - KiChjang:base-element-attr, r=Ms2ger
Implement HTMLBaseElement attributes

The remaining test failure in `base_multiple.html` looks like there's a problem with the test itself (it does not have a `<base>` tag at all).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10512)
<!-- Reviewable:end -->
2016-04-13 18:51:42 +05:30
Keith Yeung
4a1eb47937 Implement HTMLBaseElement attributes 2016-04-13 08:57:17 -04:00
Corey Farwell
0ee9521848 Implement sectionRowIndex property on <tr>.
Fixes https://github.com/servo/servo/issues/10509.
2016-04-12 23:17:20 -04:00
bors-servo
9fb5703c6d Auto merge of #10510 - frewsxcv:rowindex, r=KiChjang
Implement `rowIndex` property on `<tr>`.

Part of https://github.com/servo/servo/issues/10509.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10510)
<!-- Reviewable:end -->
2016-04-13 04:25:20 +05:30
bors-servo
421dcc92f0 Auto merge of #10538 - izgzhen:performance_timing, r=Ms2ger
Improve PerformanceTiming Interface

Solving https://github.com/servo/servo/issues/10428

- Fix timing precision in old `update_with_current_time`
- Correct time unit in `navigation_start`
- Add `LoadEventStart` and `LoadEventEnd` timing properties

There are still many properties left unimplemented. I tend to leave the for future PRs.

Welcome comments!

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10538)
<!-- Reviewable:end -->
2016-04-13 01:45:10 +05:30
bors-servo
85f4e58285 Auto merge of #10543 - jdm:imageload, r=jdm
Implement image request concept for HTMLImageElement. Implement HTMLI…

…mageElement.currentSrc.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10543)
<!-- Reviewable:end -->
2016-04-13 01:04:28 +05:30
Corey Farwell
23eb15c820 Implement rowIndex property on <tr>.
Part of https://github.com/servo/servo/issues/10509.
2016-04-12 14:58:17 -04:00
akhan7
90359b1cba Implement image request concept for HTMLImageElement. Implement HTMLImageElement.currentSrc. 2016-04-12 14:11:31 -04:00
Zhen Zhang
7169a08a34 fix performance timing precision and navigation_start unit; add LoadEventStart and LoadEventEnd timing 2016-04-13 01:30:02 +08:00
Yoav Alon
5e3dcae71f Implement the table section IDL attributes for HTML tables 2016-04-12 18:35:55 +03:00
bors-servo
dfb482a2b7 Auto merge of #10523 - frewsxcv:cssom-htmlimageelement-extension, r=Ms2ger
Add CSSOM 'Extensions to the HTMLImageElement Interface' in WebIDL.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10523)
<!-- Reviewable:end -->
2016-04-12 15:59:27 +05:30
bors-servo
376980fb57 Auto merge of #10379 - dzbarsky:getActiveAttrib, r=emilio
Implement GetActiveAttrib

@emilio

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10379)
<!-- Reviewable:end -->
2016-04-12 15:18:28 +05:30
David Zbarsky
34644401c6 Implement GetActiveAttrib 2016-04-11 23:12:04 -07:00
bors-servo
f9608022ca Auto merge of #10535 - frewsxcv:hr-align, r=mbrubeck
Implement 'align' IDL attribute on '<hr>'.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10535)
<!-- Reviewable:end -->
2016-04-12 11:18:14 +05:30
bors-servo
61865f66b5 Auto merge of #10505 - amarant:10491-HTMLInputElement-attr, r=KiChjang
Issue #10491 add HTMLInputElement attributes that reflect content ide…

…ntically

it uses a new version of string-cache https://github.com/servo/string-cache/pull/148

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10505)
<!-- Reviewable:end -->
2016-04-12 05:58:16 +05:30
Corey Farwell
bd74844537 Implement 'align' IDL attribute on '<hr>'. 2016-04-11 19:46:57 -04:00
Arnaud Marant
9b8f183cba Issue #10491 add HTMLInputElement attributes that reflect content identically
it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
2016-04-12 00:15:57 +02:00
Daniel Robertson
3580f91291 Implement flexbox reordering
Add style property for order and implement reordering by this property
in flex flow. Based on previous work by @zentner-kyle.
2016-04-11 16:55:16 -04:00
bors-servo
3b7e426d33 Auto merge of #10485 - ConnorGBrewster:navigator_plugins, r=Ms2ger
Implement stub for NavigatorPlugins

This PR implements stub for NavigatorPlugins as outlined in #9991.

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10485)
<!-- Reviewable:end -->
2016-04-11 21:17:16 +05:30
Connor Brewster
e83d29a7eb Implemented stub for NavigatorPlugins 2016-04-11 09:14:46 -06:00
Corey Farwell
4338cb8f68 Add CSSOM 'Extensions to the HTMLImageElement Interface' in WebIDL. 2016-04-11 09:24:55 -04:00
shubham_jain
6626c5cfd4 issue #10141 : Document::location set null for documents without a browsing context. r=Ms2ger 2016-04-09 22:54:07 +05:30
bors-servo
32e53b80e2 Auto merge of #10086 - KiChjang:table-rows, r=Manishearth
Implement HTMLTableElement#rows

Fixes #8084.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10086)
<!-- Reviewable:end -->
2016-04-09 16:36:40 +05:30
Joe Wilm
229b176321 Implement Worker#terminate() (fixes #4427).
Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.
2016-04-07 18:54:32 -04:00