Bug 38370.
Allow color of an HR element to be changed. Make HR be a block element in quirks mode instead of the hacky inline we were previously using (standards mode already had it as a block). Patch by Ian Hickson <ian@hixie.ch> with minor modifications by me. r+sr=bzbarsky@mit.edu
This commit is contained in:
@@ -4582,13 +4582,6 @@ nsCSSFrameConstructor::ConstructHTMLFrame(nsIPresShell* aPresShell,
|
||||
// instead...
|
||||
rv = NS_NewImageFrame(aPresShell, &newFrame);
|
||||
}
|
||||
else if (nsHTMLAtoms::hr == aTag) {
|
||||
isReplaced = PR_TRUE;
|
||||
if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames
|
||||
ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems);
|
||||
}
|
||||
rv = NS_NewHRFrame(aPresShell, &newFrame);
|
||||
}
|
||||
else if (nsHTMLAtoms::br == aTag) {
|
||||
if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames
|
||||
ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems);
|
||||
|
||||
Reference in New Issue
Block a user