gecko-dev/layout
Bobby Holley 2207c01808 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:39:33 -08:00
..
base Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam 2016-12-12 18:39:33 -08:00
build Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
doc Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron 2016-07-06 13:06:14 +08:00
forms Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
generic Backed out changeset dbd699a36844 (bug 1321412) 2016-12-09 22:27:03 +01:00
inspector Bug 1322661 - Expose (non-XBL) style sheets to devtools. r=xidorn 2016-12-09 08:27:32 -10:00
ipc Bug 1304598 Part 6 - Rename nsViewportFrame.h/cpp to ViewportFrame.h/cpp, and move exported header to mozilla/ subdir. r=dholbert 2016-11-30 11:14:29 +08:00
mathml Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
media Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
painting Bug 1322382 - Add EffectCompositor::GetBaseStyle for nsIFrame. r=birtles 2016-12-10 09:16:33 +09:00
printing Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
reftests Bug 1321703 - Reftest. 2016-12-03 18:53:56 +01:00
style Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam 2016-12-12 18:39:33 -08:00
svg Bug 1319343: Remove unused & broken SVG testcase/demo from layout/svg/tests. r=longsonr 2016-12-04 23:06:57 -08:00
tables Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
tools Bug 1321127 - Add a assertion_count action to mozlog, r=ahal 2016-12-08 09:53:21 -10:00
xul Bug 1313130, change menu shortcut handling so that Windows does not call preventDefault only when the accelerator key is down rather than when a key isn't handled, r=ksteuber 2016-12-06 15:25:09 -10:00
moz.build Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow 2016-11-21 20:01:15 -05:00