aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/query.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge AuExtensionMethods and LocalToCss.Ms2ger2016-06-231-1/+1
|
* Move LayoutThreadData to query.rs.Ms2ger2016-06-201-2/+49
|
* Move LayoutRPC to script_layout_interface.Ms2ger2016-06-201-3/+5
|
* Move LayoutNode and related traits to script_layout_interface.Ms2ger2016-06-201-1/+2
|
* Introduce a ThreadSafeLayoutNodeHelpers trait for methods to stay in layout.Ms2ger2016-06-201-1/+1
|
* use less repetitive namemrmiywj2016-06-121-1/+1
|
* script: When using WebRender, keep the DOM-side scroll positions forPatrick Walton2016-06-101-1/+3
| | | | | | | elements with `overflow: scroll` up to date, and take them into account when doing hit testing. Closes #11648.
* Remove empty lines following braces.Josh Matthews2016-05-271-1/+0
|
* Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
|
* Remove ConstellationChan.Ms2ger2016-05-191-3/+1
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Removed unused importsPer Lundberg2016-05-151-1/+1
| | | | This fixes #11185.
* layout: Stop storing PrecomputedStyleData in LayoutNodeEmilio Cobos Álvarez2016-04-291-5/+5
| | | | Use the SharedStyleContext instead.
* Implement ScrollTop and ScrollLeft getters:Zhen Zhang2016-04-191-2/+28
| | | | | | | | Add new compositor message to get scroll_offset; Add new layout query for computed value of overflow-x/y; Implement layer_id method for ThreadSafeLayoutNode; Add new layout query for layer_id; Implement script interface for getting scrollTop and scrollLeft, as well as relavant helper functions.
* Renamed style structs.Per Lundberg2016-04-081-2/+2
| | | | The idea is to rename all style structs from Foo to ServoFoo, as described out in #10185.
* Correct x and y input for origin_rectDaniel Robertson2016-04-061-1/+1
| | | | | Fix error in construction of the origin_rect for UnioningFragmentBorderBoxIterator.
* Implement Document#elementsFromPointRizky Luthfianto2016-04-031-0/+19
|
* Implement ::selection pseudo-elementEmilio Cobos Álvarez2016-03-301-5/+6
|
* Renamed TComputedValues to ComputedValuesPer Lundberg2016-03-291-1/+1
| | | | This is a followup to #10210, and a continuation of #10185.
* Parameterize the rest of the style system on TNode.Bobby Holley2016-03-241-0/+1
|
* Get the fundamentals of the HTMLDetailsElement rendering stuff working.Michael Howell2016-03-191-0/+2
| | | | | | Still need to implement the style invalidation. Part of #9395
* Remove lifetimes from LayoutNode and friends.Bobby Holley2016-03-141-8/+8
|
* Add scrollWidth/Height to element interfaceDaniel Robertson2016-03-111-1/+128
| | | | | Add the scrollWidth and scrollHeight extensions to the element interface.
* Suppress reflows before RefreshTick or FirstLoadJack Moffitt2016-03-031-27/+19
| | | | | | | | | | | | | This fixes a bug where partially loaded content is displayed to the user before it should be, usually before stylesheets have loaded. This commit supresses reflows until either FirstLoad or RefreshTick, whichever comes first. Unfortunately, hit_test and mouse_over did not do reflows if they were necessary, and so by suppressing the initial spurious reflows, these methods started to panic without a display list to query. This patch also transforms these into queries similar to the other existing queries.
* script/layout: Refactor mouse_over since it now basically uses hit_testEmilio Cobos Álvarez2016-03-021-28/+9
|
* script: Fix MouseOver handlingEmilio Cobos Álvarez2016-03-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we only query for the topmost node, and apply the hover state to all of the parent elements. This fixes things like #9705, where the hover state was applied only to the children. This also makes us more conformant with other browsers in the case of taking in account margins and paddings. For example, prior to this PR, when your mouse was over the inner element, in the bottom part, `hover` styles didn't apply to the parent. ```html <style> div { padding: 10px; margin: 10px; height: 15px; background: blue; } div:hover { background: red; } </style> <div> <div></div> </div> ``` Fixes #9705
* Flatten display list structureMartin Robinson2016-03-011-30/+19
| | | | | | | | | | | | | | | | | | | | | | | Instead of producing a tree of stacking contexts, display list generation now produces a flat list of display items and a tree of stacking contexts. This will eventually allow display list construction to produce and modify WebRender vertex buffers directly, removing the overhead of display list conversion. This change also moves layerization of the display list to the paint thread, since it isn't currently useful for WebRender. To accomplish this, display list generation now takes three passes of the flow tree: 1. Calculation of absolute positions. 2. Collection of a tree of stacking contexts. 3. Creation of a list of display items. After collection of display items, they are sorted based upon the index of their parent stacking contexts and their position in CSS 2.1 Appendeix E stacking order. This is a big change, but it actually simplifies display list generation.
* Completed implementation of devtools' `getLayout`.benshu2016-02-241-1/+21
|
* Move util::logical_geometry to styleAnthony Ramine2016-02-181-1/+1
|
* Move util::cursor to style_traitsAnthony Ramine2016-02-161-1/+1
|
* Update rust-selectorsEmilio Cobos Álvarez2016-02-031-1/+1
| | | | | This commits updates rust-selectors to use the generic parser, and as such it moves the element state into the style crate.
* task -> threadrohan.prinja2016-01-101-3/+3
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-2/+2
|
* Auto merge of #9051 - bholley:split_style_and_layout_wrappers, r=SimonSapinbors-servo2015-12-301-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
| * Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | This patch does a number of things, unfortunately all at once: * Hoists a large subset of the layout wrapper functionality into the style system. * Merges TElementAttributes into the newly-created TElement. * Reorganizes LayoutData by style vs layout, and removes LayoutDataShared. * Simplifies the API for borrowing style/layout data. There's still more to do to make the style system usable standalone, but this is a good start.
* | Separate script and layout messages, issue #8843Joe Kachmar2015-12-261-1/+1
|/
* Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-091-1/+1
|
* Replaced ZERO_POINT with Point2D::zero()Alexander Mankuta2015-12-031-3/+2
|
* Generalize the rest of layout to operate on generic Layout*.Bobby Holley2015-11-281-23/+18
| | | | | | | There wasn't a good way to split this up, unfortunately. With this change, the only remaining usage of the Servo-specific structures is in layout_task, where the root node is received from the script task. \o/
* 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.
* Auto merge of #8639 - bholley:generalize_wrappers2, r=pcwaltonbors-servo2015-11-241-3/+3
|\ | | | | | | | | | | | | | | Use associated types for layout wrapper trait, and generalized ThreadSafeLayoutFoo <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8639) <!-- Reviewable:end -->
| * Rename ThreadSafeLayoutFoo to ServoThreadSafeLayoutFoo and ↵Bobby Holley2015-11-211-3/+3
| | | | | | | | TThreadSafeLayoutFoo to ThreadSafeLayoutFoo.
| * Hoist exported ThreadSafeLayoutFoo functionality into traits.Bobby Holley2015-11-211-1/+1
| |
* | Auto merge of #8642 - jmr0:master, r=jdmbors-servo2015-11-221-17/+17
|\ \ | |/ |/| | | | | | | | | | | | | | | making internal pub enums, functions, and structs private Refactoring to fix #8620 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8642) <!-- Reviewable:end -->
| * making internal pub enums, functions, and structs privatejmr02015-11-211-17/+17
| |
* | Pass ServoLayoutNode to query functions.Ms2ger2015-11-201-27/+15
|/ | | | | | This means we only deal with TrustedNodeAddress in LayoutTask::handle_reflow, which is where the safety of this usage is guaranteed (by the ScriptReflow destructor).
* refactor(layout_task.rs): move some functions to query.rsRizky Luthfianto2015-11-191-1/+289
|
* Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-161-1/+1
|
* Remove the unused arguments to hit_test and mouse_over.Ms2ger2015-11-161-3/+2
| | | | | I don't think this code is called when there is no document element, but I added assertions to make sure we notice in case I was wrong.
* Allow retrieving width/height for non-positioned elementsDavid Zbarsky2015-11-031-3/+4
|
* Return the result from process_content_box_request.Ms2ger2015-10-261-6/+6
|