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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 1148833002: Move m_pageLogicalOffset from LayoutBlock to LayoutBoxRareData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: sizeof(LayoutBlock) has shrunk. Created 5 years, 7 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
« Source/core/layout/LayoutBox.h ('K') | « Source/core/layout/LayoutBox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index 3fe7409b4b57cf3135ad63f77991de306704d548..78cc863c00f7c60c6398c8324003374d91bb8047 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -4654,6 +4654,13 @@ LayoutUnit LayoutBox::offsetFromLogicalTopOfFirstPage() const
return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop();
}
+void LayoutBox::setPageLogicalOffset(LayoutUnit offset)
+{
+ if (!m_rareData && !offset)
+ return;
+ ensureRareData().m_pageLogicalOffset = offset;
+}
+
void LayoutBox::savePreviousBorderBoxSizeIfNeeded()
{
// If m_rareData is already created, always save.
« Source/core/layout/LayoutBox.h ('K') | « Source/core/layout/LayoutBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698