aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* moved IFrameLoadInfo and IFrameSandboxState to script_traitsFernando Martins2016-01-111-3/+4
|
* Auto merge of #8506 - nox:finish-ranges, r=dzbarskybors-servo2015-12-261-5/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Properly propagate changes when range or trees are mutated Does the same thing as #6817, but storing Range instances directly in their start and end containers. Cc @dzbarsky <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506) <!-- Reviewable:end -->
| * Introduce UnbindContextAnthony Ramine2015-12-131-5/+3
| | | | | | | | | | This holds the context that describes the original node that was removed from a tree when unbinding from a tree.
* | Auto merge of #9030 - askobara:refactoring-add-htmlformelement-fire_event, ↵bors-servo2015-12-221-7/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=Manishearth Add helper method HTMLFormElement::fire_event Fixes #8777 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9030) <!-- Reviewable:end -->
| * | Implement EventTarget::fire_simple_event and ↵Arthur Skobara2015-12-221-7/+3
| | | | | | | | | | | | EventTarget::fire_simple_event_params
* | | Precompute width & height attribute values on <iframe>Corey Farwell2015-12-221-6/+9
|/ /
* | Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert().Simon Martin2015-12-191-1/+10
| |
* | Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-3/+2
| |
* | Auto merge of #8618 - paulrouget:reload, r=jdmbors-servo2015-12-171-3/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | Browser API: implement iframe.reload() fixes #8575 The implementation is naive, and doesn't support the `hardreload` parameter. And for the test, I'm not sure how else I can test the reload. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8618) <!-- Reviewable:end -->
| * Browser API: implement iframe.reload()Paul Rouget2015-12-081-3/+8
| |
* | Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-2/+2
| | | | | | | | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* | Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-1/+1
|/
* Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwaltonbors-servo2015-12-041-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add slow path for hit testing of iframe behind positioned content layer Fixes browser.html blocker #8759. r? @pcwalton This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. If the script task discovers that a mouse event should have been dispatched to an iframe, it bounces the event back to the constellation to be forwarded to the correct pipeline. This isn't terribly slow (on the slow path, it adds one extra round-trip message between script and constellation), but if we want to optimize this better we could instead replace the compositor's layer hit testing with display list hit testing in the paint task. This would be a more complicated change that I think we should save for a follow-up. This only fixes mouse input for now. A basically-identical change will be needed for touch-screen input, whether we stick with this approach or switch to the paint task. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8785) <!-- Reviewable:end -->
| * If a mouse event is targeting an iframe, forward it to the iframe's inner windowMatt Brubeck2015-12-031-0/+5
| | | | | | | | | | | | | | | | Fixes #8759. This adds a slow path for cases where the compositor's layer-based hit testing is incorrect. To optimize for this case, we could instead replace the layer hit testing with display-list hit testing done in the paint task.
* | Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+2
|/
* Dispatch load events for cross origin iframes. Resolves #6672.Josh Matthews2015-11-301-1/+24
|
* Compute attribute name atoms at compile-time.Eli Friedman2015-11-271-2/+2
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-5/+5
| | | | | | | | | | | 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.
* Implement 'url!(..)' macroCorey Farwell2015-11-211-1/+1
| | | | | | https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137
* Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-1/+1
|
* [Browser API] implement mozbrowsericonchange eventPaul Rouget2015-11-141-4/+41
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-2/+1
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Use the conversion traits from js.Ms2ger2015-11-121-10/+13
|
* Move unsafe layout calls onto LayoutJS.Eli Friedman2015-11-091-24/+24
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | 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-7/+7
|
* merge from masterrohan.prinja2015-11-031-2/+2
|\
| * Use 'atom!' macro for known static stringsCorey Farwell2015-10-301-2/+2
| |
* | more refactoringrohan.prinja2015-10-301-1/+1
| |
* | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+2
|/
* Clean up the cast callsAnthony Ramine2015-10-211-18/+9
|
* Introduce trait CastableAnthony Ramine2015-10-211-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|
* Explicitly customise flags of new nodes where neededAnthony Ramine2015-10-151-5/+3
| | | | | | | 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-141-15/+3
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-7/+8
|
* Convert RemoveIFrame message to use pipeline id.Glenn Watson2015-10-121-18/+15
|
* Implement HTMLIFrameElement::pipeline_id on LayoutJS<HTMLIFrameElement>.Ms2ger2015-10-081-3/+12
|
* Remove constellation round trip for subpage mapping in compositor.Glenn Watson2015-10-071-0/+5
| | | | | | This makes use of the new functionality that allows iframes to generate their own pipeline IDs in order to remove any knowledge of subpage ids from the compositor. (This is the first of several commits removing subpage from parts of servo).
* Auto merge of #7882 - anthgur:consistent-enum-use, r=Ms2gerbors-servo2015-10-061-5/+4
|\ | | | | | | | | | | | | | | | | | | Refactor Error enum usage to consistently be qualified Closes #7869 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7882) <!-- Reviewable:end -->
| * Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-5/+4
| |
* | Make it possible for iframes to create their own pipeline ID.Glenn Watson2015-10-061-6/+16
|/ | | | | | | | This doesn't change any functionality, but it's the first step towards removing SubpageId. Adding this change now will allow us to gradually change over code referencing subpage id rather than in one massive PR. Introduces a namespace for pipeline ID generation - there is a namespace for the constellation thread, and one per script thread.
* Enable resetable and String prefs.James Graham2015-09-251-1/+1
| | | | | | | | | This allows both boolean and string-type preferences. It also implements a system where prefs that are read from a configuration file can be reset back to their initial value, which is useful in a number of cases e.g. when running tests to ensure that each test starts with the same values for the prefs.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-4/+4
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-8/+6
| | | | This merges import blocks that were reported by tidy as unmerged.
* Update prefs API to return an Option<bool>.James Graham2015-09-041-1/+1
| | | | | This allows for situations where there is no reasonable default to apply for the pref value e.g. when we are just listing values
* renaming tokens(), atom() and uint() and rewriting to return or panicPrabhjyot Singh Sodhi2015-09-021-1/+1
|
* Auto merge of #7452 - nox:cleanup-attributes, r=noxbors-servo2015-09-021-29/+16
|\ | | | | | | | | | | | | | | | | | | 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 -->
| * Introduce VirtualMethods::attribute_mutated()Anthony Ramine2015-09-021-29/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces before_remove_attr(), after_remove_attr() and after_set_attr(). The virtual method takes the mutated attribute and an AttributeMutation value to disambiguate between "attribute is changed", "attribute is added" and "attribute is removed". In the case of "attribute is changed", the mutation value contains a reference to the old value of the mutated attribute, which is used to unregister outdated named elements when the "id" attribute is changed on an element. This greatly simplifies the handling of attributes, which in many cases don't have any specific behaviour whether they are removed or changed or added. It also fixes a few bugs where things were put in before_remove_attr() instead of after_remove_attr() (e.g. when removing an href attribute from a base element). A few helper functions in Element were also renamed and made private.
* | Enforce linking to spec for method implementations via macrosCorey Farwell2015-08-311-2/+4
|/