DescriptionMake LayoutState always be RAII
Repaint after layout will eventually do a tree walk that
utilizes LayoutState (or more accurately, something *like*
LayoutState) to quickly compute repaint rects while walking
the tree. In the course of building that functionality, I
got mired in the ugliness of LayoutState.
LayoutStateMaintainer is an RAII that is partially broken
due to the need to explicitly call "pop". RenderView would
explicitly create and initialize a LayoutState on the stack
then clear the pointer after layout. This patch fixes the
LayoutStateMaintainer issue (which necessitated some
refactoring in the rendering code) and introduces a
RootLayoutStateScope that takes care of RenderView's case.
BUG=343896
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169676
Patch Set 1 #Patch Set 2 : Scoping RenderDeprecatedFlexibleBox #Patch Set 3 : It's the ToT as you can see #
Total comments: 2
Patch Set 4 : Incorporate Julien's review #
Total comments: 1
Patch Set 5 : Updated to ToT #Patch Set 6 : Correct overflow call from previous upload #Patch Set 7 : Fix FlexBox LayoutState scoping #
Total comments: 2
Patch Set 8 : Updated to ToT #Messages
Total messages: 27 (0 generated)
|