aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
Commit message (Collapse)AuthorAgeFilesLines
* remove page and move functionality to browing contextConnor Brewster2016-05-111-134/+0
| | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* Auto merge of #8481 - frewsxcv:iterablepage-iter, r=Ms2gerbors-servo2015-11-121-5/+7
|\ | | | | | | | | | | | | | | Simplify IterablePage::find <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8481) <!-- Reviewable:end -->
| * Simplify IterablePage::findCorey Farwell2015-11-121-5/+7
| |
* | Auto merge of #8482 - frewsxcv:no-mut, r=Ms2gerbors-servo2015-11-121-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove unnecessary '*_mut' methods <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8482) <!-- Reviewable:end -->
| * | Remove unnecessary '*_mut' methodsCorey Farwell2015-11-121-2/+2
| |/
* / Cleanup PageIterator::nextCorey Farwell2015-11-121-8/+4
|/
* Removed JS::root Fixes #8251nxnfufunezn2015-10-311-2/+2
|
* Update script to work with lint changesManish Goregaokar2015-10-161-0/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-1/+0
| | | | This merges import blocks that were reported by tidy as unmerged.
* Remove helper traitsAnthony Ramine2015-08-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Replace uses of `for foo in bar.iter()`,João Oliveira2015-08-181-2/+2
| | | | | and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-2/+2
| | | | frame treese in script tasks.
* Make enum/fn part of unrooted_must_root handle type parametersManish Goregaokar2015-07-221-1/+1
|
* Make struct part of unrooted_must_root handle type parametersManish Goregaokar2015-07-221-0/+1
|
* Remove url field from PageWill Huxtable2015-07-111-8/+1
|
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-2/+2
| | | | fixes #6524
* Upgrade to SM 39Michael Wu2015-06-191-9/+5
|
* Implement a DocumentLoader type that tracks pending loads and notifies the ↵Josh Matthews2015-05-111-0/+4
| | | | script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-1/+0
|
* Remove Temporary::new()Anthony Ramine2015-04-281-2/+2
| | | | Temporary::from_rooted() now takes an Assignable value.
* Use Page::window_for_script_deallocation in ScriptMemoryFailsafejosiahdaniels2015-04-121-1/+1
| | | | Also: Rename window_for_script_dealloation to window_for_script_deallocation
* Remove unused subpage field from pageGlenn Watson2015-03-111-6/+2
|
* Documentation and cleanup.Josh Matthews2015-03-031-7/+11
|
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-370/+19
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Split page load into separate network and parsing stages. Delay Page ↵Josh Matthews2015-03-031-7/+8
| | | | creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network.
* Fixes a number of issues with setting hover state, and simplifies the code.Glenn Watson2015-02-191-14/+14
| | | | | | | | Specifically: - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs. - Send the mousemove event after all the hover states have been set correctly. - Correctly handle removing hover state from elements when mouse is not over any elements. - Correctly detect when a reflow is required (previous code failed in several edge cases).
* Use if-let in join_layout.Ms2ger2015-02-121-15/+11
|
* Cleanup join_layout a little bit.Ms2ger2015-02-121-16/+14
|
* Import net as net rather than servo_net.Ms2ger2015-02-101-2/+2
|
* Import msg as msg rather than servo_msg.Ms2ger2015-02-101-3/+3
|
* Add console message support to devtools. Does not actually cause logging to ↵Sagar Muchhal2015-02-051-6/+12
| | | | occur in the remote console.
* Add flag to send live updates to devtools.Sagar Muchhal2015-02-051-0/+5
|
* add `unwrap` to `send/recv` callsAlexandru Cojocaru2015-02-031-3/+3
|
* Adds borrow_for_script_deallocation and unsafe_mut_js_info method to avoid ↵Diego Marcos2015-01-301-0/+4
| | | | | | 'DOMRefCell already mutably borrowed' messages. This is just a temporary fix until the Rust standard library allows borrowing already-borrowed RefCell values during unwinding. It also removes LiveDOMReferences destructor that it's a no-op but it contains an assert that was being violated causing an endless cycle of destructor calls ending up in a stack overflow.
* Replace the 'GlobalStaticData' free function by a 'new' static member function.Ms2ger2015-01-291-1/+1
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-4/+4
| | | | | | | | 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.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-7/+10
|
* Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-10/+10
| | | | This changes those calls that were already sound.
* script: Remove glob imports added in #4405Tetsuharu OHZEKI2014-12-191-7/+7
|
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-5/+5
|
* script: Improve dirty propagation and fix script-layout synchronization.Patrick Walton2014-12-151-90/+63
| | | | | This fixes race conditions whereby layout and script could be running simultaneously.
* Reindent in should_move_clip_rect.Ms2ger2014-12-111-3/+3
|
* Avoid some Option::unwrap calls in page.rs.Ms2ger2014-12-111-10/+8
|
* ports/cef: Implement accelerated compositing for the CEF port.Patrick Walton2014-12-101-5/+12
|
* Cleanup PageIterator::next.Ms2ger2014-12-101-8/+8
|
* Remove comment that hasn't been true since Document became a Node.Ms2ger2014-12-101-2/+0
| | | | The panic was removed in 99a36cbeb6077976861d94b7af16e9e57994a14d.
* Cleanup Page::remove.Ms2ger2014-12-101-15/+7
|
* `should_move_clip_rect` is a bare functionTamir Duberstein2014-12-051-19/+19
| | | | | `self` is never used, so there's no need for this to be a method. Fixes #4261.
* Implement Window.sessionStorage: Storage Task, Storage Methods (excluding ↵nkdalmia2014-12-031-0/+6
| | | | Storage event, QuotaExceededError)
* Use RefCell in DOMRefCell to reduce duplicated code.Ms2ger2014-11-141-2/+2
|