servo/components
Bobby Holley 3a56954069 Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam
I noticed that our current behavior in ContentRangeInserted is incorrect. Unlike
ContentInserted (where this code lived originally), ContentRangeInserted takes a
start and end element. I'm not sure if we ever take that path for new content that
needs style, but it seemed sketchy. And generally, it seems nice to just always
style new content the same way (though we still need to style NAC by the subtree
root, since it hasn't been attached to the parent yet).

For situations where there is indeed only one unstyled child, the traversal
overhead should be neglible, since we special-case the single-element in
parallel.rs to avoid calling into rayon.

Being more explicit about what we want here also makes us more robust against
the other handful of callpaths that can take us into
nsCSSFrameConstructor::{ContentRangeInserted,ContentAppended}. Currently we
can call StyleNewSubtree on an already-styled element via RecreateFramesForContent,
which triggers an assertion in the servo traversal.

MozReview-Commit-ID: DqCGh90deHH
2016-12-12 18:50:33 -08:00
..
atoms Use PropertyId instead of Atom for CSSStyleDeclaration::get_computed_style 2016-12-09 17:06:50 -10:00
bluetooth Auto merge of #14468 - szeged:blocklist-allowed-services, r=jdm 2016-12-06 19:26:50 -08:00
bluetooth_traits Fix a typo in bluetooth_traits/lib.rs 2016-11-28 15:49:42 +01:00
canvas Implement WebGLContext resize, r=emilio 2016-12-01 00:56:59 +01:00
canvas_traits Remove old shaders, updates for WR feature and API changes. 2016-11-25 06:28:21 +10:00
compositing Auto merge of #14470 - gterzian:implement_scroll_transactions, r=mbrubeck 2016-12-12 16:27:34 -08:00
constellation Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
debugger Disable the debugger on Android until mio works on Android 2016-11-17 19:11:30 -06:00
devtools Remove #![feature(custom_attribute)] 2016-11-03 11:24:13 +01:00
devtools_traits Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
gfx Remove old shaders, updates for WR feature and API changes. 2016-11-25 06:28:21 +10:00
gfx_traits Don't promote all scrollable regions to stacking contexts 2016-11-05 18:36:45 +01:00
jstraceable_derive Mark JSTraceable and its method as unsafe 2016-12-06 13:15:06 -10:00
layout Auto merge of #14490 - stshine:replaced-size, r=emilio 2016-12-12 03:25:03 -08:00
layout_thread Auto merge of #14535 - servo:property-id, r=mbrubeck 2016-12-10 01:16:26 -08:00
layout_traits Make the layout content process shutdown sender optional. 2016-11-30 01:24:45 +01:00
msg Auto merge of #14286 - gterzian:update_canvas_with_offscreen_context, r=jdm 2016-11-24 12:29:52 -08:00
net Remove Request::done. 2016-12-09 12:36:46 -10:00
net_traits Remove Request::done. 2016-12-09 12:36:46 -10:00
plugins Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
profile Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
profile_traits Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
range Remove #![feature(rustc_attrs)] 2016-11-03 11:24:19 +01:00
script Auto merge of #14535 - servo:property-id, r=mbrubeck 2016-12-10 01:16:26 -08:00
script_layout_interface Auto merge of #14535 - servo:property-id, r=mbrubeck 2016-12-10 01:16:26 -08:00
script_traits Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
servo Remove misleading section from non-toplevel Cargo.toml. 2016-11-29 16:17:18 -05:00
style Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam 2016-12-12 18:50:33 -08:00
style_traits Auto merge of #14135 - frewsxcv:code-like, r=Ms2ger 2016-11-14 06:59:35 -06:00
url Auto merge of #14274 - stshine:servo-url-index, r=emilio 2016-11-20 12:35:14 -06:00
util Make unnecessarily public function private. 2016-12-09 08:38:15 -10:00
webdriver_server Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00