aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Making a few lines in layout_wrapper.rs a bit nicer.Elliott Pardee2017-03-201-5/+6
|
* Move all PropertyDeclarationBlock from RwLock<_> to Locked<_>Simon Sapin2017-03-191-3/+2
|
* Replace RwLock<MediaList> with shared_lock::Locked<MediaList>Simon Sapin2017-03-191-0/+5
|
* Bug 1340683 - stylo: Implement the :-moz-any pseudo-classMatt Brubeck2017-03-161-3/+9
|
* Skip update_animations if we have no running animations and the element ↵Hiroyuki Ikezoe2017-03-101-0/+4
| | | | becomes display:none.
* Update CSS animations in a SequentialTask.Hiroyuki Ikezoe2017-03-101-0/+4
| | | | | | | | | | | | | We create the SequentialTask only if: * We have no old computed values and we have animation name style in the new computed values. * Any animation properties is changed. * display property is changed from 'none' and we have animation name style. * display property is changed to 'none'. In a subsequent patch we skip the SequentialTask if we have no running animations and the display propery is changed to 'none'.
* ext. filtering for lang matchingSendilKumar N2017-03-071-2/+2
|
* Use more idiomatic constructioncrypto-universe2017-03-031-11/+4
| | | | | or_else in more idiomatic rust construction than match, where Some(x) => Some(x)
* Support lang pseudo classKeith Yeung2017-02-271-0/+5
|
* Clean up and simplify the accumulation of restyle damage.Bobby Holley2017-02-101-2/+2
|
* Allow the ComputedValues in ComputedStyle to be null.Bobby Holley2017-02-101-1/+1
| | | | | This is necessary to start synthesizing the styles in match_element and avoid round-tripping them through the caller.
* Bug 1336646 - Apply selector flags during traversal. r=emilioBobby Holley2017-02-081-5/+13
|
* Update selectors to 0.17Anthony Ramine2017-02-071-3/+3
|
* Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the ↵Bobby Holley2017-01-091-10/+4
| | | | style. r=emilio
* Only pass nodes to layout for restyling that are actually in the document.Josh Matthews2017-01-041-1/+2
|
* Switch to crates.io for atomic_refcell.Bobby Holley2017-01-031-1/+1
|
* Don't persist styles on elements not in the document.Cameron McCormack2016-12-301-0/+4
|
* Auto merge of #14518 - mbrubeck:rowspan2, r=notriddlebors-servo2016-12-261-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix inline layout of table cells impacted by rowspan This is part of the fix for #11297. This PR fixes the inline layout of table cells impacted by row-spanning cells from previous rows. A separate PR to follow will fix the table block size calculations to account for rowspan. This PR doesn't yet include any test changes. If it doesn't cause any existing tests to pass, I will add a new test to it. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14518) <!-- Reviewable:end -->
| * Add the HTMLTableCellElement::rowspan propertyMatt Brubeck2016-12-141-0/+6
| |
* | Expose Quirks Mode information in the style shared context r=emilioJulien Wajsberg2016-12-171-1/+5
| |
* | Bug 1322945 - Improve ergonomics and share more code for style crate DOM ↵Bobby Holley2016-12-121-58/+5
| | | | | | | | | | | | tree logging. r=heycam MozReview-Commit-ID: 4Fy3ujpI4n2
* | Make Restyle tracking more granular.Bobby Holley2016-12-091-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | The primary idea of this patch is to ditch the rigid enum of Previous/Current styles, and replace it with a series of indicators for the various types of work that needs to be performed (expanding snapshots, rematching, recascading, and damage processing). This loses us a little bit of sanity checking (since the up-to-date-ness of our style is no longer baked into the type system), but gives us a lot more flexibility that we'll need going forward (especially when we separate matching from cascading). We also eliminate get_styling_mode in favor of a method on the traversal. This patch does a few other things as ridealongs: * Temporarily eliminates the handling for transfering ownership of styles to the frame. We'll need this again at some point, but for now it's causing too much complexity for a half-implemented feature. * Ditches TRestyleDamage, which is no longer necessary post-crate-merge, and is a constant source of compilation failures from either needing to be imported or being unnecessarily imported (which varies between gecko and servo). * Expands Snapshots for the traversal root, which was missing before. * Fixes up the skip_root stuff to avoid visiting the skipped root. * Unifies parallel traversal and avoids spawning for a single work item. * Adds an explicit pre_traverse step do any pre-processing and determine whether we need to traverse at all. MozReview-Commit-ID: IKhLAkAigXE
* Add support for fullscreen #10102Jansen Jan2016-12-091-0/+1
|
* Skip root- and item-based display style fixup for Gecko NAC.Cameron McCormack2016-12-061-0/+4
| | | | MozReview-Commit-ID: 6AV2UWyl6pl
* style: Introduce StyleBloomEmilio Cobos Álvarez2016-11-271-8/+0
| | | | | The idea is this will fix the bad behavior of the bloom filter in parallel traversal.
* Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.Bobby Holley2016-11-241-68/+49
| | | | MozReview-Commit-ID: 7wH5XcILVmX
* Remove SelectorImpl aliasesSimon Sapin2016-11-221-5/+5
|
* Rename selector_impl.rs to selector_parser.rsSimon Sapin2016-11-201-1/+1
| | | | This makes it consistent with an upcoming update of the selectors crate.
* Rename selector_matching.rs to stylist.rsSimon Sapin2016-11-201-1/+1
|
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Urlmageddon <!-- Please describe your changes on the following line: --> Still needs a bunch of code in net to be converted in order to get more advantage of this for images and stuff, but meanwhile this should help quite a bit with #13778. Still wanted to get this in. r? @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14246) <!-- Reviewable:end -->
| * Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-2/+2
| |
* | Eliminate HAS_CHANGED in favor of explicit RestyleDamage.Bobby Holley2016-11-161-13/+6
| |
* | Track all node damage with PendingRestyles.Bobby Holley2016-11-161-0/+29
| |
* | Expand the role of modified_elements to include explicit restyle hints and ↵Bobby Holley2016-11-151-4/+4
| | | | | | | | | | | | damage. This will take the place of setting IS_DIRTY and HAS_CHANGED.
* | Remove TDocument from the style and layout crates.Bobby Holley2016-11-141-21/+12
|/ | | | | | The style system never actually does anything with the document. This allows us to remove a bunch of stubbing on the Gecko side and streamline some things on the Servo side in future patches.
* Stop using associated types for the concrete TRestyleDamage implementation.Bobby Holley2016-11-071-3/+1
| | | | MozReview-Commit-ID: LfaZFCVlIb1
* Stop using associated types for the concrete ElementSnapshot implementation.Bobby Holley2016-11-071-2/+2
| | | | MozReview-Commit-ID: LS23s2RbMBg
* Update to string-cache 0.3Simon Sapin2016-11-031-11/+12
|
* Drop style data from descendants on display:none.Bobby Holley2016-11-011-0/+4
| | | | MozReview-Commit-ID: 8ls43oAGWRg
* Replace begin_styling with a centralized mechanism to set a node up for ↵Bobby Holley2016-11-011-36/+11
| | | | | | | | | either styling or restyling. We also make sure that an element never has an ElementData with ElementDataStyles::Uninitialized, and eagerly call prepare_for_styling whenever an ElementData is instantiated. MozReview-Commit-ID: 9YP6eSmdMt0
* Rename NodeData and associated data structures to Element*.Bobby Holley2016-10-291-10/+8
| | | | MozReview-Commit-ID: 96VsmsoZtjZ
* Hoist most styling functionality from TNode to TElement.Bobby Holley2016-10-291-88/+95
| | | | MozReview-Commit-ID: DZ8ZrsZIiAU
* Move core pseudo-element handling to ThreadSafeLayoutElement.Bobby Holley2016-10-281-59/+82
|
* Move all *MatchMethods to TElement.Bobby Holley2016-10-271-1/+1
| | | | MozReview-Commit-ID: 3V6JIlOVVhw
* Don't traverse text nodes during styling.Bobby Holley2016-10-271-2/+12
| | | | MozReview-Commit-ID: 6CtQMxbcLnF
* Hoist RestyleDamage onto TElement.Bobby Holley2016-10-271-40/+27
| | | | | | | | Instead of maintaining a dummy restyle damage field for text nodes, we can just perform the necessary parent inheritance and is_changed adjustments on the fly in ThreadSafeLayoutNode, simplifying the requirements on the style system. MozReview-Commit-ID: DCqiCRLsLUF
* Teach Servo to compute text node style from layout.Bobby Holley2016-10-271-0/+8
| | | | MozReview-Commit-ID: IolVN5puF1i
* Eliminate untraversed node types from LayoutNodeType.Bobby Holley2016-10-271-3/+4
| | | | MozReview-Commit-ID: 926ReI1BSsf
* Introduce StylingMode and deprecate explicit dirtiness.Bobby Holley2016-10-261-6/+26
| | | | MozReview-Commit-ID: 5tF075EJKBa
* Rearrange some data structures in preparation for the new incremental ↵Bobby Holley2016-10-211-31/+16
| | | | | | restyle algorithm. MozReview-Commit-ID: 8iOALQylOuK