aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Bug 8830 - Implemented XMLHttpRequest.responseURLShing Lyu2016-03-221-3/+6
|
* Update to Rust 2016-03-18.Ms2ger2016-03-201-2/+3
|
* Auto merge of #10090 - servo:tracking-nav-langs, r=ecoal95bors-servo2016-03-201-0/+1
|\ | | | | | | | | | | | | | | Add link to tracking issue for NavigatorLanguage::Languages. <!-- 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/10090) <!-- Reviewable:end -->
| * Add link to tracking issue for NavigatorLanguage::Languages.Corey Farwell2016-03-191-0/+1
| |
* | Auto merge of #10079 - servo:script-encoding, r=jdmbors-servo2016-03-204-48/+53
|\ \ | | | | | | | | | | | | | | | | | | | | | Implement encoding determination for external scripts. <!-- 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/10079) <!-- Reviewable:end -->
| * | Use a Cell for HTMLScriptElement::block_character_encoding.Ms2ger2016-03-181-4/+4
| | |
| * | Implement encoding determination for external scripts.askalski2016-03-181-8/+13
| | |
| * | Store the encoding in the Document rather than its name.Ms2ger2016-03-183-40/+40
| |/
* | Recompute viewport-dependent styles on viewport size changeMatt Brubeck2016-03-191-0/+3
| | | | | | | | Fixes #8754.
* | Auto merge of #10066 - apopiak:fromBool, r=asajeffreybors-servo2016-03-1910-78/+68
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | implement and use From<bool> for enum and back as discussed in the #servo channel on IRC: implement and use `From<bool>` for `EventBubbles` (and back direction) implement and use `From<bool>` for `EventCancelable` (and back direction) <!-- 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/10066) <!-- Reviewable:end -->
| * implement and use From<bool> for enum and backAlexander Popiak2016-03-1710-78/+68
| | | | | | | | | | implement and use From<bool> for EventBubbles (and back direction) implement and use From<bool> for EventCancelable (and back direction)
* | Auto merge of #10009 - creativcoder:impl-navigator-language, r=Ms2gerbors-servo2016-03-185-2/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implements NavigatorLanguage Fixes #9992 <!-- 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/10009) <!-- Reviewable:end -->
| * | implements NavigatorLanguageRahul Sharma2016-03-175-2/+23
| |/
* | Auto merge of #10014 - saurvs:pr1, r=KiChjangbors-servo2016-03-181-8/+14
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | Update WebSocket blocked ports to match the Fetch spec Adresses #9949. This adds a function that tests whether a request should be blocked or not based on it's url's scheme and port. It also adds testing for port restriction to the `main_fetch` method. More info in https://github.com/whatwg/fetch/commit/eb07418c8383983a9887498e49a2e2e986d3c9f4. @Ms2ger In https://github.com/whatwg/html/issues/841, @annevk proposes to remove port restrictions from websockets. Should we go ahead do that, given that the spec hasn't been changed yet? <!-- 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/10014) <!-- Reviewable:end -->
| * Update WebSocket blocked ports to match the Fetch specSaurav Sachidanand2016-03-171-8/+14
| |
* | Auto merge of #9838 - szeged:webbluetooth, r=jdmbors-servo2016-03-1621-3/+959
|\ \ | |/ |/| | | | | | | | | | | | | | | | | WebBluetooth API classes Basic implementation of WebBluetooth API API spec.: https://webbluetoothcg.github.io/web-bluetooth/ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9838) <!-- Reviewable:end -->
| * WebBluetooth API classesAttila Dusnoki2016-03-1621-3/+959
| |
* | Auto merge of #9967 - saurvs:master, r=Ms2gerbors-servo2016-03-121-3/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Convert directly from DOMString to Vec<u8> <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9967) <!-- Reviewable:end -->
| * | Convert directly from DOMString to Vec<u8>Saurav Sachidanand2016-03-111-3/+1
| | |
* | | Auto merge of #9824 - danlrobertson:element1, r=asajeffreybors-servo2016-03-124-0/+62
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the scrollWidth and scrollHeight extensions to the element interface Add the `scrollWidth` and `scrollHeight` extensions to the element interface. My goal was to create a method that encompassed getting `scrollWidth`, `scrollHeight`, `scrollTop`, and `scrollLeft`. I also noted that `clientHeight` and `clientWidth` to not handle the root element and the body element correctly. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9824) <!-- Reviewable:end -->
| * | Add scrollWidth/Height to element interfaceDaniel Robertson2016-03-114-0/+62
| | | | | | | | | | | | | | | Add the scrollWidth and scrollHeight extensions to the element interface.
* | | Auto merge of #9930 - rebstar6:htmlclick, r=jdmbors-servo2016-03-116-60/+91
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove activatable element filter within HTMLElement#click() Address https://github.com/servo/servo/issues/6542 Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9930) <!-- Reviewable:end -->
| * | | Call synthetic_click_activation for all clicksRebecca2016-03-106-60/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved synthetic_click_actiavtion out of Activatable trait so it can be called by all elements (not just activatable). Calls appropriately from click. Also updates the isdisabled check in click to check for all types of elements
* | | | Auto merge of #9905 - saurvs:master, r=ecoal95bors-servo2016-03-112-4/+98
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement input.setSelectionRange Fixes https://github.com/servo/servo/issues/9862. Passes all tests for `input` in `tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setSelectionRange.html`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9905) <!-- Reviewable:end -->
| * | | | Implement input.setSelectionRangeSaurav Sachidanand2016-03-102-4/+98
| | | | |
* | | | | Add task_source directoryKeith Yeung2016-03-109-84/+85
| | | | | | | | | | | | | | | | | | | | Use DOMManipulationTaskSource whenever possible
* | | | | Auto merge of #9796 - KiChjang:range-stringifier, r=jdmbors-servo2016-03-102-2/+45
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Stringifier for Range <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9796) <!-- Reviewable:end -->
| * | | | Implement Stringifier for RangeKeith Yeung2016-03-092-2/+45
| | |_|/ | |/| |
* | | | Auto merge of #9903 - servo:ref-filter-map, r=noxbors-servo2016-03-081-2/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace usage of deprecated std::cell::Ref::filter_map <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9903) <!-- Reviewable:end -->
| * | | | Replace usage of deprecated std::cell::Ref::filter_mapSimon Sapin2016-03-071-2/+3
| | |/ / | |/| |
* / | | rename deprecated utf16_units to encode_utf16Arpad Borsos2016-03-074-6/+6
|/ / /
* | | Auto merge of #9800 - Wafflespeanut:node_attrs, r=noxbors-servo2016-03-051-3/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixed the last failing test in dom/nodes/attributes.html r? @nox <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9800) <!-- Reviewable:end -->
| * | | Updated SupportedPropertyNames in NamedNodeMap to match specRavi Shankar2016-03-051-3/+14
| | | |
* | | | Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, r=jdmbors-servo2016-03-044-5/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed compile error in generated code, when webidl constructors have same number of args One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786) <!-- Reviewable:end -->
| * | | | Fixed compile error in generated code, when webidl constructors have same ↵Peter2016-03-034-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | number of args Edited test webidl to show issue, and fix
* | | | | Suppress reflows before RefreshTick or FirstLoadJack Moffitt2016-03-033-26/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. Unfortunately, hit_test and mouse_over did not do reflows if they were necessary, and so by suppressing the initial spurious reflows, these methods started to panic without a display list to query. This patch also transforms these into queries similar to the other existing queries.
* | | | | Auto merge of #9715 - ecoal95:mousemove, r=mbrubeckbors-servo2016-03-032-72/+84
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script: Fix MouseOver handling Now we only query for the topmost node, and apply the hover state to all of the parent elements. This fixes things like #9705, where the hover state was applied only to the children. This also makes us more conformant with other browsers in the case of taking in account margins and paddings. For example, prior to this PR, when your mouse was over the inner element, in the bottom part, `hover` styles didn't apply to the parent. ```html <style> div { padding: 10px; margin: 10px; height: 15px; background: blue; } div:hover { background: red; } </style> <div> <div></div> </div> ``` Fixes #9705 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9715) <!-- Reviewable:end -->
| * | | | | Refactor mouseover code to be more performantEmilio Cobos Álvarez2016-03-022-75/+77
| | | | | | | | | | | | | | | | | | | | | | | | This increases mouseover/out performance drastically on my machine.
| * | | | | script/layout: Refactor mouse_over since it now basically uses hit_testEmilio Cobos Álvarez2016-03-021-15/+7
| | | | | |
| * | | | | script: Fix `mouseover`/`mouseout` dispatching.Emilio Cobos Álvarez2016-03-021-18/+33
| | | | | |
| * | | | | script: Fix MouseOver handlingEmilio Cobos Álvarez2016-03-021-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we only query for the topmost node, and apply the hover state to all of the parent elements. This fixes things like #9705, where the hover state was applied only to the children. This also makes us more conformant with other browsers in the case of taking in account margins and paddings. For example, prior to this PR, when your mouse was over the inner element, in the bottom part, `hover` styles didn't apply to the parent. ```html <style> div { padding: 10px; margin: 10px; height: 15px; background: blue; } div:hover { background: red; } </style> <div> <div></div> </div> ``` Fixes #9705
* | | | | | Auto merge of #9825 - creativcoder:remove-contructor-xmldoc, r=KiChjangbors-servo2016-03-032-17/+0
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removed XMLDocument constructor according to spec <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9825) <!-- Reviewable:end -->
| * | | | | removed XMLDocument constructor according to specRahul Sharma2016-03-032-17/+0
| | |_|/ / | |/| | |
* | | | | Auto merge of #9837 - nox:deterministic-raf, r=mbrubeckbors-servo2016-03-022-10/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a BTreeMap for Document::animation_frame_list (fixes #9834) The callbacks must stay ordered. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9837) <!-- Reviewable:end -->
| * | | | | Use a BTreeMap for Document::animation_frame_list (fixes #9834)Anthony Ramine2016-03-022-10/+17
| |/ / / / | | | | | | | | | | | | | | | The callbacks must stay ordered.
* | | | | Auto merge of #9823 - gmalecha:canvas-rendering-context-2d-update-idl, r=jdmbors-servo2016-03-021-4/+66
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updating the CanvasRenderingContext2D to match the spec - fixes #9443 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9823) <!-- Reviewable:end -->
| * | | | | updating the CanvasRenderingContext2D to match the specGregory Malecha2016-03-011-4/+66
| |/ / / / | | | | | | | | | | | | | | | - fixes #9443
* / / / / Stop generating a parser.out file in the source.Ms2ger2016-03-013-1/+15
|/ / / /
* | | | Auto merge of #9763 - Tangresh:i9725, r=noxbors-servo2016-03-013-1/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement value for DOMTokenList Fixes #9725 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9763) <!-- Reviewable:end -->
| * | | | Implement value for DOMTokenListDominik Menzi2016-02-293-1/+14
| | | | |