aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/wrapper_traits.rs
Commit message (Collapse)AuthorAgeFilesLines
* Simplify rust-selectors API for attribute selectorsSimon Sapin2017-05-181-0/+3
|
* Bug 1364850: Move PseudoElement to be just another combinator in selectors. ↵Emilio Cobos Álvarez2017-05-171-2/+0
| | | | | | | r=bholley MozReview-Commit-ID: 8OoOIodkKJ5 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #16876 - asajeffrey:constellation-rename-frames, r=cbrewsterbors-servo2017-05-161-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed constellation::Frame to constellation::BrowsingContext <!-- Please describe your changes on the following line: --> Now that script has `WindowProxy` rather than `BrowsingContext` objects, we can rename `Frame` in the constellation to `BrowsingContext`. In particular, this means that `FrameId`s are now `BrowsingContextid`s, which better captures their purpose (and they are used in a lot of places, not just the constellation). --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because renaming <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16876) <!-- Reviewable:end -->
| * Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-3/+3
| |
* | Bug 1364412: Use the pseudo selector to reject state selectors. r=bholleyEmilio Cobos Álvarez2017-05-161-0/+2
|/ | | | | MozReview-Commit-ID: 73dnp6nZpdU Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #16506 - cbrewster:about_chaos, r=asajeffreybors-servo2017-05-121-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make non-initial about:blank loads async <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14856 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16506) <!-- Reviewable:end -->
| * Make non-initial about:blank loads asynchronousConnor Brewster2017-05-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't update iframe pipeline until load completes To preserve the previous functionality of delaying load events when a new navigation is triggered, pending pipeline id represents the current pending load. The load event is only fired if the load message's pipeline id matches the pending pipeline id. Track frame size on Frame instead of Pipeline Disabled matchMedia test Track creator pipeline id
* | Fix typo for PresentationalHintsSynthesizerTing-Yu Lin2017-05-101-2/+2
|/
* Auto merge of #16689 - servo:m5e, r=noxbors-servo2017-05-031-1/+1
|\ | | | | | | | | | | | | | | Upgrade to html5ever 0.16 <!-- 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/16689) <!-- Reviewable:end -->
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Fix up script and layout.Bobby Holley2017-05-021-1/+1
|/
* Eliminate ScrollRootIdMartin Robinson2017-04-201-3/+5
| | | | | | | Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future.
* stylo: Store font metrics provider in thread local style contextManish Goregaokar2017-04-091-2/+5
|
* Use a more compact representation to store eager pseudo-elements.Bobby Holley2017-04-031-19/+15
| | | | | | This means that ElementStyles only need a single word to store eager pseudos. MozReview-Commit-ID: 5bDXlDweN46
* Use empty pseudo to cascade only inheritable properties for textPu Xingyu2017-04-011-3/+6
| | | | | | Since for nested inline elements non-inheritable properties are properly stored in the inline context of an inline fragment, so get rid of them on the style.
* Replace RwLock<StyleRule> with Locked<StyleRule>Simon Sapin2017-03-191-0/+2
|
* style: Kill SharedStyleContext::default_computed_values.Emilio Cobos Álvarez2017-03-141-3/+1
| | | | | | | Now that cascade() gets a Device, we can use the default computed values from there to avoid propagating that state all over the place. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Add support for skipping display fixup for pseudos.Boris Zbarsky2017-03-131-2/+2
| | | | This is needed for https://bugzilla.mozilla.org/show_bug.cgi?id=1346481
* Allow the ComputedValues in ComputedStyle to be null.Bobby Holley2017-02-101-7/+7
| | | | | 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-1/+10
|
* Fix some warnings.Ms2ger2017-01-101-1/+1
|
* Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the ↵Bobby Holley2017-01-091-2/+9
| | | | style. r=emilio
* Don't inherit all properties for pre-computed pseudos if there are no ↵Cameron McCormack2017-01-091-1/+1
| | | | matching rules.
* Bug 1298588 part 9, servo piece. Pass through useful default styles to ↵Boris Zbarsky2017-01-041-1/+3
| | | | cascade(). r=bholley
* Switch to crates.io for atomic_refcell.Bobby Holley2017-01-031-1/+1
|
* Auto merge of #14518 - mbrubeck:rowspan2, r=notriddlebors-servo2016-12-261-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+2
| |
* | Make Restyle tracking more granular.Bobby Holley2016-12-091-14/+14
|/ | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Reimplement scrolling to fragmentsMartin Robinson2016-11-291-1/+15
| | | | | | | | This reimplemntation of the feature uses ScrollRootIds to scroll particular scrollable areas of the page. Fixes #13736. Fixes #10753.
* Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.Bobby Holley2016-11-241-21/+25
| | | | MozReview-Commit-ID: 7wH5XcILVmX
* Remove SelectorImpl aliasesSimon Sapin2016-11-221-3/+3
|
* 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.
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-4/+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-4/+2
| |
* | Eliminate HAS_CHANGED in favor of explicit RestyleDamage.Bobby Holley2016-11-161-2/+0
| |
* | Remove TDocument from the style and layout crates.Bobby Holley2016-11-141-5/+1
|/ | | | | | 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-2/+1
| | | | MozReview-Commit-ID: LfaZFCVlIb1
* Concurrent rule tree, v1Emilio Cobos Álvarez2016-11-051-5/+6
| | | | | | | | | | | | This patch introduces infrastructure for the rule tree, and constructs it. We don't use it yet, nor have good heuristics for GC'ing it, but this should not happen anymore once we store the rule node reference in the node. I haven't messed up with memory orders because I want to do a try run with it, then mess with them. Take down the ApplicableDeclarationsCache, use the rule tree for doing the cascade.
* Update to string-cache 0.3Simon Sapin2016-11-031-5/+5
|
* Drop style data from descendants on display:none.Bobby Holley2016-11-011-0/+1
| | | | MozReview-Commit-ID: 8ls43oAGWRg
* Replace begin_styling with a centralized mechanism to set a node up for ↵Bobby Holley2016-11-011-2/+2
| | | | | | | | | 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-3/+3
| | | | MozReview-Commit-ID: 96VsmsoZtjZ
* Hoist most styling functionality from TNode to TElement.Bobby Holley2016-10-291-5/+6
| | | | MozReview-Commit-ID: DZ8ZrsZIiAU
* Move core pseudo-element handling to ThreadSafeLayoutElement.Bobby Holley2016-10-281-112/+134
|
* Don't traverse text nodes during styling.Bobby Holley2016-10-271-0/+2
| | | | MozReview-Commit-ID: 6CtQMxbcLnF
* Hoist RestyleDamage onto TElement.Bobby Holley2016-10-271-1/+1
| | | | | | | | 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-4/+27
| | | | MozReview-Commit-ID: IolVN5puF1i
* layout: Add a new cascading mode that inherits all properties, evenPatrick Walton2016-10-261-3/+4
| | | | | | | non-inheritable ones. This works like the `modify_style_for_*` functions and will allow us to easily migrate from them to real cascading.
* Rearrange some data structures in preparation for the new incremental ↵Bobby Holley2016-10-211-33/+18
| | | | | | restyle algorithm. MozReview-Commit-ID: 8iOALQylOuK
* Auto merge of #13848 - mrobinson:remove-layers, r=glennwbors-servo2016-10-211-16/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove concept of Layers from Servo <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because this PR should not change behavior. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Layers were a feature of the legacy drawing path. If we re-add them at some point, it probably makes more sense to make them a product of display list inspection. This change also remove a bunch of dead painting code. <!-- 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/13848) <!-- Reviewable:end -->