source: trunk/Source/WebCore/rendering/RenderBlock.cpp @ 81802

Revision 81802, 273.4 KB checked in by, 4 years ago (diff)

Reviewed by Dan Bernstein.

Add a simplified normal flow layout path optimization for overflow recomputation
and for positioned objects inside relative positioned containers.

Currently there is an optimized code path for positioned objects, but as soon as
we encounter a normal flow object in the containing block chain, we lose the

This patch adds a new type of style difference called SimplifiedLayout that is
returned when only overflow needs to be recomputed. Whenever opacity changes or
a transform changes, this is the hint returned now instead of a full layout.

In addition, when positioned objects need layout and start marking up the
containing block chain, we now propagate the fact that the layout is simplified
all the way up to the root, even when we encounter normal flow containing

The layoutOnlyPositionedObjects function has been renamed to simplifiedLayout()
and is now used for all of these cases (in addition to what it handled before).

No new tests, since existing tests covered this very well (especially the opacity
and transforms repaint tests in fast/repaint).

  • rendering/RenderBlock.cpp:


  • rendering/RenderBlock.h:
  • rendering/RenderBox.cpp:


  • rendering/RenderBoxModelObject.cpp:


  • rendering/RenderFlexibleBox.cpp:


  • rendering/RenderObject.cpp:


  • rendering/RenderObject.h:


  • rendering/RenderTable.cpp:


  • rendering/style/RenderStyle.cpp:


  • rendering/style/RenderStyleConstants.h:
  • rendering/svg/RenderSVGText.cpp:


  • Property svn:eol-style set to native

HTML preview not available, since the file size exceeds 262144 bytes. Try downloading the file instead.

Note: See TracBrowser for help on using the repository browser.