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

Unified Diff: Source/core/layout/line/LineBreaker.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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/line/LineBreaker.cpp
diff --git a/Source/core/layout/line/LineBreaker.cpp b/Source/core/layout/line/LineBreaker.cpp
index 85d0a5104f6a6c978bdd26eee41221a219f5b645..228a5ea97f03b002c079f4ab6848f5d4fc2a197c 100644
--- a/Source/core/layout/line/LineBreaker.cpp
+++ b/Source/core/layout/line/LineBreaker.cpp
@@ -33,11 +33,8 @@ void LineBreaker::skipLeadingWhitespace(InlineBidiResolver& resolver, LineInfo&
while (!resolver.position().atEnd() && !requiresLineBox(resolver.position(), lineInfo, LeadingWhitespace)) {
LayoutObject* object = resolver.position().object();
if (object->isOutOfFlowPositioned()) {
- LayoutBox* box = toLayoutBox(object);
- setStaticPositions(m_block, box);
- bool originallyInline = box->style()->isOriginalDisplayInlineType();
- box->markStaticPositionedBoxForLayout(box->style()->isHorizontalWritingMode(), originallyInline);
- if (originallyInline) {
+ setStaticPositions(m_block, toLayoutBox(object));
+ if (object->style()->isOriginalDisplayInlineType()) {
resolver.runs().addRun(createRun(0, 1, object, resolver));
lineInfo.incrementRunsFromLeadingWhitespace();
}
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698