aboutsummaryrefslogtreecommitdiffstats
path: root/components
Commit message (Collapse)AuthorAgeFilesLines
* auto merge of #5206 : Ms2ger/servo/pre-rustup-codegen-cleanup, r=jdm,SimonSapinbors-servo2015-03-132-17/+15
|\
| * Don't define empty FooMethods traits.Ms2ger2015-03-132-11/+9
| |
| * Remove unused lifetime parameters to dictionaries.Ms2ger2015-03-131-6/+6
| | | | | | | | They were used for Root members, but those no longer use lifetimes.
* | auto merge of #4417 : pcwalton/servo/border-spacing, r=larsbergstrombors-servo2015-03-1216-176/+477
|\ \ | | | | | | | | | | | | | | | | | | | | | Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. r? @SimonSapin
| * | layout: Implement `border-spacing` per CSS 2.1 § 17.6.1 and the legacyPatrick Walton2015-03-1216-176/+477
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
* | | auto merge of #5194 : hirschenberger/servo/gif_alpha_background, r=larsbergstrombors-servo2015-03-121-1/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | This is GIF specific. It's also done when the image is PNG but PNG is handled separately with the PNG crate, whereas GIFs are handled by the stb-image crate and the distinction between alpha and non-alpha-supporting images was missing.
| * | Fix #5176 by premultiplying the alpha channel to the color channelshirschenberger2015-03-111-1/+13
| | | | | | | | | | | | | | | | | | | | | This is GIF specific. It's also done when the image is PNG but PNG is handled separately with the PNG crate, whereas GIFs are handled by the stb-image crate and the distinction between alpha and non-alpha-supporting images was missing.
* | | auto merge of #5202 : doublec/servo/rename_unwrap, r=Ms2gerbors-servo2015-03-125-13/+13
|\ \ \ | | | | | | | | | | | | Fix for issue #2108. That issue mentions an `unwrap_object` which doesn't seem to exist so I renamed `unwrap` to `native_from_reflector` and `unwrap_jsmanaged` to `native_from_reflector_jsmanaged`. The latter is a bit unweildy - maybe a shorter name might be better?
| * | | Fix #2108 by renaming unwrap functions to native_from_reflectorChris Double2015-03-125-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As noted by @bholley. "unwrap" is confusing because we are both stripping off wrappers *and* getting a native from a reflector. Changing the "unwrap" usage to "native_from_reflector" for clarity. This renames 'unwrap' to 'native_from_reflector' and 'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
* | | | Remove plugin attributes from extern crates.Ms2ger2015-03-111-2/+0
|/ / /
* | | Remove redundant force_relayout calls.Md. Enzam Hossain2015-03-111-8/+0
| | |
* | | Remove unused subpage field from pageGlenn Watson2015-03-112-8/+3
| | |
* | | Remove now unused id field for frame tree.Glenn Watson2015-03-112-30/+6
|/ /
* | auto merge of #5189 : glennw/servo/page-url, r=larsbergstrombors-servo2015-03-103-6/+6
|\ \ | | | | | | | | | This doesn't have any effect on functionality, it just simplifies a few upcoming changes with how FrameIds work.
| * | Make change page url message consistent with other compositor messages.Glenn Watson2015-03-113-6/+6
| |/ | | | | | | This doesn't have any effect on functionality, it just simplifies a few upcoming changes with how FrameIds work.
* / Perform reflow if load events dirty any nodes.Glenn Watson2015-03-112-2/+8
|/ | | | This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
* auto merge of #5185 : mmatyas/servo/canvas_arc, r=pcwaltonbors-servo2015-03-103-1/+19
|\ | | | | | | | | This patch enables the use of `arc()` on the canvas. I couldn't add reftest this time, as it involves some antialiasing issues, and so the reference doesn't match.
| * Canvas: added arc().Mátyás Mustoha2015-03-093-1/+19
| |
* | auto merge of #5182 : zslayton/servo/master, r=jdmbors-servo2015-03-1025-262/+178
|\ \ | | | | | | | | | | | | | | | Opening this PR to invite feedback. Of the many `match` statement candidates for conversion to `if let`, several included `if` guards. Since `if let` doesn't support this syntax, I used nested if statements. If this is undesirable, say the word and I can revert those cases to `match`.
| * | Use new `if let` syntax wherever possible. Fixes #4153.Zack Slayton2015-03-1025-262/+178
| |/
* | auto merge of #5160 : pcwalton/servo/counters-redux, r=SimonSapinbors-servo2015-03-0925-531/+1425
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Reconstructed from #5138 via raw diffing. r? @SimonSapin
| * | layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-0925-531/+1425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* | | auto merge of #5183 : aweinstock314/servo/master, r=saneyukibors-servo2015-03-093-13/+30
|\ \ \ | |/ / |/| | | | | ...via introduction of Worker::WorkerErrorHandler (Closes #5171).
| * | Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via ↵Avi Weinstock2015-03-093-13/+30
| |/ | | | | | | introduction of Worker::WorkerErrorHandler (Closes #5171).
* | Keep track of the containing block writing mode.Matt Brubeck2015-03-095-4/+38
| | | | | | | | | | This is necessary for correctly converting `relative_containing_block_size` to physical coordinates.
* | Layout fixes for RTL child flows in LTR parentsMatt Brubeck2015-03-094-24/+95
|/ | | | | | | | | ...and vice-versa. This is not a complete fix for all mixed-direction layout cases, but it fixes enough problems to make some simple test cases pass, like tha attached reftest. There are FIXME comments for many of the remaining issues. In particular, this does not yet handle RTL layout of fixed/absolute elements.
* auto merge of #5170 : metajack/servo/update-cocoa-glutin, r=pcwaltonbors-servo2015-03-071-4/+4
|\ | | | | | | This just requires updating glutin and cocoa to pick up some backported fixes.
| * Fix scrolling on OS X.Jack Moffitt2015-03-061-4/+4
| | | | | | | | This just requires updating glutin and cocoa to pick up some backported fixes.
* | auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdmbors-servo2015-03-064-18/+70
|\ \
| * | Implements reflow events debugging.Adenilson Cavalcanti2015-03-064-18/+70
| | | | | | | | | | | | | | | Start servo with -Z relayout-event and you should have reflow events printed to the terminal.
* | | auto merge of #5054 : psdh/servo/scriptimplementation, r=jdmbors-servo2015-03-063-9/+39
|\ \ \ | |_|/ |/| | | | | Fixes #4089
| * | implement missing steps from "prepare a script" algorithmPrabhjyot Singh Sodhi2015-03-063-9/+39
| | | | | | | | | | | | Fixes #4089
* | | auto merge of #5153 : cyndis/servo/check-font-result, r=jdmbors-servo2015-03-061-24/+41
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thread font load errors from platform font loading code to FontContext::get_layout_font_group_for_style, and cache the failure result, instead of panicing the thread when a font fails to load. Before this patch, a failed font load would panic a LayoutTask, causing a cascade of panics, eventually aborting the whole engine during a panic within panic. On my Arch Linux machine almost every page would crash in this manner, including e.g. reddit.com and cnn.com. Mosf of the requested fonts would load fine but some single variant of Helvetica would fail always. Not sure how to create a test for this as it seems pretty system-specific. Cheers, cyndis
| * | | Handle font load errors in FontContextMikko Perttunen2015-03-061-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thread font load errors from platform font loading code to FontContext::get_layout_font_group_for_style, and cache the failure result, instead of panicing the thread when a font fails to load. Before this patch, a failed font load would panic a LayoutTask, causing a cascade of panics, eventually aborting the whole engine during a panic within panic.
* | | | ScriptTask::mouse_over_targets is not traced #4985Guro Bokum2015-03-062-4/+31
| | | |
* | | | auto merge of #5105 : gilles-leblanc/servo/issue-5063, r=jdmbors-servo2015-03-054-14/+152
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds hostsfile parsing support for: * Tabs * Comments (line and end of line) * IPv4 address validation * Basic IPv6 address validation * End of line whitespaces * Host name alias (multiple host names per address) Fixes #5063
| * | | | Specify regex and regex_macros version numbersGilles Leblanc2015-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For compatibility with current Rust version. Issue #5063
| * | | | Add more robust hostsfile parsingGilles Leblanc2015-03-054-14/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds hostsfile parsing support for: * Tabs * Comments (line and end of line) * IPv4 address validation * Basic IPv6 address validation * End of line whitespaces * Host name alias (multiple host names per address) Fixes #5063
* | | | | auto merge of #5154 : luniv/servo/viewpoint-percent-lengths, r=SimonSapinbors-servo2015-03-056-117/+244
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Spec: http://dev.w3.org/csswg/css-values-3/#viewport-relative-lengths
| * | | | Remove un-used use statementJames Gilbertson2015-03-051-2/+0
| | | | |
| * | | | Remove the 'ch' font-relative length unitJames Gilbertson2015-03-051-4/+0
| | | | |
| * | | | The 'font-size' property needs to use context.inherited_font_size, not ↵James Gilbertson2015-03-051-2/+9
| | | | | | | | | | | | | | | | | | | | context.font_size
| * | | | Implement viewport percentage length units ('vw', 'vh', 'vmin', 'vmax')James Gilbertson2015-03-053-0/+64
| | | | |
| * | | | Defer media query width computation until evalationJames Gilbertson2015-03-051-27/+43
| | | | |
| * | | | Refactor style::values::specified::Length to store length by kind (absolute, ↵James Gilbertson2015-03-053-75/+105
| | | | | | | | | | | | | | | | | | | | font-relative or character width)
| * | | | Make the initial viewport size available to style::properties::cascadeJames Gilbertson2015-03-053-16/+30
| |/ / /
* | | | Get rid of servo_utilDan Fox2015-03-0525-68/+68
| | | |
* | | | Merge in servo/masterDan Fox2015-03-0547-980/+1596
|\ \ \ \
| * | | | Remove an unused import from properties.rs.Ms2ger2015-03-051-2/+0
| |/ / /
| * | | auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2gerbors-servo2015-03-053-7/+7
| |\ \ \ | | |_|/ | |/| | | | | | Fixes #5112, #3960