aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout
Commit message (Collapse)AuthorAgeFilesLines
* Split layout code into a separate crate.Josh Matthews2014-06-2824-13031/+0
|
* Upgrade to latest Rust.Manish Goregaokar2014-06-277-11/+12
|
* Rename |Profiler| as |TimeProfiler|.Nicholas Nethercote2014-06-262-21/+21
| | | | | And likewise for |ProfilerChan|, |profiler_chan|, and so on. This contrasts nicely with the newly added |MemoryProfiler|.
* Suppress the compiler warning about raw_pointer_deriving in layout/context.rs.Tetsuharu OHZEKI2014-06-251-0/+1
| | | | | | | | | | This suppress the following compile warning: ``` compile: servo src/components/main/layout/context.rs:75:18: 75:26 warning: use of `#[deriving]` with a raw pointer, #[warn(raw_pointer_deriving)] on by default src/components/main/layout/context.rs:75 pub stylist: *Stylist, ^~~~~~~~ ```
* Remove box from image cache task.Glenn Watson2014-06-233-4/+4
|
* Remove LocalImageCacheHandle hack and associated unsafe code.Glenn Watson2014-06-233-14/+10
|
* Remove a dead assignment from set_width_constraint_solutions.Ms2ger2014-06-221-1/+1
|
* Merge pull request #2682 from bjz/assorted-cleanupsLars Bergstrom2014-06-212-84/+74
|\ | | | | Assorted cleanups in gfx and layout
| * Clean up skip_while iterationBrendan Zabarauskas2014-06-201-3/+5
| |
| * Use Option::expect instead of pattern matching in try_append_to_line_by_new_lineBrendan Zabarauskas2014-06-201-26/+23
| |
| * Remove some unnecessary mutable referencesBrendan Zabarauskas2014-06-201-3/+3
| |
| * Make move mutation out of compute_minimum_ascent_and_descentBrendan Zabarauskas2014-06-202-5/+6
| |
| * Use iterators to make some logic clearerBrendan Zabarauskas2014-06-201-49/+39
| |
* | Separate "desktop" and "mobile" zoom calculations.Matt Brubeck2014-06-201-2/+6
| | | | | | | | | | | | | | | | This ensures that the layout viewport responds to each type of zoom correctly, and lays the ground for CSS Media Queries and CSS Device Adaption. Until we have proper touch support, mobile-style "pinch" zoom can be simulated by holding Ctrl while scrolling with a mousewheel or trackpad gesture.
* | Add overflow to child layer sizeMartin Robinson2014-06-171-12/+23
|/ | | | | | | | | When creating child layers it is important to consider overflow when determining the size of the layer. This also means that overflow should not be too large, so also shrink block width down to the size of their contained fragment. This means that a block that has been explicitly sized to width:100px should be 100 pixels wide instead of the width of its containing block.
* Use internal mutability for CharacterData::data.Ms2ger2014-06-111-3/+3
|
* Use internal mutability for HTMLIFrameElement.Ms2ger2014-06-111-1/+1
|
* auto merge of #2624 : mbrubeck/servo/units, r=pcwaltonbors-servo2014-06-091-2/+2
|\ | | | | | | | | | | | | | | | | | | This fixes an issue where the CSS viewport was too large on high-DPI displays because it was set to the window size in device pixels, instead of px. This patch ensures that the window size is converted from device pixels to px before being passed to script/layout code. The Window trait now exposes the window size in both device pixels and density-independent screen coordinates, with clearer method names.
| * Outside of compositor, store window size in CSS pxMatt Brubeck2014-06-091-2/+2
| | | | | | | | | | | | | | | | | | | | This fixes an issue where the CSS viewport was too large on high-DPI displays because it was set to the window size in device pixels, instead of px. This patch ensures that the window size is converted from device pixels to px before being passed to script/layout code. The Window trait now exposes the window size in both device pixels and density-independent screen coordinates, with clearer method names.
* | Remove 'LayoutNode.pad' field.Tetsuharu OHZEKI2014-06-092-14/+12
| |
* | Fix type the type name.Tetsuharu OHZEKI2014-06-091-1/+1
| |
* | Remove PaddedUnsafeFlow.Tetsuharu OHZEKI2014-06-093-55/+32
|/
* Use RefCell for mutability of Element::style_attribute.Tetsuharu OHZEKI2014-06-081-2/+7
|
* Add an issue number to a FIXME comment.Ms2ger2014-06-061-1/+1
|
* Fix and disable some compile warnings.Ms2ger2014-06-061-0/+1
|
* auto merge of #2589 : bjz/servo/cleanups, r=pcwaltonbors-servo2014-06-054-147/+28
|\ | | | | | | | | | | @pcwalton r? Might conflict with the rust upgrade - I can rebase later.
| * Use bitflags! for RestyleDamageBrendan Zabarauskas2014-06-054-147/+28
| |
* | Fix the vertical alignment error for img tag.Junyoung Cho2014-06-051-1/+5
|/
* Upgrade Rust.Jack Moffitt2014-06-0522-123/+119
|
* layout: Reference count flows, and forbid unsafe code in many places.Patrick Walton2014-06-0319-453/+484
|
* auto merge of #2555 : brson/servo/warnings, r=metajackbors-servo2014-06-021-2/+2
|\ | | | | | | Depends on https://github.com/mozilla-servo/rust-fontconfig/pull/19, https://github.com/mozilla-servo/rust-harfbuzz/pull/21, https://github.com/mozilla-servo/rust-hubbub/pull/23, https://github.com/mozilla-servo/rust-layers/pull/68, https://github.com/mozilla-servo/sharegl/pull/29, https://github.com/mozilla-servo/rust-mozjs/pull/85.
| * Eliminate some warningsBrian Anderson2014-06-021-2/+2
| |
* | Use destructuring to clean up InlineFragments::push_allBrendan Zabarauskas2014-06-021-7/+3
| |
* | Remove InlineFragmentMapBrendan Zabarauskas2014-06-021-42/+24
| |
* | Remove last methods from InlineFragmentMapBrendan Zabarauskas2014-06-022-43/+40
| |
* | Remove the need to destructure InlineFragmentsBrendan Zabarauskas2014-06-023-226/+189
| | | | | | | | We do this by moving InlineFragmentMap::fixup into InlineFragments
* | Add documentation for Line::{bounds, green_zone}Brendan Zabarauskas2014-06-021-14/+63
|/
* Use Cell/RefCell for interior mutability of Node.Tetsuharu OHZEKI2014-05-301-7/+7
|
* JS<T> contains '*T' instead of RefCell.Tetsuharu OHZEKI2014-05-301-0/+8
|
* Add the 'direction' property and fix one RTL layout corner case.Simon Sapin2014-05-291-6/+16
|
* Improve line index documentationBrendan Zabarauskas2014-05-281-33/+41
|
* Improve naming of structs in inline.rsBrendan Zabarauskas2014-05-282-61/+61
|
* Rename `box_.rs` to `fragment.rs`Brendan Zabarauskas2014-05-2813-14/+14
|
* Rename functions, fields and adjust comments to use `fragment` instead of `box`Brendan Zabarauskas2014-05-2815-849/+847
| | | | I tried to make sure to keep 'box' where it made sense, and alter comments so they still make sense.
* Convert usages of `Box` in type identifiers to `Fragment`Brendan Zabarauskas2014-05-2813-369/+364
|
* Prefix fragment types in inline.rs with `Inline`Brendan Zabarauskas2014-05-281-28/+28
| | | | This is to reduce confusion once we rename `servo::box_::Box` to `servo::fragment::Fragment`.
* auto merge of #2478 : SimonSapin/servo/style-getters, r=metajackbors-servo2014-05-2815-116/+117
|\ | | | | | | This isolates layout code from upcoming refactoring in properties.rs.mako.
| * Remove CowArc and use the new Arc::make_unique() method instead.Simon Sapin2014-05-231-5/+6
| |
| * Make ComputedStyle fields private and add getters.Simon Sapin2014-05-2314-111/+111
| | | | | | | | This isolates layout code from upcoming refactoring in properties.rs.mako.
* | Formatting fixesBrendan Zabarauskas2014-05-271-15/+14
| |