aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Generate all Derived implementations in codegenAnthony Ramine2015-10-141-11/+2
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-7/+8
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Add obsolete reflecting attributes on <a> and <link>Corey Farwell2015-09-131-0/+24
| | | | | From my understanding, setting any of these will not affect any presentational hints for the elements
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-4/+4
|
* Remove AttributeHandlersAnthony Ramine2015-08-271-1/+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-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 to_borrowed_ref, fix ActivatableManish Goregaokar2015-08-271-5/+5
|
* 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-1/+1
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Avoid a panic when clicking a link whose href is unparsable.Ms2ger2015-08-091-1/+4
|
* Introduce a follow_hyperlink function to implement the "follow a hyperlink" ↵Ms2ger2015-08-091-18/+33
| | | | algorithm.
* Inline Document::load_anchor_href into its only caller.Ms2ger2015-08-071-1/+9
|
* Add spec linksBogdan Cuza2015-07-281-0/+3
|
* Only make a elements activatable when they have an href attribute.Ms2ger2015-07-071-8/+12
| | | | | | | | | | | | | | | | | I've tested this manually, by clicking on the "baz" in code like ```js var a = document.body.appendChild(document.createElement("a")); a.textContent = "bar "; a.setAttribute("href", "http://www.yahoo.com"); var b = a.appendChild(document.createElement("a")); b.textContent = "baz"; ``` Before this change, the click is trapped by `b` and ignored there; after this change, the click passes through `b` to `a`, where it is handled. Unfortunately, I haven't found a way to write an automated test.
* Simplify the string handling in HTMLAnchorElement::activation_behavior.Ms2ger2015-07-031-7/+6
|
* Remove an avoidable null-check from HTMLAnchorElement::activation_behavior.Ms2ger2015-07-031-1/+1
|
* Remove HTMLAnchorElement::handle_event.Ms2ger2015-07-031-9/+0
| | | | It is equivalent to the default implementation.
* Upgrade to SM 39Michael Wu2015-06-191-19/+18
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-5/+13
| | | | Part of https://github.com/servo/servo/issues/6041
* Rename Au methods with f32/f64 instead of frac32/frac/subpxSimon Sapin2015-05-051-2/+2
|
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+1
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Change MutNullableJS<T> to MutNullableHeap<JS<T>>Anthony Ramine2015-04-271-2/+3
|
* Don't link to specific WHATWG multipage pageCorey Farwell2015-04-161-5/+5
| | | | | | | | | | | | | | "Links to the multipage version of the specification are unfortunately likely to break over time." -- https://html.spec.whatwg.org/multipage/asefij.html This commit removes all references to the specific pages when viewing WHATWG using multipage mode. I went through all these links and they redirect fine. Regex used to generate this commit: `s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`
* 4873 - Support the image map processing for <img ismap/> inside an <a/>Shing Lyu2015-04-141-7/+27
|
* Make Element::get_attribute() take its namespace by referenceAnthony Ramine2015-04-061-1/+1
|
* Implementation of step 1 activation behavior of htmlanchorelement (fixes #4871)Keith Yeung2015-03-021-2/+5
| | | | Fixed issues
* Bug 4236: Moved anchorelement click event to activation behaviourShing Lyu2015-02-211-26/+45
|
* 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.
* Don't shadow lifetimes in script.Ms2ger2015-01-281-1/+1
|
* auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2gerbors-servo2015-01-041-3/+3
|\
| * Add HTMLElementTypeId enum (fixes #3625)Megha Gupta2015-01-021-3/+3
| |
* | Fix obsolete format traits.Ms2ger2015-01-021-1/+1
| | | | | | | | They are to be removed from the language in the next rust upgrade.
* | Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-2/+2
|/ | | | This changes those calls that were already sound.
* auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallisterbors-servo2014-12-271-7/+0
|\ | | | | | | | | | | Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector. A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
| * Remove extra spacesManish Goregaokar2014-12-271-1/+0
| | | | | | | | Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
| * Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+0
| | | | | | | | | | | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* | AttrValue's s/from_tokenlist/from_serialized_tokenlist/Bruno de Oliveira Abinader2014-12-261-1/+1
|/
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-5/+5
|
* Use or_init where appropriate.Ms2ger2014-12-061-6/+3
|
* Implement HTML{Anchor,Area,Link}Element.relList.Achal Shah2014-11-231-3/+25
| | | | https://github.com/servo/servo/issues/3994
* Use #[dom_struct] everywhereManish Goregaokar2014-10-161-3/+1
|
* script: Use atom comparison in more places, especially for attributes.Patrick Walton2014-10-141-1/+1
| | | | 75% improvement in style recalc for Guardians of the Galaxy.
* Privatize EventTarget and EventListenerEntryTim Taubert2014-10-131-1/+1
|
* Privatize InheritTypesTim Taubert2014-10-131-1/+2
|
* Take the prefix from createElementNS into account for HTML elementsGilles Leblanc2014-10-061-4/+4
| | | | Fixes #3139
* Use string-cache's Namespace typeKeegan McAllister2014-09-291-2/+1
|