createScrollingContentLayout method

RenderLayoutBox createScrollingContentLayout()

Implementation

RenderLayoutBox createScrollingContentLayout() {
  // FIXME: Create an empty renderStyle for do not share renderStyle with element.
  CSSRenderStyle scrollingContentRenderStyle = CSSRenderStyle(target: this);
  // Scrolling content layout need to be share the same display with its outer layout box.
  scrollingContentRenderStyle.display = renderStyle.display;
  RenderLayoutBox scrollingContentLayoutBox = _createRenderLayout(
    isRepaintBoundary: true,
    renderStyle: scrollingContentRenderStyle,
  );
  scrollingContentLayoutBox.isScrollingContentBox = true;
  return scrollingContentLayoutBox;
}