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

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

Issue 1393673004: Factor out the actual break checking from apply{After,Before}Break(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 // Pagination struts are either set in front of a block-level box (here) or before a line 583 // Pagination struts are either set in front of a block-level box (here) or before a line
584 // (RootInlineBox::paginationStrut()). 584 // (RootInlineBox::paginationStrut()).
585 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin ationStrut : LayoutUnit(); } 585 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin ationStrut : LayoutUnit(); }
586 void setPaginationStrut(LayoutUnit); 586 void setPaginationStrut(LayoutUnit);
587 void resetPaginationStrut() 587 void resetPaginationStrut()
588 { 588 {
589 if (m_rareData) 589 if (m_rareData)
590 m_rareData->m_paginationStrut = LayoutUnit(); 590 m_rareData->m_paginationStrut = LayoutUnit();
591 } 591 }
592 592
593 bool hasForcedBreakBefore() const;
594 bool hasForcedBreakAfter() const;
595
593 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; 596 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride;
594 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override; 597 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const override;
595 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 598 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
596 599
597 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; 600 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
598 601
599 LayoutUnit containingBlockLogicalWidthForContent() const override; 602 LayoutUnit containingBlockLogicalWidthForContent() const override;
600 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 603 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
601 604
602 LayoutUnit containingBlockAvailableLineWidth() const; 605 LayoutUnit containingBlockAvailableLineWidth() const;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 1047 if (UNLIKELY(inlineBoxWrapper() != nullptr))
1045 deleteLineBoxWrapper(); 1048 deleteLineBoxWrapper();
1046 } 1049 }
1047 1050
1048 ensureRareData().m_inlineBoxWrapper = boxWrapper; 1051 ensureRareData().m_inlineBoxWrapper = boxWrapper;
1049 } 1052 }
1050 1053
1051 } // namespace blink 1054 } // namespace blink
1052 1055
1053 #endif // LayoutBox_h 1056 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698