aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* script: Stop copying the document URL.Patrick Walton2015-09-241-1/+2
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Auto merge of #7452 - nox:cleanup-attributes, r=noxbors-servo2015-09-021-1/+1
|\ | | | | | | | | | | | | | | | | | | Introduce VirtualMethods::attribute_mutated() <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7452) <!-- Reviewable:end -->
| * Replace many uses of Attr::Value() by Attr::value()Anthony Ramine2015-08-301-1/+1
| | | | | | | | The later only borrows the attribute, without copying its value as a string.
* | Enforce linking to spec for method implementations via macrosCorey Farwell2015-08-311-0/+2
|/
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-5/+5
|
* Remove AttributeHandlersAnthony Ramine2015-08-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | On components/script/*.rs: # Remove imports. /^ *use dom::element::\{.*AttributeHandlers/ { s/\{AttributeHandlers, /\{/ s/, AttributeHandlers//g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::element::\{?AttributeHandlers\}?;$/d # Remove AttributeHandlers. /^pub trait AttributeHandlers \{$/,/^\}$/D # Patch AttributeHandlers methods. /^impl<'a> AttributeHandlers for &'a Element \{/,/^\}$/ { s/^impl<'a> AttributeHandlers for &'a Element \{/impl Element {/ /^ *fn /s/\(self([,)])/\(\&self\1/ /^ *fn.*\(&self/s/fn/pub fn/ } The few error cases were then fixed by hand.
* Remove helper traitsAnthony Ramine2015-08-271-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* Remove doublepointer in VirtualMethods, and from_borrowed_refManish Goregaokar2015-08-271-2/+2
| | | | | | | | | Most of the heavy lifting done by: ``` $ ls *rs | xargs gawk -i inplace '/let .*: &&.*from_borrowed_ref/{sub("&&", "\\&");sub("_borrowed_","_");} {print $0}' $ ls *rs | xargs gawk -i inplace "/impl.*VirtualMethods/{in_vm=1; sub(/<'a>/,\"\");sub(/&'a /,\"\")} /^}\$/{in_vm=0;} in_vm{\$0=gensub(/\\*self([^.])/,\"self\\\1\",\"g\"); sub(/from_borrowed_ref/,\"from_ref\")} {print}" ```
* sort all usesJohann Tuffe2015-08-201-6/+6
|
* Auto merge of #7006 - Wafflespeanut:script_cleanup, r=jdmbors-servo2015-08-151-2/+3
|\ | | | | | | | | | | | | | | | | | | Splitting ScriptMsg into various enums... ... for #3734, which is also one of the oldest issues. (/cc @jdm) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7006) <!-- Reviewable:end -->
| * Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-2/+3
| |
* | Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-1/+1
|/ | | | closes #7197
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-5/+7
|
* Use static atoms in HTMLFormElementDavid Zbarsky2015-07-311-12/+8
|
* Remove usage of the deprecated OwnedAsciiExtSimon Sapin2015-07-301-1/+0
|
* Upgrade to SM 39Michael Wu2015-06-191-32/+35
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-3/+9
| | | | Part of https://github.com/servo/servo/issues/6041
* Make HTMLFormElement name attribute use an atomAnthony Ramine2015-05-141-6/+23
|
* Use HTMLDataListElementCast in HTMLFormElement.Ms2ger2015-05-141-2/+3
|
* Implement Clone for Copy types.Ms2ger2015-04-281-5/+5
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Fix some no_move errorsManish Goregaokar2015-04-281-1/+1
|
* Remove as_slice() calls from script.Ms2ger2015-04-261-10/+10
|
* Update some URLs.Ms2ger2015-04-141-30/+30
| | | | | The HTML spec's division into pages is not stable, so it is safer to use the URL without a specific page (which will redirect).
* Use a simple Temporary value in TreeIteratorAnthony Ramine2015-04-131-10/+11
|
* Hold a Temporary in AncestorIteratorAnthony Ramine2015-04-071-3/+8
|
* First part of refactoring constellation to support iframe navigation.Glenn Watson2015-03-171-1/+1
| | | | | | | | | The history is now recorded per frame, but needs to be exposed in a followup PR. Also fixes a race condition that occurs loading iframes under heavy CPU load. This ensures that iframes never do a reflow / layout until they have a valid window size set from their parent frame.
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-1/+1
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Fixing Intermittent failure in pages with timersPrabhjyot Singh Sodhi2015-02-221-1/+1
| | | | Fixes #4923
* Fix some warnings in script.Ms2ger2015-02-121-1/+1
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-1/+1
|
* Import msg as msg rather than servo_msg.Ms2ger2015-02-101-1/+1
|
* Make Document::url return the page's URL to avoid stale URLs after redirects.Josh Matthews2015-02-041-1/+1
|
* Set the Content-Type header when submitting a urlencoded form.Josh Matthews2015-02-041-2/+9
|
* Initialize trusted-ness of DOM events properlyGilles Leblanc2015-02-031-4/+2
| | | | Fixes #3740
* activation behavior for Button type Submityodalee2015-02-031-2/+25
|
* formcontrol trait to element traityodalee2015-02-031-5/+2
| | | | | | mutable function and reset function in formcontrol move into trait of single element currently only TextArea element and Input element
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-26/+31
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-6/+7
| | | | into_string has been removed from Rust.
* Fix `variable does not need to be mutable` warningMatthew Rasmus2015-01-081-1/+1
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-0/+5
|
* auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyukibors-servo2015-01-041-2/+2
|\ | | | | | | In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
| * Qualify hyper enums.Ms2ger2015-01-041-2/+2
| |
* | auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2gerbors-servo2015-01-041-15/+16
|\ \ | |/ |/|
| * Add HTMLElementTypeId enum (fixes #3625)Megha Gupta2015-01-021-15/+16
| |
* | Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-12/+12
|/ | | | This changes those calls that were already sound.