aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-1/+1
|\
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-3/+3
|/
* Implement HTMLAnchorElement.rel getter and setterYing-Ruei Liang(KK)2017-03-301-3/+9
| | | | Signed-off-by: Ying-Ruei Liang(KK) <thumbd03803@gmail.com>
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* script: Rename bounding_content_box to bounding_content_box_or_zero.Emilio Cobos Álvarez2017-01-181-1/+1
| | | | And make bounding_content_box preserve whether the element is rendered.
* dom: Refactor htmlanchorelement.rs layout query for an existing helper.Emilio Cobos Álvarez2017-01-171-3/+2
|
* HTML image map supportbachar2017-01-111-1/+1
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Remove redundant url clonesPu Xingyu2016-11-181-1/+1
| | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-2/+2
|
* Implement HTMLAnchorElement.originAnthony Ramine2016-11-081-0/+17
|
* Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-1/+1
|
* Update to string-cache 0.3Simon Sapin2016-11-031-14/+14
|
* Bring referrer policy delivery to <a> and <link> via rel attributeYing-Ruei Liang(KK)2016-09-201-3/+13
|
* Replace current session entry for reloadsConnor Brewster2016-09-191-1/+1
|
* Made fixes for PR.Arthur Marble2016-09-181-18/+18
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-22/+22
|
* Refactored metaKey to meta_key where possibleArthur Marble2016-09-171-1/+1
|
* This commit refactors altKey to alt_key when possible.Arthur Marble2016-09-171-1/+1
|
* This commit refactors shiftKey to shift_key where possible.Arthur Marble2016-09-171-1/+1
|
* This commit refactors ctrlKey to ctrl_key wherever possible.Arthur Marble2016-09-171-1/+1
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Refactor `util::prefs` operations to be methods on static struct.Corey Farwell2016-07-021-2/+2
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-2/+1
|
* Use base_url instead of url when parsing hrefOrvar Segerström2016-06-061-1/+1
| | | | | | spec: https://html.spec.whatwg.org/multipage/infrastructure.html#resolving-urls This change makes more url parsing tests pass.
* Auto merge of #11542 - asajeffrey:mozbrowser-send-opentab-event, r=paulrougetbors-servo2016-06-021-4/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fire a mozbrowseropenwindow event when an html anchor has a non-self target <!-- Please describe your changes on the following line: --> When an html anchor has a non-self target, fire a `mozbrowseropenwindow` event. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11539. - [X] These changes do not require tests because we don't have the infrastructure for mozbrowser testing yet. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/11542) <!-- Reviewable:end -->
| * Fire a mozbrowseropenwindow event when an html anchor has a non-self target.Alan Jeffrey2016-06-021-4/+24
| |
* | Support link target attributePaul Rouget2016-06-021-0/+6
|/
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-3/+2
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Fix panic from update_href in HTMLAnchorElementKeith Yeung2016-05-191-74/+106
|
* htmlanchorelement getter work before href setting is calledmrmiywj2016-05-181-1/+0
| | | | | | update tests rewrite it
* Avoid panics when using HTMLAnchorElement attribute settersMartin Broesamle2016-05-111-12/+11
| | | | | Fixes #10877. Includes new test for attribute getters and setters.
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-17/+14
|
* Use num-traits in script.Ms2ger2016-04-201-1/+1
|
* Implement HTMLHyperlinkElementUtils for HTMLAnchorElementJaydeep2016-03-241-0/+343
|
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-2/+1
|
* Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+2
|
* Compute attribute name atoms at compile-time.Eli Friedman2015-11-271-4/+4
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-1/+1
| | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* Added in-place mutation to DOMString.Alan Jeffrey2015-11-121-1/+1
| | | | | The methods which are currently implemented are the ones on String that are currently being used: string.push_str(...), string.clear() and string.extend(...). We may want to revisit this API.
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-2/+2
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-2/+2
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
|
* Clean up the cast callsAnthony Ramine2015-10-211-7/+4
|
* Introduce trait CastableAnthony Ramine2015-10-211-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-2/+2
|
* Explicitly customise flags of new nodes where neededAnthony Ramine2015-10-151-3/+2
| | | | | | | 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.