|
Change LayoutState to be stack-allocated
LayoutState does 2 fundamentally different things: it acts as a quick
repaint mapping between renderers and their repaint container (currently
only the RenderView crbug.com/363834), and keeps track of various layout
tree information (like the current pagination model).
Because the fast repaint mapping doesn't work for all types of renderers,
there's a concept of LayoutState being disabled, and sometimes not 'pushed'
at all. This CL renames the disabled state, which only applies to the
repaint optimization, to layoutStateCachedOffsetsEnabled, and makes
LayoutState stack-based instead of heap-based. It now will always "push,"
and tracks whether or not the repaint optimization is disabled as part of
itself.
This is one step in the process of teaching LayoutState to work on
renderers that aren't the RenderView.
BUG= 363834
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176362
Total comments: 15
Total comments: 3
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+150 lines, -290 lines) |
Patch |
|
M |
Source/core/frame/FrameView.cpp
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -29 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/LayoutState.h
|
View
|
|
3 chunks |
+27 lines, -29 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/LayoutState.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+54 lines, -21 lines |
6 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlock.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlock.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlockFlow.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBox.cpp
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBoxModelObject.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderDeprecatedFlexibleBox.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderFlexibleBox.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderGrid.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderInline.cpp
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderLayerRepainter.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderMedia.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderObject.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTable.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTableCell.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTableRow.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTableSection.cpp
|
View
|
1
2
3
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderVTTCue.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderView.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+23 lines, -142 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderView.cpp
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+12 lines, -33 lines |
1 comment
|
Download
|
|
M |
Source/core/rendering/svg/RenderSVGContainer.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/RenderSVGForeignObject.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|