aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/storage.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-1/+1
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Use Option<T> to return from gettersAnthony Ramine2016-08-301-4/+2
| | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* Make task queue API usable from non-main threads.Josh Matthews2016-07-141-1/+2
|
* Move boxing to runnable initializationConnor Brewster2016-07-131-1/+1
|
* Make all task source runnables cancellableConnor Brewster2016-07-131-4/+3
| | | | Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
* Add event runnablesConnor Brewster2016-07-111-1/+1
| | | | Make tasks a wrapper over runnables
* Add name method to Runnable traitConnor Brewster2016-07-061-0/+2
|
* Combined DOMManipulationTask runnable variants into a single variantConnor Brewster2016-07-061-4/+4
|
* Clean up DOMManipulationTaskSourceKeith Yeung2016-06-021-0/+1
|
* Remove the IterableContext trait.Ms2ger2016-05-241-1/+0
| | | | It serves no purpose.
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Remove the pointless StorageThread alias.Ms2ger2016-05-201-3/+3
|
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-1/+2
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Removed unused importsPer Lundberg2016-05-151-2/+1
| | | | This fixes #11185.
* remove page and move functionality to browing contextConnor Brewster2016-05-111-4/+4
| | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* Remove extraneous script_chan parameter from Trusted::newKeith Yeung2016-04-281-3/+2
|
* Complete 'inefficient' FIXME by remove unnecessary clone.Corey Farwell2016-04-211-1/+5
|
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-1/+2
|
* Add task_source directoryKeith Yeung2016-03-101-5/+6
| | | | Use DOMManipulationTaskSource whenever possible
* Issue #9561 continued - renamed *_thread_source to *_task_source in ↵Kamil Muszyński2016-02-171-1/+1
| | | | global.rs and related files
* Remove unused imports in scriptKishor Bhat2016-01-171-1/+0
|
* Add global default method for Reflectable traitChad Kimes2016-01-111-6/+6
|
* Remove global field from StorageChad Kimes2016-01-101-9/+7
|
* task -> threadrohan.prinja2016-01-101-17/+19
|
* Remove from Trusted::new an unnecessary argumentArthur Skobara2015-12-121-2/+1
|
* Pass around event types as Atoms instead of StringsCorey Farwell2015-12-101-1/+1
| | | | | | `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.
* Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-061-1/+1
|
* Replaced DOMString by String in storage APIs.Alan Jeffrey2015-11-121-14/+17
|
* 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.
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-1/+1
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
|
* Clean up the cast callsAnthony Ramine2015-10-211-4/+1
|
* Introduce trait CastableAnthony Ramine2015-10-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implement a quota of 5MB per origin for localstorage and sessionstorageLouis Chan2015-10-091-6/+12
|
* Implement Storage::SupportedPropertyNamesMathieu Rheaume2015-10-041-2/+4
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Remove deprecated 'creator' WebIDL attributeCorey Farwell2015-09-211-4/+0
| | | | According to @Ms2ger, the 'creator' attribute was merged into 'setter'
* Add/update spec links for SupportedPropertyNames methodsCorey Farwell2015-09-201-5/+6
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-12/+12
|
* Remove helper traitsAnthony Ramine2015-08-271-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Initial implementation of ownPropertyKeys proxy handlerCorey Farwell2015-08-201-0/+5
| | | | | | | | | | | Generates `SupportedPropertyNames` on DOM structs that should implement it. Most of them are unimplemented now (which can be implemented in later PRs), with the exception of `HTMLCollection`. Also added a couple relevant WPT tests. Closes #6390 Closes #2215
* sort all usesJohann Tuffe2015-08-201-3/+3
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-5/+4
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Add spec linksBogdan Cuza2015-07-281-18/+25
|
* net: Convert the storage task to use IPC.Patrick Walton2015-07-261-6/+7
|
* Upgrade to SM 39Michael Wu2015-06-191-11/+10
|