Home | History | Annotate | Download | only in web

Lines Matching refs:container

57     const RenderBlock* container = renderer->containingBlock();
58 while (!container->hasOverflowClip() && !container->isRenderView())
59 container = container->containingBlock();
60 return container;
63 static FloatRect toNormalizedRect(const FloatRect& absoluteRect, const RenderObject* renderer, const RenderBlock* container)
67 ASSERT(container || renderer->isRenderView());
68 if (!container)
76 if (container->hasOverflowClip())
77 scrolledOrigin = -IntPoint(container->scrolledContentOffset());
79 FloatRect overflowRect(scrolledOrigin, container->maxLayoutOverflow());
80 FloatRect containerRect = container->localToAbsoluteQuad(FloatQuad(overflowRect)).enclosingBoundingBox();
85 // Make the coordinates relative to the container enclosing bounding box.
92 if (renderer->style()->position() == FixedPosition && container->isRenderView())
93 normalizedRect.move(-toRenderView(container)->frameView()->scrollOffsetForFixedPosition());
104 // Normalize the input rect to its container block.
113 const RenderBlock* container = enclosingScrollableAncestor(renderer);
116 FloatRect normalizedBoxRect = toNormalizedRect(renderer->absoluteBoundingBoxRect(), renderer, container);
120 renderer = container;