Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove extra spaces in function calls and declarations | Daan Sprenkels | 2016-10-31 | 1 | -1/+1 | |
| | ||||||
* | Move core pseudo-element handling to ThreadSafeLayoutElement. | Bobby Holley | 2016-10-28 | 1 | -13/+11 | |
| | ||||||
* | Eliminate untraversed node types from LayoutNodeType. | Bobby Holley | 2016-10-27 | 1 | -12/+0 | |
| | | | | MozReview-Commit-ID: 926ReI1BSsf | |||||
* | layout: Minor style cleanup. | Patrick Walton | 2016-10-26 | 1 | -7/+14 | |
| | ||||||
* | layout: Use the new `style_for_anonymous_box()` function for the | Patrick Walton | 2016-10-26 | 1 | -2/+3 | |
| | | | | anonymous text child of `<input>`. | |||||
* | layout: Remove the old anonymous table object generation code. | Patrick Walton | 2016-10-26 | 1 | -84/+0 | |
| | ||||||
* | layout: Rewrite the anonymous table object generation code. | Patrick Walton | 2016-10-26 | 1 | -67/+261 | |
| | | | | | | | | | | | This patch introduces a "legalizer", which encapsulates all the anonymous flow generation logic in one place. The legalizer knows how to, for example, place adjacent blocks with `display: table-cell` in the same table row. Improves etsy.com. Closes #13782. | |||||
* | layout: Refactor `Flow::from_fragment`-style constructors to be | Patrick Walton | 2016-10-26 | 1 | -3/+4 | |
| | | | | consistent. | |||||
* | Make list-style-image use UrlOrNone. | Cameron McCormack | 2016-10-16 | 1 | -4/+4 | |
| | | | | MozReview-Commit-ID: 6E82Tq5nrfC | |||||
* | layout: Rewrite Servo's `vertical-align` support to match CSS 2.1 § | Patrick Walton | 2016-10-11 | 1 | -8/+3 | |
| | | | | | | | | | | | | | | | | | 10.8, and implement `vertical-align: middle` per CSS 2.1 § 10.8.1. `InlineMetrics` has been split into `InlineMetrics` for fragments and `LineMetrics` for lines. Both structures' fields have been renamed in order to more clearly delineate the difference between *space* and *content*. Vertical positioning of fragments has been reworked to take margins and borders into account only for replaced content. This patch fixes the `vertical_align_super_a.html` reftest. Servo now matches the rendering that Gecko and WebKit produce. Additionally, this includes a test for the popular inline-block centering technique described here: https://s.codepen.io/shshaw/fullpage/gEiDt?#Inline-Block | |||||
* | Move children_to_process to layout. | Bobby Holley | 2016-10-08 | 1 | -1/+1 | |
| | | | | | | | | | | | We don't need this for Gecko, and it's hard to implement in that case because there's nowhere obvious to put it (we don't plan to create TSDs for non-dirty nodes, and non-dirty nodes can have dirty children which require the children_to_process atomic). There are various solutions here, but punting is the easiest. We'll need to rethink this if/when we need to do a bottom-up traversal for Gecko. | |||||
* | add SVG fragment (SpecificFragmentInfo::Svg) | Alexandrov Sergey | 2016-10-07 | 1 | -2/+7 | |
| | ||||||
* | Rename PrivateStyleData to PersistentStyleData and use AtomicRefCell instead ↵ | Bobby Holley | 2016-10-02 | 1 | -3/+3 | |
| | | | | | | | | of RefCell as a container. This allows us to eliminate the unsafe borrows. \o/ MozReview-Commit-ID: 29hpGaWUFQz | |||||
* | Stop using Ref::map for selected_style and resolved_style. | Bobby Holley | 2016-10-02 | 1 | -10/+10 | |
| | | | | | | Same concept as the previous patch. MozReview-Commit-ID: RFC8s7qQPM | |||||
* | Stop using Ref::map for style(). | Bobby Holley | 2016-10-02 | 1 | -12/+12 | |
| | | | | | | | | | | It's not possible to implement a Ref::map equivalent method on AtomicRefCell while having AtomicRefCell implemented on top of RwArc. We could potentially reimplement AtomicRefCell to be more like RefCell and add a Ref::map equivalent method, but I (and pcwalton) think we should try just cloning a few extra Arcs at these callsites instead. MozReview-Commit-ID: 6H8vAWguO3z | |||||
* | Style input-text pseudo with user-agent CSS | Jonathan Schuster | 2016-09-21 | 1 | -1/+3 | |
| | ||||||
* | Reorder `use` statements | UK992 | 2016-09-09 | 1 | -6/+6 | |
| | ||||||
* | Auto merge of #13012 - servo:shared-layout-context, r=nox | bors-servo | 2016-08-24 | 1 | -4/+4 | |
|\ | | | | | | | | | | | | | | | Stop creating a LayoutContext in build_display_list_for_subtree. <!-- 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/13012) <!-- Reviewable:end --> | |||||
| * | Pass SharedLayoutContext to ImageFragmentInfo::new. | Ms2ger | 2016-08-23 | 1 | -3/+3 | |
| | | ||||||
| * | Pass SharedStyleContext to CanvasFragmentInfo::new. | Ms2ger | 2016-08-23 | 1 | -1/+1 | |
| | | ||||||
* | | set HAS_NEWLY_CONSTRUCTED_FLOW flag for reconstructed flow'less inline element | Alexandrov Sergey | 2016-08-23 | 1 | -71/+81 | |
|/ | ||||||
* | do not reset pseudo elements style | Alexandrov Sergey | 2016-08-11 | 1 | -2/+10 | |
| | ||||||
* | layout: Fix servo layout to take into account possibly unstyled child nodes ↵ | Emilio Cobos Álvarez | 2016-08-10 | 1 | -0/+8 | |
| | | | | in the display: none case. | |||||
* | Remove some type aliases that are now just re-exports. | Simon Sapin | 2016-07-20 | 1 | -1/+1 | |
| | ||||||
* | Remove the ComputedValue traits and style_struct_traits | Simon Sapin | 2016-07-20 | 1 | -1/+1 | |
| | ||||||
* | Auto merge of #11930 - nox:die-util-die, r=SimonSapin | bors-servo | 2016-06-29 | 1 | -3/+2 | |
|\ | | | | | | | | | | | | | | | Remove some util stuff <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11930) <!-- Reviewable:end --> | |||||
| * | Move util::linked_list to layout | Anthony Ramine | 2016-06-29 | 1 | -3/+2 | |
| | | ||||||
* | | Clean up unnecessary code noise | Michael Howell | 2016-06-28 | 1 | -1/+1 | |
|/ | ||||||
* | Move is_image_data to script_layout_interface. | Ms2ger | 2016-06-20 | 1 | -2/+1 | |
| | ||||||
* | Move LayoutNode and related traits to script_layout_interface. | Ms2ger | 2016-06-20 | 1 | -2/+2 | |
| | ||||||
* | Introduce LayoutNodeType and LayoutElementType enums. | Ms2ger | 2016-06-20 | 1 | -47/+32 | |
| | ||||||
* | Introduce a ThreadSafeLayoutNodeHelpers trait for methods to stay in layout. | Ms2ger | 2016-06-20 | 1 | -1/+2 | |
| | ||||||
* | Introduce a script_layout_interface crate and move RestyleDamage to it. | Ms2ger | 2016-06-20 | 1 | -1/+1 | |
| | ||||||
* | Small performance improvement | Maciej Skrzypkowski | 2016-06-16 | 1 | -2/+1 | |
| | | | | node.selection() is not used text_content is equal to TextContent::GeneratedContent(content_items) | |||||
* | Make layout only depend on script::layout_interface. | Ms2ger | 2016-06-07 | 1 | -3/+3 | |
| | ||||||
* | Remove empty lines following braces. | Josh Matthews | 2016-05-27 | 1 | -1/+0 | |
| | ||||||
* | Report use statements that use {} with only one entry | Cullen Rhodes | 2016-05-27 | 1 | -2/+2 | |
| | ||||||
* | Stop generating flows under display: none. | Matt Brubeck | 2016-05-25 | 1 | -9/+10 | |
| | | | | Because this is a bottom-up traversal it can generates flows and throw them away. To prevent that, this cascades an internal `-servo-under-display-none` property and then checks that during flow construction. Fixes #1536. | |||||
* | Removed unused imports | Per Lundberg | 2016-05-15 | 1 | -2/+2 | |
| | | | | This fixes #11185. | |||||
* | layout: Minor whitespace cleanup. | Patrick Walton | 2016-05-04 | 1 | -2/+3 | |
| | ||||||
* | layout: Make the hypothetical box for `display: inline-block` with | Patrick Walton | 2016-05-04 | 1 | -6/+6 | |
| | | | | `position: absolute` inline per CSS 2.1 § 10.3.7. | |||||
* | layout: Don't force to overwrite display for pseudo-elements. | Emilio Cobos Álvarez | 2016-04-29 | 1 | -5/+7 | |
| | ||||||
* | layout: Stop storing PrecomputedStyleData in LayoutNode | Emilio Cobos Álvarez | 2016-04-29 | 1 | -62/+77 | |
| | | | | Use the SharedStyleContext instead. | |||||
* | Do not render the contents of block-level replaced elements. | Michael Howell | 2016-04-22 | 1 | -13/+15 | |
| | | | | Fixes #10733 | |||||
* | Don't strip out all empty fragments | Matt Brubeck | 2016-04-16 | 1 | -0/+1 | |
| | | | | | | | | | | Empty fragments may need to be layed out to draw borders, padding/background, and insertion points. (Fragments that consist of discardable whitespace and control characters, on the other hand, can still be discarded.) This ends up preserving some useless empty fragments. It's possible we could avoid this by storing some sort of flag on "important" empty fragments, so we can discard the rest. | |||||
* | Generate a fragment for an empty elements with borders or padding | Matt Brubeck | 2016-04-16 | 1 | -2/+41 | |
| | ||||||
* | Fix meld_with_next_inline_fragment and add meld_with_prev_inline_fragment | Matt Brubeck | 2016-04-16 | 1 | -22/+1 | |
| | | | | | | | | | | | Factor out a new `meld_with_prev_inline_fragment` method that mirrors the existing `meld_with_next_inline_fragment`. This also fixes a bug in `meld_with_next` that was already fixed in the `meld_with_prev` by @notriddle in #10419. The bug is that it was traversing the inline context nodes in the wrong order. It should start at the outermost enclosing node, since the fragments might be at different nesting levels under some common ancestor. | |||||
* | layout: Make absolutely-positioned blocks not generate {ib} splits. | Patrick Walton | 2016-04-15 | 1 | -13/+14 | |
| | | | | | | Improves YouTube. Closes #10642. | |||||
* | Remove an unnecessary Arc::clone | Matt Brubeck | 2016-04-06 | 1 | -1/+1 | |
| | ||||||
* | Whitespace stripping should not result in a dangling, open border. | Michael Howell | 2016-04-05 | 1 | -7/+7 | |
| |