Source/core/dom/ContainerNode.cpp
// FIXME: This override is only needed for inline anchors without an
// InlineBox and it does not belong in ContainerNode as it reaches into
// the render and line box trees.
// https://code.google.com/p/chromium/issues/detail?id=248354
This override is only needed for inline anchors without an
InlineBox and it does not belong in ContainerNode as it reaches into
the render and line box trees.
This override is only needed for inline anchors without an InlineBox and it does not belong in ContainerNode as it reaches into the render and line box trees .
LayoutRect ContainerNode::boundingBox() const
{
    FloatPoint upperLeft, lowerRight;
    bool foundUpperLeft = getUpperLeftCorner(upperLeft);
    bool foundLowerRight = getLowerRightCorner(lowerRight);
    if (foundUpperLeft != foundLowerRight) {
        if (foundUpperLeft)
            lowerRight = upperLeft;
        else
            upperLeft = lowerRight;
    }
    return enclosingLayoutRect(FloatRect(upperLeft, lowerRight.expandedTo(upperLeft) - upperLeft));
}
LayoutRect ContainerNode :: boundingBox ( ) const { FloatPoint upperLeft , lowerRight ; bool foundUpperLeft = getUpperLeftCorner ( upperLeft ) ; bool foundLowerRight = getLowerRightCorner ( lowerRight ) ; if ( foundUpperLeft != foundLowerRight ) { if ( foundUpperLeft ) lowerRight = upperLeft ; else upperLeft = lowerRight ; } return enclosingLayoutRect ( FloatRect ( upperLeft , lowerRight . expandedTo ( upperLeft ) - upperLeft ) ) ; }
FIXME: This override is only needed for inline anchors without an
InlineBox and it does not belong in ContainerNode as it reaches into
the render and line box trees.
FIXME : This override is only needed for inline anchors without an InlineBox and it does not belong in ContainerNode as it reaches into the render and line box trees .
// If we've found one corner, but not the other, // then we should just return a point at the corner that we did find.