Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1955)

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 13937017: Implement lazy block layout prototype behind a runtime flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index e3745f135827a8c6ebde970af38a1a3f2f772e5f..7c84e7cc27c965edb80d02bb504fff97feb79f88 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -39,6 +39,7 @@
#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderLayerBacking.h"
#include "core/rendering/RenderLayerCompositor.h"
+#include "core/rendering/RenderLazyBlock.h"
#include "core/rendering/RenderNamedFlowThread.h"
#include "core/rendering/RenderSelectionInfo.h"
#include "core/rendering/RenderWidget.h"
@@ -63,6 +64,7 @@ RenderView::RenderView(Document* document)
, m_pageLogicalHeightChanged(false)
, m_layoutState(0)
, m_layoutStateDisableCount(0)
+ , m_firstLazyBlock(0)
, m_renderQuoteHead(0)
, m_renderCounterCount(0)
{
@@ -115,6 +117,12 @@ bool RenderView::isChildAllowed(RenderObject* child, RenderStyle*) const
return child->isBox();
}
+void RenderView::markLazyBlocksForLayout()
+{
+ for (RenderLazyBlock* block = m_firstLazyBlock; block; block = block->next())
+ block->setNeedsLayout(true);
+}
+
void RenderView::layoutContent(const LayoutState& state)
{
UNUSED_PARAM(state);

Powered by Google App Engine
This is Rietveld 408576698