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

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

Issue 1876123002: Absolute positioned child with percent should include containing block padding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add commit message Created 4 years, 8 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 655
656 // Return true if we should insert a break in front of this box. The box nee ds to start at a 656 // Return true if we should insert a break in front of this box. The box nee ds to start at a
657 // valid class A break point in order to allow a forced break. To determine whether or not to 657 // valid class A break point in order to allow a forced break. To determine whether or not to
658 // break, we also need to know the break-after value of the previous in-flow sibling. 658 // break, we also need to know the break-after value of the previous in-flow sibling.
659 bool needsForcedBreakBefore(EBreak previousBreakAfterValue) const; 659 bool needsForcedBreakBefore(EBreak previousBreakAfterValue) const;
660 660
661 LayoutRect localOverflowRectForPaintInvalidation() const override; 661 LayoutRect localOverflowRectForPaintInvalidation() const override;
662 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override; 662 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect&, VisualRectFlags = DefaultVisualRectFlags) const override;
663 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 663 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
664 664
665 LayoutUnit containingBlockLogicalWidthForGetComputedStyle() const;
665 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; 666 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
666 667
667 LayoutUnit containingBlockLogicalWidthForContent() const override; 668 LayoutUnit containingBlockLogicalWidthForContent() const override;
668 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 669 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
669 670
670 LayoutUnit containingBlockAvailableLineWidth() const; 671 LayoutUnit containingBlockAvailableLineWidth() const;
671 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 672 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
672 673
673 virtual void updateLogicalWidth(); 674 virtual void updateLogicalWidth();
674 void updateLogicalHeight(); 675 void updateLogicalHeight();
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 || breakValue == BreakLeft 1161 || breakValue == BreakLeft
1161 || breakValue == BreakPage 1162 || breakValue == BreakPage
1162 || breakValue == BreakRecto 1163 || breakValue == BreakRecto
1163 || breakValue == BreakRight 1164 || breakValue == BreakRight
1164 || breakValue == BreakVerso; 1165 || breakValue == BreakVerso;
1165 } 1166 }
1166 1167
1167 } // namespace blink 1168 } // namespace blink
1168 1169
1169 #endif // LayoutBox_h 1170 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698