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

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

Issue 1817693002: Support edge-inclusive intersections in mapToVisibleRectInAncestorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-idle-callback
Patch Set: more tests Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 EBreak breakAfter() const; 632 EBreak breakAfter() const;
633 EBreak breakBefore() const; 633 EBreak breakBefore() const;
634 EBreak breakInside() const; 634 EBreak breakInside() const;
635 635
636 static bool isForcedFragmentainerBreakValue(EBreak); 636 static bool isForcedFragmentainerBreakValue(EBreak);
637 637
638 bool hasForcedBreakBefore() const; 638 bool hasForcedBreakBefore() const;
639 bool hasForcedBreakAfter() const; 639 bool hasForcedBreakAfter() const;
640 640
641 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; 641 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride;
642 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*) const override; 642 bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L ayoutRect&, const PaintInvalidationState*, VisibleRectFlags = DefaultVisibleRect Flags) const override;
643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 643 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
644 644
645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; 645 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
646 646
647 LayoutUnit containingBlockLogicalWidthForContent() const override; 647 LayoutUnit containingBlockLogicalWidthForContent() const override;
648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 648 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
649 649
650 LayoutUnit containingBlockAvailableLineWidth() const; 650 LayoutUnit containingBlockAvailableLineWidth() const;
651 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 651 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
652 652
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st; 835 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st;
836 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; 836 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const;
837 837
838 bool hasOverflowModel() const { return m_overflow; } 838 bool hasOverflowModel() const { return m_overflow; }
839 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } 839 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); }
840 840
841 virtual bool needsPreferredWidthsRecalculation() const; 841 virtual bool needsPreferredWidthsRecalculation() const;
842 842
843 IntSize scrolledContentOffset() const; 843 IntSize scrolledContentOffset() const;
844 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; 844 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const;
845 void applyOverflowClip(LayoutRect&) const; 845
846 // Returns true if the rect actually intersects the clipping region.
847 // If edgeInclusive is true, then this method may return true even
848 // if the resulting rect has zero area.
849 bool applyOverflowClip(LayoutRect&, VisibleRectFlags = DefaultVisibleRectFla gs) const;
846 850
847 virtual bool hasRelativeLogicalWidth() const; 851 virtual bool hasRelativeLogicalWidth() const;
848 virtual bool hasRelativeLogicalHeight() const; 852 virtual bool hasRelativeLogicalHeight() const;
849 853
850 bool hasHorizontalLayoutOverflow() const 854 bool hasHorizontalLayoutOverflow() const
851 { 855 {
852 if (!m_overflow) 856 if (!m_overflow)
853 return false; 857 return false;
854 858
855 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); 859 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 || breakValue == BreakLeft 1146 || breakValue == BreakLeft
1143 || breakValue == BreakPage 1147 || breakValue == BreakPage
1144 || breakValue == BreakRecto 1148 || breakValue == BreakRecto
1145 || breakValue == BreakRight 1149 || breakValue == BreakRight
1146 || breakValue == BreakVerso; 1150 || breakValue == BreakVerso;
1147 } 1151 }
1148 1152
1149 } // namespace blink 1153 } // namespace blink
1150 1154
1151 #endif // LayoutBox_h 1155 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698