Commit 11861384 authored by caillon@returnzero.com's avatar caillon@returnzero.com
Browse files

Bug 215842 - JavaScript resets fieldset absolute positioning.

Patch by Boris Zbarsky <bzbarsky@mit.edu>
r+sr=dbaron@dbaron.org
a=asa@mozilla.org
parent c349f713
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -7472,7 +7472,16 @@ nsCSSFrameConstructor::GetAbsoluteContainingBlock(nsIPresContext* aPresContext,
                 (nsLayoutAtoms::positionedInlineFrame == frameType)) {
        containingBlock = frame;
        break;
      } else if (nsLayoutAtoms::fieldSetFrame == frameType) {
        // If the positioned frame is a fieldset, use the area frame inside it
        frame->FirstChild(aPresContext, nsnull, &containingBlock);
        break;
      }
#ifdef DEBUG
      else {
        NS_WARNING("Positioned frame that does not handle positioned kids; looking further up the parent chain");
      }
#endif
    }
  }
+9 −0
Original line number Diff line number Diff line
@@ -7472,7 +7472,16 @@ nsCSSFrameConstructor::GetAbsoluteContainingBlock(nsIPresContext* aPresContext,
                 (nsLayoutAtoms::positionedInlineFrame == frameType)) {
        containingBlock = frame;
        break;
      } else if (nsLayoutAtoms::fieldSetFrame == frameType) {
        // If the positioned frame is a fieldset, use the area frame inside it
        frame->FirstChild(aPresContext, nsnull, &containingBlock);
        break;
      }
#ifdef DEBUG
      else {
        NS_WARNING("Positioned frame that does not handle positioned kids; looking further up the parent chain");
      }
#endif
    }
  }