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

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

Issue 1128713004: Don't mark a positioned object for layout when we've just laid it out. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated 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
« no previous file with comments | « Source/core/layout/LayoutBox.h ('k') | Source/core/layout/line/LineBreaker.cpp » ('j') | 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 d3aca75eafc13ea9a620acf49e44a27baefa275f..645880a42441673d2e22b055c7753c088bf27298 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -1713,7 +1713,6 @@ void LayoutBox::positionLineBox(InlineBox* box)
// in flow). This value was cached in the y() of the box.
layer()->setStaticBlockPosition(box->logicalTop());
}
- markStaticPositionedBoxForLayout(box->isHorizontal(), originallyInline);
if (container()->isLayoutInline())
moveWithEdgeOfInlineContainerIfNecessary(box->isHorizontal());
@@ -1729,15 +1728,6 @@ void LayoutBox::positionLineBox(InlineBox* box)
}
}
-void LayoutBox::markStaticPositionedBoxForLayout(bool isHorizontal, bool isInline)
-{
- ASSERT(isOutOfFlowPositioned());
- if (normalChildNeedsLayout())
- return;
- if (isInline ? style()->hasStaticInlinePosition(isHorizontal) : style()->hasStaticBlockPosition(isHorizontal))
- setChildNeedsLayout(MarkOnlyThis);
-}
-
void LayoutBox::moveWithEdgeOfInlineContainerIfNecessary(bool isHorizontal)
{
ASSERT(isOutOfFlowPositioned() && container()->isLayoutInline() && container()->isRelPositioned());
« no previous file with comments | « Source/core/layout/LayoutBox.h ('k') | Source/core/layout/line/LineBreaker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698