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

Unified Diff: sky/engine/core/rendering/line/BreakingContextInlineHeaders.h

Issue 706953003: Delete unused methods/arguments from RenderBlockFlow. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/line/LineWidth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/line/BreakingContextInlineHeaders.h
diff --git a/sky/engine/core/rendering/line/BreakingContextInlineHeaders.h b/sky/engine/core/rendering/line/BreakingContextInlineHeaders.h
index b49f19d75d977179e4dc988381af5bc28ea5a4c4..bca0b58a66a1aa539e14cce07b13d72324bb2765 100644
--- a/sky/engine/core/rendering/line/BreakingContextInlineHeaders.h
+++ b/sky/engine/core/rendering/line/BreakingContextInlineHeaders.h
@@ -196,14 +196,14 @@ inline void setStaticPositions(RenderBlockFlow* block, RenderBox* child)
// A relative positioned inline encloses us. In this case, we also have to determine our
// position as though we were an inline. Set |staticInlinePosition| and |staticBlockPosition| on the relative positioned
// inline so that we can obtain the value later.
- toRenderInline(containerBlock)->layer()->setStaticInlinePosition(block->startAlignedOffsetForLine(blockHeight, false));
+ toRenderInline(containerBlock)->layer()->setStaticInlinePosition(block->startAlignedOffsetForLine(false));
toRenderInline(containerBlock)->layer()->setStaticBlockPosition(blockHeight);
// If |child| is a leading or trailing positioned object this is its only opportunity to ensure it moves with an inline
// container changing width.
child->moveWithEdgeOfInlineContainerIfNecessary();
}
- block->updateStaticInlinePositionForChild(child, blockHeight);
+ block->updateStaticInlinePositionForChild(child);
child->layer()->setStaticBlockPosition(blockHeight);
}
@@ -397,7 +397,7 @@ inline void BreakingContext::handleReplaced()
RenderBox* replacedBox = toRenderBox(m_current.object());
if (m_atStart)
- m_width.updateAvailableWidth(replacedBox->logicalHeight());
+ m_width.updateAvailableWidth();
// Break on replaced elements if either has normal white-space.
if (m_autoWrap || RenderStyle::autoWrap(m_lastWS)) {
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/line/LineWidth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698