aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* layout: Load Web fonts asynchronously.Patrick Walton2015-09-271-0/+11
| | | | | | Improves page load times significantly. Closes #7343.
* script: Stop copying the document URL.Patrick Walton2015-09-241-1/+1
|
* Prevent crash trying to freeze script task with no page.James Graham2015-09-241-0/+5
| | | | | | | | | This fixes a crash resulting from a race between loading an initial document and navigating to a subsequent document. If the navigation happens before the initial document has had a chance to create its root page, we crash trying to unwrap a None. Note that the are likely further similar timing issues with more complex sequences of navigation and history manipulation.
* Add preserveWrapperCallback (fixes #7218)Manish Goregaokar2015-09-241-0/+3
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-27/+25
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-34/+30
| | | | This merges import blocks that were reported by tidy as unmerged.
* Auto merge of #7645 - nox:omtc-types, r=Ms2gerbors-servo2015-09-161-57/+30
|\ | | | | | | | | | | | | | | | | | | Introduce structs for compositing and script task constructors' arguments Extracted from @pcwalton's #4271. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7645) <!-- Reviewable:end -->
| * Introduce InitialScriptStateAnthony Ramine2015-09-161-57/+30
| |
* | Emit markers for all events, not just UI events.Ms2ger2015-09-161-69/+3
|/
* Auto merge of #7547 - connorimes:move_script_profiling, r=jdmbors-servo2015-09-081-54/+32
|\ | | | | | | | | | | | | | | | | | | Combine script profiling with profile crates. Fixes #7514. The script crate had its own built-in profiling which was basically doing the same thing as the profile crate. This wraps the internal profiling around the main profile functionality. Script-related tasks are now added to the ProfilerCategory enum. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7547) <!-- Reviewable:end -->
| * Combine script profiling with profile crates. Fixes #7514.Connor Imes2015-09-041-54/+32
| |
* | Remove needless returnsManish Goregaokar2015-09-041-1/+1
|/
* Auto merge of #7452 - nox:cleanup-attributes, r=noxbors-servo2015-09-021-2/+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-2/+1
| | | | | | | | The later only borrows the attribute, without copying its value as a string.
* | Implement viewport functions for window #1718farodin912015-09-021-1/+1
|/
* Send the start and end half of a TimelineMarker to the devtools ↵Ms2ger2015-08-281-8/+7
| | | | PullTimelineMarkers thread together.
* Time distribution across script event categories.benshu2015-08-281-25/+142
|
* 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-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* sort all usesJohann Tuffe2015-08-201-18/+18
|
* Auto merge of #7260 - notriddle:issue_7169, r=Ms2gerbors-servo2015-08-191-9/+18
|\ | | | | | | | | | | | | | | | | | | Navigate to a new page even when there's a fragment. Closes #7169 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7260) <!-- Reviewable:end -->
| * Navigate to a new page even when there's a fragment.Michael Howell2015-08-181-9/+18
| | | | | | | | Closes #7169
* | Cleanup script_taskManish Goregaokar2015-08-181-5/+5
| |
* | Replace uses of `for foo in bar.iter()`,João Oliveira2015-08-181-6/+6
|/ | | | | and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
* Fix panics in the script_task memory reporter.Nicholas Nethercote2015-08-171-14/+17
| | | | These are caused by page_root being empty.
* Fix existing syntactics nits.Josh Matthews2015-08-161-10/+10
|
* without the explicit dereferencingvectorijk2015-08-161-4/+4
|
* dereference via * instead of RefMutvectorijk2015-08-161-6/+6
|
* remove ScriptListenervectorijk2015-08-161-9/+10
| | | | ref #7175
* Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-67/+114
|
* Auto merge of #7132 - jdm:docenum, r=ms2gerbors-servo2015-08-131-2/+2
|\ | | | | | | | | | | | | | | | | | | Document the use and meaning of the devtools control messages. Fixes … …#6922. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7132) <!-- Reviewable:end -->
| * Simplify devtools frame marker notification. Record each frame tick based on ↵Josh Matthews2015-08-121-2/+2
| | | | | | | | a single message sent from the script task that ticked.
* | Merge the fragment handling into handle_navigate.Ms2ger2015-08-121-19/+13
| | | | | | | | This is handled in the 'navigate' algorithm in the specification.
* | Store a Sender<ConstellationControlMsg> in Window.Ms2ger2015-08-121-2/+2
| |
* | Store a Sender<ConstellationControlMsg> in ScriptTask.Ms2ger2015-08-121-5/+5
|/
* Auto merge of #7009 - connorimes:remove-confusing-typedefs, r=Ms2gerbors-servo2015-08-071-2/+2
|\ | | | | | | | | | | | | | | | | | | Remove typedefs DevtoolsControlChan and DevtoolsControlPort <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7009) <!-- Reviewable:end -->
| * Remove typedefs DevtoolsControlChan and DevtoolsControlPort. Fixes #6923.Connor Imes2015-08-051-2/+2
| |
* | Auto merge of #7003 - notriddle:master, r=Ms2gerbors-servo2015-08-071-1/+52
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | GC pause reporting Closes #6968. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7003) <!-- Reviewable:end -->
| * | GC profiling.Michael Howell2015-08-061-1/+52
| | | | | | | | | | | | | | | | | | * Closes #6968. * Test case for GC profiling thanks to @jdm!
* | | Create a run_with_memory_reporting method to reduce the boilerplate ↵Ms2ger2015-08-061-18/+10
|/ / | | | | | | associated with registering memory reporters.
* / Update Animation Timing links and terminology to the HTML specification.Ms2ger2015-08-051-1/+1
|/
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-2/+20
| | | | frame treese in script tasks.
* Persuading devtools to communicate with the workers; r=jdmRavi Shankar2015-08-011-6/+12
|
* script: Fix test failures.Patrick Walton2015-07-311-4/+5
|
* script: Make the resource task communication use IPC channels.Patrick Walton2015-07-311-14/+10
|
* net: Use a thread for each `AsyncResponseTarget` to avoid having to sendPatrick Walton2015-07-311-2/+9
| | | | trait objects across process boundaries.
* net: Make most of the resource task messages serializable.Patrick Walton2015-07-311-7/+13
|
* Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapinbors-servo2015-07-301-1/+1
|\ | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30) This builds and passes unit tests. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850) <!-- Reviewable:end -->
| * Fix deprecation warningsSimon Sapin2015-07-241-1/+1
| |
* | Implement Msg::Status with serialized url upon mouseoverBruno de Oliveira Abinader2015-07-301-1/+39
| | | | | | | | | | | | | | Credits for Mike Blumenkrantz (@zmike), I just rebased against trunk and fixed the url serialization. Fixes #6178.