Skip to content

Commit d20e8e7

Browse files
committed
Backed out 8 changesets (bug 1483121, bug 1482782) for build bustages on nsDirectoryService.cpp. CLOSED TREE
Backed out changeset 0a8334bbcf45 (bug 1483121) Backed out changeset cb2dcb859071 (bug 1482782) Backed out changeset c834d4ca2eef (bug 1482782) Backed out changeset 887de0efbb67 (bug 1482782) Backed out changeset 018fdb50a6be (bug 1482782) Backed out changeset 33a8aa8096c9 (bug 1482782) Backed out changeset e3632354f16e (bug 1482782) Backed out changeset 46f8319bee82 (bug 1482782)
1 parent 0b89d23 commit d20e8e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3406
-3398
lines changed

layout/base/RestyleManager.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ ExpectedOwnerForChild(const nsIFrame& aFrame)
19891989
// generated by our DOM parent, and go find the owner frame for it.
19901990
while (parent && (IsAnonBox(*parent) || parent->IsLineFrame())) {
19911991
auto* pseudo = parent->Style()->GetPseudo();
1992-
if (pseudo == nsCSSAnonBoxes::tableWrapper()) {
1992+
if (pseudo == nsCSSAnonBoxes::tableWrapper) {
19931993
const nsIFrame* tableFrame = parent->PrincipalChildList().FirstChild();
19941994
MOZ_ASSERT(tableFrame->IsTableFrame());
19951995
// Handle :-moz-table and :-moz-inline-table.
@@ -2057,10 +2057,10 @@ ServoRestyleState::AddPendingWrapperRestyle(nsIFrame* aWrapperFrame)
20572057
"All our wrappers are anon boxes, and why would we restyle "
20582058
"non-inheriting ones?");
20592059
MOZ_ASSERT(aWrapperFrame->Style()->GetPseudo() !=
2060-
nsCSSAnonBoxes::cellContent(),
2060+
nsCSSAnonBoxes::cellContent,
20612061
"Someone should be using TableAwareParentFor");
20622062
MOZ_ASSERT(aWrapperFrame->Style()->GetPseudo() !=
2063-
nsCSSAnonBoxes::tableWrapper(),
2063+
nsCSSAnonBoxes::tableWrapper,
20642064
"Someone should be using TableAwareParentFor");
20652065
// Make sure we only add first continuations.
20662066
aWrapperFrame = aWrapperFrame->FirstContinuation();
@@ -2188,7 +2188,7 @@ ServoRestyleState::TableAwareParentFor(const nsIFrame* aChild)
21882188

21892189
nsIFrame* parent = aChild->GetParent();
21902190
// Now if parent is a cell-content frame, we actually want the cellframe.
2191-
if (parent->Style()->GetPseudo() == nsCSSAnonBoxes::cellContent()) {
2191+
if (parent->Style()->GetPseudo() == nsCSSAnonBoxes::cellContent) {
21922192
parent = parent->GetParent();
21932193
} else if (parent->IsTableWrapperFrame()) {
21942194
// Must be a caption. In that case we want the table here.
@@ -2380,14 +2380,14 @@ struct RestyleManager::TextPostTraversalState
23802380
ComputedStyle& aNewStyle)
23812381
{
23822382
MOZ_ASSERT(aTextFrame);
2383-
MOZ_ASSERT(aNewStyle.GetPseudo() == nsCSSAnonBoxes::mozText());
2383+
MOZ_ASSERT(aNewStyle.GetPseudo() == nsCSSAnonBoxes::mozText);
23842384

23852385
if (MOZ_LIKELY(!mShouldPostHints)) {
23862386
return;
23872387
}
23882388

23892389
ComputedStyle* oldStyle = aTextFrame->Style();
2390-
MOZ_ASSERT(oldStyle->GetPseudo() == nsCSSAnonBoxes::mozText());
2390+
MOZ_ASSERT(oldStyle->GetPseudo() == nsCSSAnonBoxes::mozText);
23912391

23922392
// We rely on the fact that all the text children for the same element share
23932393
// style to avoid recomputing style differences for all of them.

layout/base/nsCSSFrameConstructor.cpp

Lines changed: 72 additions & 72 deletions
Large diffs are not rendered by default.

layout/base/nsGenConList.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ nsGenConList::DestroyNodesFor(nsIFrame* aFrame)
5959
inline int32_t PseudoCompareType(nsIFrame* aFrame, nsIContent** aContent)
6060
{
6161
nsAtom *pseudo = aFrame->Style()->GetPseudo();
62-
if (pseudo == nsCSSPseudoElements::before()) {
62+
if (pseudo == nsCSSPseudoElements::before) {
6363
*aContent = aFrame->GetContent()->GetParent();
6464
return -1;
6565
}
66-
if (pseudo == nsCSSPseudoElements::after()) {
66+
if (pseudo == nsCSSPseudoElements::after) {
6767
*aContent = aFrame->GetContent()->GetParent();
6868
return 1;
6969
}

layout/base/nsGenConList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ struct nsGenConNode : public mozilla::LinkedListElement<nsGenConNode> {
7373

7474
NS_ASSERTION(mContentIndex < 0 ||
7575
mPseudoFrame->Style()->GetPseudo() ==
76-
nsCSSPseudoElements::before() ||
76+
nsCSSPseudoElements::before ||
7777
mPseudoFrame->Style()->GetPseudo() ==
78-
nsCSSPseudoElements::after(),
78+
nsCSSPseudoElements::after,
7979
"not :before/:after generated content and not counter change");
8080
NS_ASSERTION(mContentIndex < 0 ||
8181
mPseudoFrame->GetStateBits() & NS_FRAME_GENERATED_CONTENT,

layout/base/nsLayoutUtils.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4040,17 +4040,17 @@ nsLayoutUtils::AddBoxesForFrame(nsIFrame* aFrame,
40404040
{
40414041
nsAtom* pseudoType = aFrame->Style()->GetPseudo();
40424042

4043-
if (pseudoType == nsCSSAnonBoxes::tableWrapper()) {
4043+
if (pseudoType == nsCSSAnonBoxes::tableWrapper) {
40444044
AddBoxesForFrame(aFrame->PrincipalChildList().FirstChild(), aCallback);
40454045
if (aCallback->mIncludeCaptionBoxForTable) {
40464046
nsIFrame* kid = aFrame->GetChildList(nsIFrame::kCaptionList).FirstChild();
40474047
if (kid) {
40484048
AddBoxesForFrame(kid, aCallback);
40494049
}
40504050
}
4051-
} else if (pseudoType == nsCSSAnonBoxes::mozBlockInsideInlineWrapper() ||
4052-
pseudoType == nsCSSAnonBoxes::mozMathMLAnonymousBlock() ||
4053-
pseudoType == nsCSSAnonBoxes::mozXULAnonymousBlock()) {
4051+
} else if (pseudoType == nsCSSAnonBoxes::mozBlockInsideInlineWrapper ||
4052+
pseudoType == nsCSSAnonBoxes::mozMathMLAnonymousBlock ||
4053+
pseudoType == nsCSSAnonBoxes::mozXULAnonymousBlock) {
40544054
for (nsIFrame* kid : aFrame->PrincipalChildList()) {
40554055
AddBoxesForFrame(kid, aCallback);
40564056
}
@@ -4074,7 +4074,7 @@ nsLayoutUtils::GetFirstNonAnonymousFrame(nsIFrame* aFrame)
40744074
while (aFrame) {
40754075
nsAtom* pseudoType = aFrame->Style()->GetPseudo();
40764076

4077-
if (pseudoType == nsCSSAnonBoxes::tableWrapper()) {
4077+
if (pseudoType == nsCSSAnonBoxes::tableWrapper) {
40784078
nsIFrame* f = GetFirstNonAnonymousFrame(aFrame->PrincipalChildList().FirstChild());
40794079
if (f) {
40804080
return f;
@@ -4086,9 +4086,9 @@ nsLayoutUtils::GetFirstNonAnonymousFrame(nsIFrame* aFrame)
40864086
return f;
40874087
}
40884088
}
4089-
} else if (pseudoType == nsCSSAnonBoxes::mozBlockInsideInlineWrapper() ||
4090-
pseudoType == nsCSSAnonBoxes::mozMathMLAnonymousBlock() ||
4091-
pseudoType == nsCSSAnonBoxes::mozXULAnonymousBlock()) {
4089+
} else if (pseudoType == nsCSSAnonBoxes::mozBlockInsideInlineWrapper ||
4090+
pseudoType == nsCSSAnonBoxes::mozMathMLAnonymousBlock ||
4091+
pseudoType == nsCSSAnonBoxes::mozXULAnonymousBlock) {
40924092
for (nsIFrame* kid : aFrame->PrincipalChildList()) {
40934093
nsIFrame* f = GetFirstNonAnonymousFrame(kid);
40944094
if (f) {

layout/build/nsLayoutStatics.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,15 @@ nsLayoutStatics::Initialize()
134134

135135
ContentParent::StartUp();
136136

137+
// Register static atoms. Note that nsGkAtoms must be initialized earlier
138+
// than here, so it's done in NS_InitAtomTable() instead.
139+
nsCSSAnonBoxes::RegisterStaticAtoms();
140+
nsCSSPseudoElements::RegisterStaticAtoms();
137141
nsCSSKeywords::AddRefTable();
138142
nsCSSProps::AddRefTable();
139143
nsColorNames::AddRefTable();
140144

141-
#ifdef DEBUG
142-
nsCSSPseudoElements::AssertAtoms();
143-
nsCSSAnonBoxes::AssertAtoms();
144-
#endif
145+
NS_SetStaticAtomsDone();
145146

146147
StartupJSEnvironment();
147148
nsJSContext::EnsureStatics();

layout/forms/nsComboboxControlFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ nsComboboxControlFrame::CreateFrameForDisplayNode()
13941394
// create the ComputedStyle for the anonymous block frame and text frame
13951395
RefPtr<ComputedStyle> computedStyle;
13961396
computedStyle = styleSet->
1397-
ResolveInheritingAnonymousBoxStyle(nsCSSAnonBoxes::mozDisplayComboboxControlFrame(),
1397+
ResolveInheritingAnonymousBoxStyle(nsCSSAnonBoxes::mozDisplayComboboxControlFrame,
13981398
mComputedStyle);
13991399

14001400
RefPtr<ComputedStyle> textComputedStyle;

layout/forms/nsFieldSetFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ nsFieldSetFrame::GetInner() const
6060
{
6161
nsIFrame* last = mFrames.LastChild();
6262
if (last &&
63-
last->Style()->GetPseudo() == nsCSSAnonBoxes::fieldsetContent()) {
63+
last->Style()->GetPseudo() == nsCSSAnonBoxes::fieldsetContent) {
6464
return last;
6565
}
6666
MOZ_ASSERT(mFrames.LastChild() == mFrames.FirstChild());

layout/forms/nsFieldSetFrame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class nsFieldSetFrame final : public nsContainerFrame
8989
/**
9090
* Return the anonymous frame that contains all descendants except
9191
* the legend frame. This is currently always a block frame with
92-
* pseudo nsCSSAnonBoxes::fieldsetContent() -- this may change in the
92+
* pseudo nsCSSAnonBoxes::fieldsetContent -- this may change in the
9393
* future when we add support for CSS overflow for <fieldset>. This really
9494
* can't return null, though callers seem to feel that it can.
9595
*/

layout/forms/nsHTMLButtonControlFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
195195
MOZ_ASSERT(!firstKid->GetNextSibling(),
196196
"Button should have exactly one child frame");
197197
MOZ_ASSERT(firstKid->Style()->GetPseudo() ==
198-
nsCSSAnonBoxes::buttonContent(),
198+
nsCSSAnonBoxes::buttonContent,
199199
"Button's child frame has unexpected pseudo type!");
200200

201201
// XXXbz Eventually we may want to check-and-bail if

0 commit comments

Comments
 (0)