Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Add support for canceling CSS transitions | Martin Robinson | 2020-04-22 | 1 | -0/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | This change adds support for canceling CSS transitions when a property is no longer transitionable or when an element becomes styled with display:none. Support for canceling and replacing CSS transitions when the end value changes is still pending. This change also takes advantage of updating the constellation message to fix a bug where transition events could be sent for closed pipelines. Fixes #15079. | |||||
* | | Make the rule tree actually threadsafe | Anthony Ramine | 2020-04-20 | 1 | -3/+1 | |
|/ | | | | | | RuleTree::gc is now a safe method that any thread can call at any time, and StrongRuleNode values can all be dropped whenever their owner want to, on any thread. | |||||
* | Some servo build fixes. | Emilio Cobos Álvarez | 2020-04-16 | 1 | -9/+0 | |
| | ||||||
* | Don't go through the layout thread to retrieve a node's primary style | Anthony Ramine | 2020-04-07 | 1 | -12/+4 | |
| | ||||||
* | Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData | Anthony Ramine | 2020-04-06 | 1 | -31/+30 | |
| | ||||||
* | Rename a bunch of style/layout data items | Anthony Ramine | 2020-04-06 | 1 | -25/+25 | |
| | | | | | | | | | | | | | GetLayoutData::get_style_and_layout_data becomes GetOpaqueStyleAndLayoutData::get_opaque_style_and_layout_data. GetRawData::get_raw_data becomes GetStyleAndLayoutData::get_style_and_layout_data. LayoutNode::init_style_and_layout_data becomes LayoutNode::init_opaque_style_and_layout_data. LayoutNode::take_style_and_layout_data becomes LayoutNode::take_opaque_style_and_layout_data. | |||||
* | Auto merge of #26110 - servo:layout-2020-rm-note-dirty-descendant, r=emilio | bors-servo | 2020-04-04 | 2 | -23/+0 | |
|\ | | | | | | | Kill ServoLayoutElement::note_dirty_descendant | |||||
| * | Kill ServoLayoutElement::note_dirty_descendant | Anthony Ramine | 2020-04-04 | 2 | -23/+0 | |
| | | | | | | | | | | | | There is no need to set the dirty descendants flag unsafely from the layout side for elements with pending restyles, we can do that on the DOM side when draining the restyles from the Document. | |||||
* | | Make DOM own the style and layout data, in an UnsafeCell | Anthony Ramine | 2020-04-04 | 2 | -29/+16 | |
| | | | | | | | | The previous Cell was a lie. | |||||
* | | Don't expose any AtomicRefCell directly from style traits | Anthony Ramine | 2020-04-04 | 2 | -12/+19 | |
| | | | | | | | | This lets us experiment with how we store this data on the DOM side. | |||||
* | | Make OpaqueLayoutAndStyleData just a bit less opaque | Anthony Ramine | 2020-04-04 | 1 | -16/+9 | |
|/ | | | | It now stores a NonNull<dyn Any>. | |||||
* | Make LayoutShadowRootHelpers::get_style_data_for_layout return a &CascadeData | Anthony Ramine | 2020-04-01 | 1 | -1/+1 | |
| | | | | That return type is Sync, which thus means that the method can be safe. | |||||
* | Make synthesize_presentational_hints_for_legacy_attributes be safe | Anthony Ramine | 2020-04-01 | 1 | -4/+2 | |
| | ||||||
* | Make LayoutDocumentHelpers::style_shared_lock be safe | Anthony Ramine | 2020-04-01 | 1 | -1/+1 | |
| | | | | StyleSharedRwLock is Sync. | |||||
* | Make LayoutNodeHelpers::composed_parent_node_ref be safe | Anthony Ramine | 2020-04-01 | 1 | -11/+7 | |
| | | | | | | For clarity, I introduce <LayoutDom<Element>>::parent_node_ref to contain the remaining unsafety bits out of composed_parent_node_ref which is more complex than just a field access. | |||||
* | Make LayoutShadowRootHelpers::get_host_for_layout be safe | Anthony Ramine | 2020-03-31 | 1 | -1/+1 | |
| | ||||||
* | Make a bunch of LayoutNodeHelpers be safe | Anthony Ramine | 2020-03-31 | 1 | -6/+6 | |
| | ||||||
* | Introduce LayoutDom::is | Anthony Ramine | 2020-03-31 | 1 | -1/+1 | |
| | | | | Just like Castable::is. | |||||
* | Make layout methods accessing rare data be safe | Anthony Ramine | 2020-03-31 | 1 | -11/+7 | |
| | | | | | | They don't do anything fancy so there is no additional unsafety calling them compared to using LayoutDom in the first place, the usual story of all those changes. | |||||
* | Make a bunch of LayoutDocumentHelpers be safe | Anthony Ramine | 2020-03-31 | 1 | -2/+2 | |
| | | | | The other methods are actually unsafe. | |||||
* | Make a bunch or trivial LayoutElementHelpers safe | Anthony Ramine | 2020-03-31 | 1 | -6/+4 | |
| | ||||||
* | Introduce <LayoutDom<Element>>::attrs() | Anthony Ramine | 2020-03-31 | 1 | -33/+29 | |
| | | | | | | This safe method is the basic block to access element attributes from layout. We reuse it in the other attr-related layout methods to remove a pretty big source of rampant unsafe code between script and layout. | |||||
* | Merge RawLayoutElementHelpers into LayoutElementHelpers | Anthony Ramine | 2020-03-31 | 1 | -10/+8 | |
| | ||||||
* | Make LayoutNodeHelpers::text_content return a cow | Anthony Ramine | 2020-03-31 | 1 | -3/+3 | |
| | ||||||
* | Make LayoutCharacterDataHelpers::data_for_layout be safe | Anthony Ramine | 2020-03-31 | 1 | -1/+1 | |
| | ||||||
* | Clean up LayoutShadowRootHelpers::get_style_data_for_layout | Anthony Ramine | 2020-03-30 | 1 | -6/+1 | |
| | | | | Parameter E is unused and the result should be bound by 'dom. | |||||
* | Give a lifetime parameter to LayoutDom | Anthony Ramine | 2020-03-28 | 1 | -85/+31 | |
| | ||||||
* | Pass pending restyles instead of draining them from layout | Anthony Ramine | 2020-03-28 | 2 | -11/+4 | |
| | ||||||
* | Make ServoLayoutNode::new return a free lifetime value | Anthony Ramine | 2020-03-28 | 1 | -1/+1 | |
| | | | | | Binding the scope of the ServoLayoutNode value to the originating TrustedNodeAddress is just theater. | |||||
* | Move PendingRestyle to the style_layout_interface crate | Anthony Ramine | 2020-03-28 | 1 | -1/+1 | |
| | ||||||
* | Add a 'dom lifetime to GetLayoutData | Anthony Ramine | 2020-03-26 | 2 | -14/+14 | |
| | ||||||
* | Remove unnecessary .clone() calls | Iulian Gabriel Radu | 2020-03-04 | 1 | -5/+5 | |
| | ||||||
* | Make Background Hang Monitor Optional | Kunal Mohan | 2020-02-23 | 1 | -9/+15 | |
| | | | | | | This is done by wrapping all channels of communication and related objects inside Option which are configured using flag inside servo_config. | |||||
* | Update ipc-channel and crossbeam-channel. | Josh Matthews | 2020-02-20 | 1 | -2/+2 | |
| | ||||||
* | remove option for origin and mirror changes to layout_thread_2020 | Kunal Mohan | 2020-02-18 | 1 | -19/+21 | |
| | ||||||
* | Take origin from window instead of creating a new one in case of reflow | Kunal Mohan | 2020-02-15 | 1 | -4/+12 | |
| | | | | | | | | | | Everytime a new LayoutContext was created, it created a new origin which caused endless stream of image loads to occur in case of reflow. The reason for this was that the existing image, although cached successfully, was not used because the entry in hashmap did not match because of different(new) origin. This is solved by storing the origin of a window in enum ScriptReflow and used in creating new LayoutContext in case of reflow. | |||||
* | Improve the name the NodeGeometryQuery | Martin Robinson | 2020-02-05 | 1 | -4/+4 | |
| | | | | | | | This query is used to get the clientTop, clientWidth, clientHeight, clientLeft properties of DOM objects. "NodeGeometry" doesn't really capture what these properties do as they often are returning the width of element border. | |||||
* | :defined works | Patrick Shaughnessy | 2020-01-30 | 1 | -0/+1 | |
| | ||||||
* | style: Fix servo build. | Emilio Cobos Álvarez | 2019-11-30 | 1 | -0/+22 | |
| | ||||||
* | Use non-IPC webrender API over explicit IPC channels. | Josh Matthews | 2019-11-27 | 2 | -31/+14 | |
| | ||||||
* | layout: Inform webrender about new pipeline as early as possible. | Josh Matthews | 2019-11-13 | 1 | -2/+16 | |
| | ||||||
* | Ensure layout/script always have a correct viewport size when a new pipeline ↵ | Josh Matthews | 2019-11-06 | 1 | -23/+8 | |
| | | | | is created. | |||||
* | dom: Calculate the viewport size of iframes when they are first added to the ↵ | Josh Matthews | 2019-11-06 | 1 | -0/+11 | |
| | | | | tree. | |||||
* | Update rand to 0.7 (fixes #24448) | Anthony Ramine | 2019-10-23 | 1 | -1/+1 | |
| | ||||||
* | Double key image cache by requesting origin, and store CORS status with ↵ | Josh Matthews | 2019-10-04 | 1 | -0/+1 | |
| | | | | cached images. | |||||
* | Update html5ever to 0.24 | Anthony Ramine | 2019-09-27 | 1 | -1/+1 | |
| | ||||||
* | style: Fix Servo build, and rustfmt recent changes. | Emilio Cobos Álvarez | 2019-09-12 | 1 | -5/+6 | |
| | ||||||
* | Replace DisplayList::is_contentful with tracking during conversion to WR ↵ | Simon Sapin | 2019-09-06 | 1 | -2/+2 | |
| | | | | display lists | |||||
* | Replace the WebRenderDisplayItemConverter trait with an inherent method | Simon Sapin | 2019-09-06 | 1 | -1/+1 | |
| | ||||||
* | Deduplicate parking_lot and friends by updating it to 0.9 | Bastien Orivel | 2019-09-05 | 1 | -1/+1 | |
| |