aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface
Commit message (Collapse)AuthorAgeFilesLines
* Move is_connected function from style to layout, where it is usedFernando Jiménez Moreno2019-04-261-0/+3
|
* Measure layout queries blocked by ongoing layoutPhilipp Albrecht2019-04-131-0/+2
|
* Move CSSReporter from script_layout_interface to scriptAnthony Ramine2019-01-143-52/+0
|
* Rename NewLayoutThreadInfo to LayoutThreadInitAnthony Ramine2019-01-141-2/+2
| | | | Following the convention of our other init structs.
* Make some cosmetic changes to ReflowGoal methodsAnthony Ramine2019-01-141-24/+24
|
* Update references to malloc_size_of_derive, which is in crates.io now.Emilio Cobos Álvarez2019-01-131-1/+1
|
* Make a bunch of layout queries morally saferAnthony Ramine2019-01-091-7/+12
|
* Move is_image_data to the layout crateAnthony Ramine2019-01-091-6/+0
| | | | It's only used there.
* Remove unstable unused feature in script_layout_interfaceAnthony Ramine2019-01-091-1/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-282-2/+2
|
* style: Make Servo use a single thread-pool for layout-related tasks per-process.Emilio Cobos Álvarez2018-12-231-1/+0
| | | | | | Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
* Cancel animations that affect nodes that do not participate in layout.Josh Matthews2018-12-101-0/+3
|
* introduce a background-hang-monitor:Gregory Terzian2018-11-261-1/+2
| | | | | Mac-Os implementation of a thread sampler, Linux and Windows skeleton implementations.
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-195-5/+5
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-182-2/+2
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-082-2/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-082-25/+4
|
* Reorder importsPyfisch2018-11-065-9/+9
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-0/+1
|
* Sort `use` statementsSimon Sapin2018-11-062-3/+3
|
* `cargo fix --edition`Simon Sapin2018-11-063-8/+8
|
* Update remaining references to cssparser 0.24.Emilio Cobos Álvarez2018-11-051-1/+1
|
* Make layout use available image data before querying the image cache.Josh Matthews2018-10-121-0/+5
|
* Do not share entire FrameRenderer with layout, only current frameFernando Jiménez Moreno2018-10-081-7/+1
|
* layout: add media_data() method to ThreadSafeLayoutNode traitVíctor Manuel Jáquez Leal2018-10-081-0/+3
|
* layout: add HTMLMediaFrameSource trait and HTMLMediaData structVíctor Manuel Jáquez Leal2018-10-081-0/+11
|
* Auto merge of #21687 - AnshulMalik:format-script_layout, r=jdmbors-servo2018-09-133-82/+123
|\ | | | | | | | | | | | | | | | | | | | | format script_layout_interface - [x] `./mach test-tidy` does not report any errors <!-- 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/21687) <!-- Reviewable:end -->
| * format script_layout_interfaceAnshul Malik2018-09-123-82/+123
| |
* | Auto merge of #21628 - paavininanda:Current-pixel-density, r=jdmbors-servo2018-09-131-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current pixel density <!-- 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 a subset of #11416. <!-- Either: --> - [x] There are tests for these changes OR <!-- 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/21628) <!-- Reviewable:end -->
| * | Current-pixel-density tests passingpaavininanda2018-09-131-0/+3
| |/
* / Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-123-2/+4
|/ | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* WR updatePaul Rouget2018-08-061-2/+2
|
* Update euclid to 0.18Bastien Orivel2018-07-181-1/+1
|
* Fix servo build.Emilio Cobos Álvarez2018-07-011-1/+1
|
* Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-1/+2
|
* Bump env_logger to 0.5 and log to 0.4 in every servo crateBastien Orivel2018-03-282-2/+2
|
* Auto merge of #20307 - csmoe:measure_query_time, r=jdmbors-servo2018-03-262-21/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Measure time required before a layout query is serviced by the layout thread <!-- Please describe your changes on the following line: --> - [X] extract QueryMsg from ReflowGoal - [X] introduce QueryMsg timestamp --- <!-- 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 #19795 (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/20307) <!-- Reviewable:end -->
| * fix time measurecsmoe2018-03-252-22/+0
| |
| * introduce layout query timestampcsmoe2018-03-183-0/+23
| |
| * extract querymsg from ReflowGoalmoe2018-03-171-21/+38
| |
* | Bump ipc-channel and bincodeBastien Orivel2018-03-211-1/+1
|/ | | | This required bumping uuid too which unfortunately duplicated rand.
* Bump euclid to 0.17Bastien Orivel2018-02-281-1/+1
|
* selectors: Remove the get_ prefix from get_local_name and get_namespace.Emilio Cobos Álvarez2018-02-241-4/+4
|
* Implement element.innerText getterFernando Jiménez Moreno2018-02-133-3/+9
|
* Update WebRenderMartin Robinson2018-02-063-11/+10
| | | | | | | | | This allows servo to use the ExternalScrollId API from WebRender fixing some issues related to duplicate scroll root ids. Fixes #17176. Fixes #19287. Fixes #19648.
* Add layout RPC query for getting an element's styleJon Leighton2018-01-282-28/+12
| | | | | | | | This enables us to implement Element::has_css_layout_box() in a more direct way, and also enables us to remove some of the existing more specific queries. Fixes #19811.
* style: Use CascadeFlags for what they're for.Emilio Cobos Álvarez2018-01-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have an Element around on cascade, we can stop using the cascade flags mechanism to pass various element-related state, like "is this element the root", or "should it use the item-based display fixup". That fixes handwaviness in the handling of those flags from style reparenting, and code duplication to handle tricky stuff like :visited. There are a number of other changes that are worth noticing: * skip_root_and_item_based_display_fixup is renamed to skip_item_display_fixup: TElement::is_root() already implies being the document element, which by definition is not native anonymous and not a pseudo-element. Thus, you never get fixed-up if your NAC or a pseudo, which is what the code tried to avoid, so the only fixup with a point is the item one, which is necessary. * The pseudo-element probing code was refactored to return early a Option::<CascadeInputs>::None, which is nicer than what it was doing. * The visited_links_enabled check has moved to selector-matching time. The rest of the checks aren't based on whether the element is a link, or are properly guarded by parent_style.visited_style().is_some() or visited_rules.is_some(). Thus you can transitively infer that no element will end up with a :visited style, not even from style reparenting. Anyway, the underlying reason why I want the element in StyleAdjuster is because we're going to implement an adjustment in there depending on the tag of the element (converting display: contents to display: none depending on the tag), so computing that information eagerly, including a hash lookup, wouldn't be nice.
* style: Derive debug for CascadeInputs.Emilio Cobos Álvarez2018-01-231-4/+6
| | | | It no longer has anything than rules.
* style: Make the TElement type arrive to the `cascade` function.Emilio Cobos Álvarez2018-01-232-4/+10
| | | | | | | | | | | | | | | | | Not super-proud of this one, but it's the easiest way I could think of. The changeset looks bigger than what it is, because while at it I've rewrapped a fair amount of functions around to use proper block indentation. Alternatives are parameterizing Stylist by <E>, which is not fun, or moving the concrete element from layout_thread to layout, but that implies layout depending on script, which isn't fun either. Other alternative is implementing an empty enum and making anon boxes work on it. It has the advantage of removing the annoying type parameter, but the disadvantage of instantiating `cascade` twice, which isn't great, and having to maintain all the boilerplate of a `TElement` implementation that just does nothing.