aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #9824 - danlrobertson:element1, r=asajeffreybors-servo2016-03-125-0/+65
|\ | | | | | | | | | | | | | | | | | | | | | | 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-115-0/+65
| | | | | | | | | | 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-113-7/+129
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-103-7/+129
| | | |
* | | | Add task_source directoryKeith Yeung2016-03-1017-185/+261
| | | | | | | | | | | | | | | | 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
| | | | |
* | | | | Bump url to 0.5.7Anthony Ramine2016-03-091-1/+1
| | | | |
* | | | | Bump string_cache to 0.2.11Anthony Ramine2016-03-091-1/+1
| | | | |
* | | | | Bump euclid to 0.6.4Anthony Ramine2016-03-091-1/+1
| | | | |
* | | | | Bump cssparser to 0.5.4Anthony Ramine2016-03-091-1/+1
| | | | |
* | | | | Bump app_units to 0.2.3Anthony Ramine2016-03-091-1/+1
| |_|_|/ |/| | |
* | | | Remove unused cell_extras feature gates. Fixes #9912Suvish Varghese Thoovamalayil2016-03-081-1/+0
| | | |
* | | | Auto merge of #9903 - servo:ref-filter-map, r=noxbors-servo2016-03-083-2/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-073-2/+5
| | | | |
* | | | | rename deprecated utf16_units to encode_utf16Arpad Borsos2016-03-075-7/+6
|/ / / /
* | / / Update to Rust 2016-03-05Anthony Ramine2016-03-061-1/+1
| |/ / |/| |
* | | 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
* | | | | Auto merge of #9832 - metajack:suppress-reflows, r=mbrubeckbors-servo2016-03-044-28/+52
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suppress reflows before RefreshTick or FirstLoad 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. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9832) <!-- Reviewable:end -->
| * | | | | Suppress reflows before RefreshTick or FirstLoadJack Moffitt2016-03-034-28/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Indicate components should not be published to crates.io.Corey Farwell2016-03-031-0/+1
|/ / / / / | | | | | | | | | | | | | | | http://doc.crates.io/manifest.html#the-publish--field-optional
* | | | | Auto merge of #9715 - ecoal95:mousemove, r=mbrubeckbors-servo2016-03-034-108/+127
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-023-108/+119
| | | | | | | | | | | | | | | | | | | | | | | | This increases mouseover/out performance drastically on my machine.
| * | | | | script/layout: Refactor mouse_over since it now basically uses hit_testEmilio Cobos Álvarez2016-03-022-19/+8
| | | | | |
| * | | | | script: Fix `mouseover`/`mouseout` dispatching.Emilio Cobos Álvarez2016-03-021-18/+33
| | | | | |
| * | | | | script: Fix MouseOver handlingEmilio Cobos Álvarez2016-03-022-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Use piston_image instead of stb_image for decoding JPEGsUlf Nilsson2016-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | Bump image to 0.7
* | | | | 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
| | | | |
* | | | | Auto merge of #8932 - rilut:add-elementfrompoint, r=noxbors-servo2016-03-012-1/+36
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Document#elementFromPoint Related to #8666. I haven't implemented elementsFromPoint, because from my past discussion with jdm, [it's not good yet](https://github.com/rilut/servo/commit/dbfa25214b2888dda7527d62b5df1bb61f1ab047#commitcomment-14668959) to implement elementsFromPoint because it may cause GC hazards. By the way, I also have to include the test for this, right? I've found this [1]. So, is all I have to do is just to put this into `tests/wpt/web-platform-tests/cssom-view/elementFromPoint.html`? [1] http://test.csswg.org/suites/cssom-view-1_dev/nightly-unstable/html/elementFromPosition.htm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8932) <!-- Reviewable:end -->
| * | | | | Implement Document#elementFromPointRizky Luthfianto2016-03-012-1/+36
| | | | | |
* | | | | | Auto merge of #9787 - nox:event-invoke, r=Ms2gerbors-servo2016-02-292-68/+104
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor dispatch_event according to the spec (fixes #9178) Two new functions invoke and invoke_inner are introduced and some invariants documented. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9787) <!-- Reviewable:end -->
| * | | | | | Refactor dispatch_event according to the spec (fixes #9178)Anthony Ramine2016-02-291-41/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two new functions invoke and inner_invoke are introduced and some invariants documented.
| * | | | | | Rename various bindings in event dispatchingAnthony Ramine2016-02-292-19/+20
| | | | | | |
| * | | | | | Return a Vec from EventTarget::get_listeners_forAnthony Ramine2016-02-292-30/+26
| | | | | | |
| * | | | | | Merge EventTarget::{get_listeners, get_listeners_for}Anthony Ramine2016-02-292-11/+7
| | | | | | |
* | | | | | | Auto merge of #9799 - nox:range-extractcontents, r=KiChjangbors-servo2016-02-291-2/+3
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix step 14.2 of Range::ExtractContents We need the last inclusive ancestor of start node that is not an inclusive ancestor of end node, not the first that is an inclusive ancestor of it. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9799) <!-- Reviewable:end -->
| * | | | | | Fix step 14.2 of Range::ExtractContentsAnthony Ramine2016-02-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need the last inclusive ancestor of start node that is not an inclusive ancestor of end node, not the first that is an inclusive ancestor of it.