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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.h

Issue 2454083002: Need a deep layout pass when becoming (un)fragmented. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 unsigned m_hasMarkupTruncation : 1; 538 unsigned m_hasMarkupTruncation : 1;
539 unsigned m_widthAvailableToChildrenChanged : 1; 539 unsigned m_widthAvailableToChildrenChanged : 1;
540 unsigned m_heightAvailableToChildrenChanged : 1; 540 unsigned m_heightAvailableToChildrenChanged : 1;
541 unsigned m_isSelfCollapsing : 1; // True if margin-before and margin-after 541 unsigned m_isSelfCollapsing : 1; // True if margin-before and margin-after
542 // are adjoining. 542 // are adjoining.
543 unsigned m_descendantsWithFloatsMarkedForLayout : 1; 543 unsigned m_descendantsWithFloatsMarkedForLayout : 1;
544 544
545 unsigned m_hasPositionedObjects : 1; 545 unsigned m_hasPositionedObjects : 1;
546 unsigned m_hasPercentHeightDescendants : 1; 546 unsigned m_hasPercentHeightDescendants : 1;
547 547
548 // When an object ceases to establish a fragmentation context (e.g. the
549 // LayoutView when we're no longer printing), we need a deep layout
550 // afterwards, to clear all pagination struts. Likewise, when an object
551 // becomes fragmented, we need to re-lay out the entire subtree. There might
552 // be forced breaks somewhere in there that we suddenly have to pay attention
553 // to, for all we know.
554 unsigned m_paginationStateChanged : 1;
555
548 // FIXME: This is temporary as we move code that accesses block flow 556 // FIXME: This is temporary as we move code that accesses block flow
549 // member variables out of LayoutBlock and into LayoutBlockFlow. 557 // member variables out of LayoutBlock and into LayoutBlockFlow.
550 friend class LayoutBlockFlow; 558 friend class LayoutBlockFlow;
551 559
552 // This is necessary for now for interoperability between the old and new 560 // This is necessary for now for interoperability between the old and new
553 // layout code. Primarily for calling layoutPositionedObjects at the moment. 561 // layout code. Primarily for calling layoutPositionedObjects at the moment.
554 friend class NGBox; 562 friend class NGBox;
555 563
556 public: 564 public:
557 // TODO(lunalu): Temporary in order to ensure compatibility with existing 565 // TODO(lunalu): Temporary in order to ensure compatibility with existing
558 // layout test results. 566 // layout test results.
559 virtual void adjustChildDebugRect(LayoutRect&) const {} 567 virtual void adjustChildDebugRect(LayoutRect&) const {}
560 }; 568 };
561 569
562 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); 570 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock());
563 571
564 } // namespace blink 572 } // namespace blink
565 573
566 #endif // LayoutBlock_h 574 #endif // LayoutBlock_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698