Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| index 39e158b8f1344047fd86812ffcfe295aba01625c..8fb1d400fa8866f10b67abdda0202cbffe3eb474 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
| @@ -38,6 +38,7 @@ |
| #include "core/layout/LayoutPart.h" |
| #include "core/layout/LayoutQuote.h" |
| #include "core/layout/LayoutScrollbarPart.h" |
| +#include "core/layout/ViewFragmentationContext.h" |
| #include "core/layout/compositing/PaintLayerCompositor.h" |
| #include "core/page/Page.h" |
| #include "core/paint/PaintLayer.h" |
| @@ -249,6 +250,14 @@ void LayoutView::layout() |
| m_pageLogicalHeightChanged = false; |
| + if (m_pageLogicalHeight) { |
| + if (!m_fragmentationContext) |
| + m_fragmentationContext = adoptPtr(new ViewFragmentationContext(*this)); |
| + } else { |
| + if (m_fragmentationContext) |
| + m_fragmentationContext.clear(); |
|
leviw_travelin_and_unemployed
2015/12/08 19:00:55
It seems a little weird to new a ViewFragmentation
mstensho (USE GERRIT)
2015/12/08 20:09:12
Gets *page* height, not just any height. Right?
T
|
| + } |
| + |
| layoutContent(); |
| if (layoutOverflowRect() != oldLayoutOverflowRect) { |