From 002c0c28fcfa0c81080ec76c8be2b2d53197015f Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Sat, 11 Sep 2004 06:13:47 +0000 Subject: [PATCH] changing the border-collapse mode needs to cause a reframe as we have two different types of cellframes depending on the mode, bug 254053 idea=bz, r/sr=dbaron --- content/base/src/nsStyleContext.cpp | 9 ++++----- layout/style/nsStyleContext.cpp | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/content/base/src/nsStyleContext.cpp b/content/base/src/nsStyleContext.cpp index 1639d71ec008..efe7c7ae92e1 100644 --- a/content/base/src/nsStyleContext.cpp +++ b/content/base/src/nsStyleContext.cpp @@ -468,7 +468,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) // We begin by examining those style structs that are capable of // causing the maximal difference, a FRAMECHANGE. // FRAMECHANGE Structs: Display, XUL, Content, UserInterface, - // Visibility, Quotes + // Visibility, Outline, TableBorder, Quotes DO_STRUCT_DIFFERENCE(Display); DO_STRUCT_DIFFERENCE(XUL); DO_STRUCT_DIFFERENCE(Column); @@ -476,6 +476,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) DO_STRUCT_DIFFERENCE(UserInterface); DO_STRUCT_DIFFERENCE(Visibility); DO_STRUCT_DIFFERENCE(Outline); + DO_STRUCT_DIFFERENCE(TableBorder); #ifdef MOZ_SVG DO_STRUCT_DIFFERENCE(SVG); #endif @@ -489,7 +490,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) // The following structs cause (as their maximal difference) a reflow // to occur. REFLOW Structs: Font, Margin, Padding, Border, List, - // Position, Text, TextReset, Table, TableBorder + // Position, Text, TextReset, Table, DO_STRUCT_DIFFERENCE(Font); DO_STRUCT_DIFFERENCE(Margin); DO_STRUCT_DIFFERENCE(Padding); @@ -499,15 +500,13 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) DO_STRUCT_DIFFERENCE(Text); DO_STRUCT_DIFFERENCE(TextReset); DO_STRUCT_DIFFERENCE(Table); - DO_STRUCT_DIFFERENCE(TableBorder); // At this point, we know that the worst kind of damage we could do is // a re-render (i.e., a VISUAL change). maxHint = NS_STYLE_HINT_VISUAL; // The following structs cause (as their maximal difference) a - // re-render to occur. VISUAL Structs: Color, Background, Outline, - // UIReset + // re-render to occur. VISUAL Structs: Color, Background, UIReset DO_STRUCT_DIFFERENCE(Color); DO_STRUCT_DIFFERENCE(Background); DO_STRUCT_DIFFERENCE(UIReset); diff --git a/layout/style/nsStyleContext.cpp b/layout/style/nsStyleContext.cpp index 1639d71ec008..efe7c7ae92e1 100644 --- a/layout/style/nsStyleContext.cpp +++ b/layout/style/nsStyleContext.cpp @@ -468,7 +468,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) // We begin by examining those style structs that are capable of // causing the maximal difference, a FRAMECHANGE. // FRAMECHANGE Structs: Display, XUL, Content, UserInterface, - // Visibility, Quotes + // Visibility, Outline, TableBorder, Quotes DO_STRUCT_DIFFERENCE(Display); DO_STRUCT_DIFFERENCE(XUL); DO_STRUCT_DIFFERENCE(Column); @@ -476,6 +476,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) DO_STRUCT_DIFFERENCE(UserInterface); DO_STRUCT_DIFFERENCE(Visibility); DO_STRUCT_DIFFERENCE(Outline); + DO_STRUCT_DIFFERENCE(TableBorder); #ifdef MOZ_SVG DO_STRUCT_DIFFERENCE(SVG); #endif @@ -489,7 +490,7 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) // The following structs cause (as their maximal difference) a reflow // to occur. REFLOW Structs: Font, Margin, Padding, Border, List, - // Position, Text, TextReset, Table, TableBorder + // Position, Text, TextReset, Table, DO_STRUCT_DIFFERENCE(Font); DO_STRUCT_DIFFERENCE(Margin); DO_STRUCT_DIFFERENCE(Padding); @@ -499,15 +500,13 @@ nsStyleContext::CalcStyleDifference(nsStyleContext* aOther) DO_STRUCT_DIFFERENCE(Text); DO_STRUCT_DIFFERENCE(TextReset); DO_STRUCT_DIFFERENCE(Table); - DO_STRUCT_DIFFERENCE(TableBorder); // At this point, we know that the worst kind of damage we could do is // a re-render (i.e., a VISUAL change). maxHint = NS_STYLE_HINT_VISUAL; // The following structs cause (as their maximal difference) a - // re-render to occur. VISUAL Structs: Color, Background, Outline, - // UIReset + // re-render to occur. VISUAL Structs: Color, Background, UIReset DO_STRUCT_DIFFERENCE(Color); DO_STRUCT_DIFFERENCE(Background); DO_STRUCT_DIFFERENCE(UIReset);