aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #8031 - creativcoder:spec-links-js, r=jdmbors-servo2015-10-161-0/+31
|\ | | | | | | | | | | | | | | | | | | added spec link for type mapping Hi. added some of the spec links, that i could understand from the spec. Please mention if anything else needs to be added. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8031) <!-- Reviewable:end -->
| * added spec link for type mappingRahul Sharma2015-10-151-0/+31
| |
* | Auto merge of #7947 - jimberlage:7856/buffered-amount, r=jdmbors-servo2015-10-162-3/+44
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds bufferedAmount to Websocket (fixes #7856). This adds a readonly bufferedAmount attribute to Servo's websocket implementation. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7947) <!-- Reviewable:end -->
| * | Adds bufferedAmount to Websocket (fixes #7856).Jim Berlage2015-10-152-3/+44
| | |
* | | Auto merge of #8035 - sliz1:issues/8028, r=Manishearthbors-servo2015-10-161-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue 8028: `parse_html` should take `Url` rather than `&Url` fixes #8028 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8035) <!-- Reviewable:end -->
| * | | Issue 8028: `parse_html` should take `Url` rather than `&Url`Stephen Li2015-10-151-1/+1
| |/ /
* | | Auto merge of #8043 - eefriedman:async-listener-mut, r=jdmbors-servo2015-10-163-29/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make AsyncResponseListener methods take `&mut self` Gets rid of a bunch of useless `Cell`/`RefCell` types. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8043) <!-- Reviewable:end -->
| * | | Simplify AsyncResponseListener implementations.Eli Friedman2015-10-152-20/+19
| | | |
| * | | Make AsyncResponseListener methods take `&mut self`.Eli Friedman2015-10-153-9/+9
| | | |
* | | | Auto merge of #8026 - eefriedman:js-rooting, r=noxbors-servo2015-10-1618-179/+197
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix uses of JS<T> as a type on the stack `JS<T>` belongs on the heap, and only on the heap. This is a collection of fixes so that code uses either `Root<T>` or `&T` to pass around garbage-collected pointers. Ideally, we could completely ban constructing a `JS<T>` outside of constructor functions, but we aren't quite there yet. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8026) <!-- Reviewable:end -->
| * | | | Simplify extracting a reference from an Option<Root<T>>, per review comments.Eli Friedman2015-10-152-3/+3
| | | | |
| * | | | Fix documentation for JS<T> and friends.Eli Friedman2015-10-151-13/+18
| | | | |
| * | | | Fix remaining MutHeap methods not to expose JS<T>.Eli Friedman2015-10-157-41/+42
| | | | |
| * | | | Make get() and set() on MutNullableHeap use the correct types.Eli Friedman2015-10-1511-67/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get() must always return a rooted value, because we have no way of ensuring the value won't be invalidated. set() takes an &T because it's convenient; there isn't any need to expose JS<T>.
| * | | | Don't use MutNullableHeap in HTMLCanvasElement.Eli Friedman2015-10-151-31/+30
| | | | | | | | | | | | | | | | | | | | MutNullableHeap is going away in favor of MutNullableHeapJS.
| * | | | Don't return a JS<T> from bound_texture_for/Eli Friedman2015-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | It's never correct to return a JS<T>. Maybe the lint should catch this?
| * | | | Stop implementing Copy for JS<T>.Eli Friedman2015-10-157-35/+47
| |/ / / | | | | | | | | | | | | | | | | A copy of a JS<T> doesn't have the rooting properties of the original, so it makes no sense for it to implement Copy.
* / / / Enable some warnings for generated code.Ms2ger2015-10-161-4/+1
|/ / / | | | | | | | | | None of those warnings currently occur.
* | | Update script to work with lint changesManish Goregaokar2015-10-165-5/+11
| | |
* | | Auto merge of #8020 - nox:codegen-derived, r=Ms2gerbors-servo2015-10-1593-1176/+229
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generate all Derived implementations in codegen Follow-up of #7873. @Ms2ger r? :) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8020) <!-- Reviewable:end -->
| * | Explicitly customise flags of new nodes where neededAnthony Ramine2015-10-1578-229/+172
| | | | | | | | | | | | | | | | | | | | | Given codegen now generates the various TypeId enums, it seems pointless to still have to write their respective values in every DOM struct inheriting from Node just to set the initial IS_IN_DOC flag in Document and IN_ENABLED_STATE in form controls.
| * | Generate all Derived implementations in codegenAnthony Ramine2015-10-1493-1027/+137
| | |
* | | Auto merge of #7972 - nox:codegen-heapsize, r=Ms2gerbors-servo2015-10-152-1/+8
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce DOMClass::heap_size_of It holds a function pointer to the HeapSizeOf::heap_size_of_children() implementation corresponding to that IDL interface. This removes the need for a clumsly TypeId-based match expression in the former heap_size_of_eventtarget() function. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7972) <!-- Reviewable:end -->
| * | Introduce DOMClass::heap_size_ofAnthony Ramine2015-10-142-1/+8
| |/ | | | | | | | | | | | | | | It holds a function pointer to the HeapSizeOf::heap_size_of_children() implementation corresponding to that IDL interface. This removes the need for a clumsly TypeId-based match expression in the former heap_size_of_eventtarget() function.
* | Throw on bad ByteStringsMichael Wu2015-10-141-1/+1
| |
* | Support the updated spidermonkey bindingsMichael Wu2015-10-1414-217/+224
|/
* Generate the TypeId enums in codegenAnthony Ramine2015-10-14102-741/+655
|
* Auto merge of #7829 - frewsxcv:htmltablecellelement-cellindex, r=Ms2gerbors-servo2015-10-142-2/+20
|\ | | | | | | | | | | | | | | | | | | Implement HTMLTableCellElement::CellIndex Extracted from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7829) <!-- Reviewable:end -->
| * Implement HTMLTableCellElement::CellIndexCorey Farwell2015-10-062-2/+20
| | | | | | | | Extracted from #6936
* | Auto merge of #7871 - psdh:sendReason, r=jdmbors-servo2015-10-131-1/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Send reason in the Websocket close handshake Fixes #7862 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7871) <!-- Reviewable:end -->
| * | Send reason in the Websocket close handshakePrabhjyot Singh Sodhi2015-10-051-1/+4
| | |
* | | Link to the HTML multipage spec, not the single-page one.Eli Friedman2015-10-1311-43/+43
| | |
* | | Add newline so code sample is parsed correctly.Dongie Agnir2015-10-121-0/+1
| | |
* | | Auto merge of #7921 - glennw:subpage-fixes-2, r=jdmbors-servo2015-10-121-18/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update RemoveIFrame to use pipeline id rather than subpage. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7921) <!-- Reviewable:end -->
| * | | Convert RemoveIFrame message to use pipeline id.Glenn Watson2015-10-121-18/+15
| | | |
* | | | Auto merge of #7976 - frewsxcv:clippy, r=jdmbors-servo2015-10-121-33/+33
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup code that was warned by rust-clippy [whitespace agnostic diff](https://github.com/servo/servo/pull/7976/files?w=1) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7976) <!-- Reviewable:end -->
| * | | Cleanup code that was warned by rust-clippyCorey Farwell2015-10-111-33/+33
| | | |
* | | | Implement deleteRow and insertRow for <table> elementCorey Farwell2015-10-113-4/+67
|/ / / | | | | | | | | | Continued from #6936
* | | Auto merge of #7958 - frewsxcv:consolidate-magic-number, r=mbrubeckbors-servo2015-10-104-4/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidate magic number representing max unsigned long <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7958) <!-- Reviewable:end -->
| * | | Consolidate magic number representing max unsigned longCorey Farwell2015-10-104-4/+15
| | | |
* | | | Auto merge of #7953 - frewsxcv:htmldivelement-align, r=mbrubeckbors-servo2015-10-102-2/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement 'align' attribute for <div> elements <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7953) <!-- Reviewable:end -->
| * | | | Implement 'align' attribute for <div> elementsCorey Farwell2015-10-102-2/+10
| |/ / /
* | | | Auto merge of #7955 - frewsxcv:listing-pre, r=noxbors-servo2015-10-101-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 'listing' alias for <pre> elements <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7955) <!-- Reviewable:end -->
| * | | | Add 'listing' alias for <pre> elementsCorey Farwell2015-10-101-1/+2
| |/ / /
* | | | Explicitly place '/' before fragment for multipage spec linksCorey Farwell2015-10-1097-152/+152
| | | | | | | | | | | | | | | | | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost
* | | | Replace usage of old-style WHATWG spec linksCorey Farwell2015-10-1095-148/+148
|/ / /
* | | Auto merge of #7948 - kunitsyn:master, r=Manishearthbors-servo2015-10-092-7/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed dom_class type to Option<&'static DOMClass> to fix #7942 I have a feeling that converting `Option<&T>` to `*const libc::c_void` could be less explicit. Was there any way to do it shorter? <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7948) <!-- Reviewable:end -->
| * | | Changed dom_class type to Option<&'static DOMClass>Andriy Kunitsin2015-10-092-7/+12
| | | |
* | | | Auto merge of #7835 - iawaknahc:webstorage-quota, r=jdmbors-servo2015-10-092-6/+13
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a quota of 5MB per origin for localstorage and sessionstorage PR for https://github.com/servo/servo/issues/6739 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7835) <!-- Reviewable:end -->
| * | | Implement a quota of 5MB per origin for localstorage and sessionstorageLouis Chan2015-10-092-6/+13
| | | |