mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove additional chunk of code that should have been removed in bug 238072. (Bug 460029) r+sr=bzbarsky
This commit is contained in:
parent
80fb0fdde4
commit
408718d854
@ -3170,13 +3170,6 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
||||
{
|
||||
COMPUTE_START_RESET(Display, (), display, parentDisplay,
|
||||
Display, displayData)
|
||||
nsIAtom* pseudoTag = aContext->GetPseudoType();
|
||||
PRBool generatedContent = (pseudoTag == nsCSSPseudoElements::before ||
|
||||
pseudoTag == nsCSSPseudoElements::after);
|
||||
NS_ASSERTION(!generatedContent || parentContext,
|
||||
"Must have parent context for generated content");
|
||||
if (parentDisplay == display && generatedContent)
|
||||
parentDisplay = parentContext->GetStyleDisplay();
|
||||
|
||||
// opacity: factor, inherit, initial
|
||||
SetFactor(displayData.mOpacity, display->mOpacity, inherited,
|
||||
@ -3374,7 +3367,7 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
||||
// and 'position'. Since generated content can't be floated or
|
||||
// positioned, we can deal with it here.
|
||||
|
||||
if (nsCSSPseudoElements::firstLetter == pseudoTag) {
|
||||
if (nsCSSPseudoElements::firstLetter == aContext->GetPseudoType()) {
|
||||
// a non-floating first-letter must be inline
|
||||
// XXX this fix can go away once bug 103189 is fixed correctly
|
||||
display->mDisplay = NS_STYLE_DISPLAY_INLINE;
|
||||
|
Loading…
Reference in New Issue
Block a user