mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 983427 part 5: Toggle switch to enable the code added in this bug & avoid reflowing flex items in bottom-to-top order. r=mats
This commit is contained in:
parent
3cc557e2f1
commit
27776d66cd
@ -2406,12 +2406,7 @@ FlexboxAxisTracker::FlexboxAxisTracker(
|
|||||||
// and reversing some logic, to avoid reflowing children in bottom-to-top
|
// and reversing some logic, to avoid reflowing children in bottom-to-top
|
||||||
// order. (This switch can be removed eventually, but for now, it allows
|
// order. (This switch can be removed eventually, but for now, it allows
|
||||||
// this special-case code path to be compared against the normal code path.)
|
// this special-case code path to be compared against the normal code path.)
|
||||||
//
|
static bool sPreventBottomToTopChildOrdering = true;
|
||||||
// XXXdholbert Initially, I'm defaulting this switch to *off*, meaning the
|
|
||||||
// new code isn't enabled yet. A subsequent patch will turn it on, once
|
|
||||||
// intermediate patches have made us react to AreAxesInternallyReversed()
|
|
||||||
// correctly in the appropriate places.
|
|
||||||
static bool sPreventBottomToTopChildOrdering = false;
|
|
||||||
|
|
||||||
if (sPreventBottomToTopChildOrdering) {
|
if (sPreventBottomToTopChildOrdering) {
|
||||||
// If either axis is bottom-to-top, we flip both axes (and set a flag
|
// If either axis is bottom-to-top, we flip both axes (and set a flag
|
||||||
|
Loading…
Reference in New Issue
Block a user