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

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

Issue 1873163002: [css-grid] Fix painting in RTL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upload rebased version after r386952 has landed 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 { 91 {
92 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty); 92 ASSERT_WITH_SECURITY_IMPLICATION(!m_gridIsDirty);
93 return m_gridItemsIndexesMap.get(layoutBox); 93 return m_gridItemsIndexesMap.get(layoutBox);
94 } 94 }
95 95
96 size_t autoRepeatCountForDirection(GridTrackSizingDirection direction) const 96 size_t autoRepeatCountForDirection(GridTrackSizingDirection direction) const
97 { 97 {
98 return direction == ForColumns ? m_autoRepeatColumns : m_autoRepeatRows; 98 return direction == ForColumns ? m_autoRepeatColumns : m_autoRepeatRows;
99 } 99 }
100 100
101 LayoutUnit translateRTLCoordinate(LayoutUnit) const;
102
101 private: 103 private:
102 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutGrid || LayoutBlock::isOfType(type); } 104 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutGrid || LayoutBlock::isOfType(type); }
103 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override; 105 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
104 106
105 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t override; 107 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t override;
106 108
107 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride; 109 void addChild(LayoutObject* newChild, LayoutObject* beforeChild = nullptr) o verride;
108 void removeChild(LayoutObject*) override; 110 void removeChild(LayoutObject*) override;
109 111
110 void styleDidChange(StyleDifference, const ComputedStyle*) override; 112 void styleDidChange(StyleDifference, const ComputedStyle*) override;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 231
230 size_t m_autoRepeatColumns { 0 }; 232 size_t m_autoRepeatColumns { 0 };
231 size_t m_autoRepeatRows { 0 }; 233 size_t m_autoRepeatRows { 0 };
232 }; 234 };
233 235
234 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 236 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
235 237
236 } // namespace blink 238 } // namespace blink
237 239
238 #endif // LayoutGrid_h 240 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698