From 2ae601e147b77b45df27bdb2addec89a548c687c Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Fri, 9 Sep 2011 12:50:20 -0700 Subject: [PATCH] Add comment pointing out reason for distinguishing anonymous blocks for positioned inlines. No bug. --- layout/base/nsCSSFrameConstructor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 3e0ab327821..90ae7202e94 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -10802,6 +10802,11 @@ nsCSSFrameConstructor::CreateIBSiblings(nsFrameConstructorState& aState, nsIFrame* parentFrame = aInitialInline->GetParent(); // Resolve the right style context for our anonymous blocks. + // The distinction in styles is needed because of CSS 2.1, section + // 9.2.1.1, which says: + // When such an inline box is affected by relative positioning, any + // resulting translation also affects the block-level box contained + // in the inline box. nsRefPtr blockSC = mPresShell->StyleSet()-> ResolveAnonymousBoxStyle(aIsPositioned ?