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

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

Issue 1136283006: [CSS Grid Layout] Avoid using StyleAdjuster to resolve 'auto' values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed some layout tests failures. 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/resolver/StyleAdjuster.cpp ('k') | 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 774
775 private: 775 private:
776 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const; 776 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const;
777 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const; 777 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const;
778 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con st; 778 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con st;
779 779
780 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con st LayoutRect& newBounds); 780 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con st LayoutRect& newBounds);
781 781
782 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&, const Comp utedStyle* oldStyle); 782 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&, const Comp utedStyle* oldStyle);
783 void updateGridPositionAfterStyleChange(const ComputedStyle*); 783 void updateGridPositionAfterStyleChange(const ComputedStyle*);
784 void updateAlignmentAfterStyleChange(const ComputedStyle*);
784 785
785 bool autoWidthShouldFitContent() const; 786 bool autoWidthShouldFitContent() const;
786 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const; 787 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const;
787 788
788 // Returns true if we queued up a paint invalidation. 789 // Returns true if we queued up a paint invalidation.
789 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground); 790 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
790 791
791 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain ingBlock) const; 792 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain ingBlock) const;
792 793
793 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; 794 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje ct* containingBlock, bool checkForPerpendicularWritingMode = true) const;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 if (UNLIKELY(inlineBoxWrapper() != 0)) 937 if (UNLIKELY(inlineBoxWrapper() != 0))
937 deleteLineBoxWrapper(); 938 deleteLineBoxWrapper();
938 } 939 }
939 940
940 ensureRareData().m_inlineBoxWrapper = boxWrapper; 941 ensureRareData().m_inlineBoxWrapper = boxWrapper;
941 } 942 }
942 943
943 } // namespace blink 944 } // namespace blink
944 945
945 #endif // LayoutBox_h 946 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleAdjuster.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698