gecko-dev/layout
Daniel Holbert 3ee9d5690d Bug 1320484 part 1: Improve documentation for debug-only function FrameWantsToBeInAnonymousItem(), & change its arg from nsIAtom* to nsIFrame*. r=mats
This patch doesn't affect behavior at all -- it just refactors the
sanity-checking function "FrameWantsToBeInAnonymousItem()", so that the next
patch in this series can give it a new special case that checks a state bit on
the container frame.

This patch renames "parent" to "container" in this function's variable-names,
for clarity, because when this function returns true, the flex/grid container
is actually NOT expected to be the parent of aFrame.  Rather, it's expected to
be the grandparent, and the anonymous flex/grid item would be the parent.  So,
"aContainerFrame"/"containerType" is a bit more accurate (representing the
flex/grid container for aFrame).

Also worth mentioning: this patch makes FrameWantsToBeInAnonymousItem() perform
its own local GetType() call, instead of accepting an already-queried GetType()
result from the caller (as it previously did).  Technically this could cause a
slight perf hit, but it doesn't really matter since this is in "#ifdef DEBUG"
sanity-checking code anyway.  We could keep the nsIAtom* as an additional arg
to avoid this new call, but it seems better to fall on the side of simplicity &
just look up GetType() independently, rather than complicating the function
signature with an extra arg.

MozReview-Commit-ID: 4oJFkQMuH9c

--HG--
extra : rebase_source : 3b5d60d8c15e69470f450168698b855e353486d3
2017-01-04 20:29:19 -08:00
..
base Bug 1320484 part 1: Improve documentation for debug-only function FrameWantsToBeInAnonymousItem(), & change its arg from nsIAtom* to nsIFrame*. r=mats 2017-01-04 20:29:19 -08:00
build Bug 1322550 - Rename DOMStorage to Storage, r=smaug 2017-01-04 14:53:01 +01:00
doc
forms Bug 1326163 part 3. Rename nsDisplayFieldSetBorderBackground to nsDisplayFieldSetBorder, since that's what it does ever since bug 1227327 was fixed in <https://hg.mozilla.org/mozilla-central/rev/5453b1ce4e85e98d358c12c8dc168a9f484b7491>. r=dbaron 2016-12-29 18:10:26 -08:00
generic Merge inbound to central, a=merge 2017-01-05 17:30:35 -08:00
inspector Bug 1322191 part 3 - [css-display] Tests for display:flow-root. r=dholbert 2016-12-23 19:11:04 +01: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 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron 2016-12-31 00:57:37 +11:00
media
painting Bug 1328095 - [writing-mode] Make JoinBoxesForVerticalSlice use logical coordinates (and rename it JoinBoxesForBlockAxisSlice accordingly). r=jfkthame 2017-01-04 21:35:19 +01:00
printing Bug 1321566 Part 2: Use Disconnect pattern to manage nsPrintEngine member in nsPagePrintTimer. r=bobowen 2017-01-03 11:10:11 +00:00
reftests Bug 1328095 - Reftest (also covers bug 1232194). 2017-01-04 21:35:19 +01:00
style Bug 849404 RTL support for text/plain documents r=dbaron 2016-12-24 01:59:12 +02:00
svg Bug 1323912 - Part 5. Apply opacity in mask layer painting path. r=mstange 2017-01-03 17:12:32 +08:00
tables Backed out changeset a44640701558 (bug 1323912) 2017-01-04 21:47:16 -05:00
tools Backed out changeset 193d05c4b3fc (bug 1325148) 2016-12-27 15:14:18 +01:00
xul Bug 1326290 - Correct sequencing of layer transaction and StartAsyncScrollbarDrag messages. r=kats 2017-01-04 13:42:36 -05: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