aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-0829-13877/+0
|
* Merge pull request #3206 from glennw/layout-trace-encPatrick Walton2014-09-079-6/+240
|\ | | | | Add an initial pass at a layout debug module.
| * Change scope macro to be a no-op in release builds.Glenn Watson2014-09-055-10/+25
| |
| * Add a layout debug module. This outputs a trace of the layout process to a JSONGlenn Watson2014-09-049-5/+224
| | | | | | | | | | | | file which can be viewed in an external tool. It provides a timelapse view of how the flow tree and fragments changed during the layout process, which makes it easier to debug layout bugs.
* | make Node.type_id field privateSean McArthur2014-09-051-1/+1
| |
* | Fix inline size bubbling with fixed width block. Improve intrinsic inline ↵Glenn Watson2014-09-052-11/+20
| | | | | | | | | | | | | | | | | | | | size calculation for text fragments. These two fixes are related to the wikipedia metabug #2554. They don't make the wikipedia page look better (they cause a slight regression in the top caption table), but they are prerequisites for fixing some of the other layout issues that remain. Added reftests for each of the three cases I have come across that this patch solves.
* | Added a fast no-message RPC interface to the layout task.Clark Gaebel2014-09-041-231/+276
|/
* Add support for borders on inline elements.Glenn Watson2014-09-031-7/+19
| | | | | | | Fix ahem reftests on mac, by disabling text AA in reftest mode. Also fix precision issues in font metrics to correct height and baseline calculations.
* Implement sideways text.Simon Sapin2014-08-293-15/+57
|
* Make text decorations be independent display items.Simon Sapin2014-08-291-51/+60
| | | | The goal it to avoid having too much layout logic (which gets more complex in vertical text) in gfx code.
* Merge pull request #3170 from SimonSapin/trait-object-transmuteSimon Sapin2014-08-293-28/+38
|\ | | | | Transmute std::raw::TraitObject rather than (some) custom tuples/structs
| * Transmute std::raw::TraitObject rather than (some) custom tuples/structs.Simon Sapin2014-08-283-28/+38
| | | | | | | | | | | | | | | | Context: http://www.mail-archive.com/dev-servo@lists.mozilla.org/msg00867.html This fixes the known issues, but there might be other places where we do "bad" transmutes that I haven’t discovered.
* | Fix comment syntaxMatt Brubeck2014-08-271-1/+1
| |
* | Fix <br> supportMatt Brubeck2014-08-271-1/+3
|/
* Remove some unneeded pubsMatt Brubeck2014-08-272-7/+7
|
* Add support for backgrounds on inline elements. Fix fixup() by removing it.Glenn Watson2014-08-275-375/+122
| | | | | | | | | The code that managed ranges was buggy - failing on edge cases such as a span within a span. I have refactored the code so that the context information for inline formatting can optionally be stored within a fragment. This seems cleaner to me, and fixes the bugs encountered when making these changes by removing the need for the fixup() functionality (and ranges).
* Merge pull request #3110 from SimonSapin/writing-modes-reftestSimon Sapin2014-08-275-73/+75
|\ | | | | Add a basic CSS Writing Modes reftest
| * Set the origin of the root element per its writing mode.Simon Sapin2014-08-261-3/+4
| | | | | | | | It’s not always (0, 0) anymore.
| * Convert back to physical some layout coordinates.Simon Sapin2014-08-264-70/+70
| |
| * Dump display lists when debug!() is enabled for gfx::display_listSimon Sapin2014-08-261-0/+1
| |
* | Remove obsolete TODO commentsMatt Brubeck2014-08-261-5/+0
|/
* Prevent margin collapse in the root flowMartin Robinson2014-08-181-2/+6
| | | | | | According to the CSS specification, section 8.3.1, margins of the root element's box do not collapse. Ensure that root flow margins do not collapse during the assign heights phase.
* Ensure that block elements with replaced content don't get their block size ↵Glenn Watson2014-08-181-3/+4
| | | | overwritten.
* Make more things private to the style crate.Simon Sapin2014-08-161-15/+4
|
* Refactor and fix src parsing in @font-faceSimon Sapin2014-08-161-4/+2
|
* Fix case sensitivity of local name selectors.Simon Sapin2014-08-161-7/+14
|
* Move UA stylesheet to src/components/styleSimon Sapin2014-08-164-139/+1
|
* Remove special treatment of UA stylesheet for parse errors.Simon Sapin2014-08-161-2/+2
| | | | CSS parse errors are now off by default anyway.
* Rename MatchedProperty to DeclarationBlockSimon Sapin2014-08-161-12/+12
|
* Change line-height to be read from the font itself, rather thanGlenn Watson2014-08-123-22/+26
| | | | a hard-coded estimate.
* Refactor how LayoutContext structure works (reduce TLS lookups + simplify ↵Glenn Watson2014-08-1116-355/+212
| | | | | | | | | | | | fns used by seq/parallel code paths). - LayoutContext is renamed to SharedLayoutContext. - SharedLayoutContext is immutable. - LayoutContext is a wrapper around SharedLayoutContext + access to local caches (font, style etc). - Creating a LayoutContext does a single local_data lookup to fetch the cache information. - Android shares same implementation of context.rs as other platforms. - LayoutContext can be used from both green thread (parallel layout) and native thread (sequential layout). - Removes the need for other types (such as FontContext, StyleSharingCandidateCache etc) to be passed around.
* Upgrade Rust.Jack Moffitt2014-08-0812-52/+67
|
* Decouple compositing and script crates.Josh Matthews2014-08-082-18/+62
|
* Fix rustdoc comment syntaxMatt Brubeck2014-08-061-1/+1
|
* Merge pull request #3000 from Ms2ger/rendertaskMs2ger2014-08-061-1/+1
|\ | | | | Use spawn_named_with_send_on_failure for the RenderTask; r=Manishearth
| * Pass an argument to spawn_named_with_send_on_failure to support spawning ↵Josh Matthews2014-08-041-1/+1
| | | | | | | | native tasks.
* | Merge pull request #2791 from glennw/web-fontsglennw2014-08-061-1/+20
|\ \ | | | | | | Add basic support for web fonts. Synchronous loading only
| * | Don't rely on font hint for format detection. Handle parsing commaGlenn Watson2014-07-241-8/+3
| | | | | | | | | | | | | | | separated format hints. Fix oversight in mac code dealing with creating web fonts from memory.
| * | Address review comments.Glenn Watson2014-07-241-7/+10
| | |
| * | Add basic support for web fonts. Synchronous loading onlyGlenn Watson2014-07-241-1/+22
| | | | | | | | | | | | | | | | | | for now, and only deals with TTF format fonts. For an example, try loading http://icons.marekventur.de
* | | Merge pull request #3027 from zwarich/render-msg-renamesCameron Zwarich2014-08-051-2/+2
|\ \ \ | | | | | | | | Rename messages used in rendering
| * | | Rename RenderMsg to RenderInitMsgCameron Zwarich2014-08-051-2/+2
| | | | | | | | | | | | | | | | RenderMsg doesn't actually render anything, so the name is confusing.
* | | | Implement support for :enabled CSS selectorBruno de Oliveira Abinader2014-08-051-0/+6
| | | |
* | | | Implement support for :disabled CSS selectorBruno de Oliveira Abinader2014-08-051-0/+6
|/ / /
* | | Move documentation table stylining to a shared location.Simon Sapin2014-08-041-6/+0
| | |
* | | Un-blacklist the layout crate from rustdoc. See #2924.Simon Sapin2014-08-041-15/+15
| |/ |/| | | | | | | | | | | | | | | Whatever rustdoc bug we used to hit was solved by the Rust upgrade. (The style crate still causes rustdoc to overflow its stack.) Also use Markdown tables rather than ASCII diagrams in inlines.rs. Not only does this look nicer, this works around rustdoc trying (and failing) to parse them as Rust code.
* | Upgrade Rust.Jack Moffitt2014-08-0212-36/+36
| |
* | Merge pull request #2953 from glennw/inline-whitespacePatrick Walton2014-07-301-12/+9
|\ \ | | | | | | Change layout to handle whitespace between inline elements in HTML file.
| * | Change layout to handle whitespace between inline elements in HTML file.Glenn Watson2014-07-311-12/+9
| | | | | | | | | | | | This matches the behaviour of other browsers.
* | | Merge pull request #2927 from saneyuki/id_atomJosh Matthews2014-07-291-0/+5
|\ \ \ | | | | | | | | Port `id` attribute to use atom.