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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 2665983004: [css-grid] Fix static position of positioned grid items (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-grid-container-parent.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index 2067dba4ca5bb552c93c4b402f9aaf3a2f135154..1c43f49fc3e6c8906d5ec08ff524b31eca1f9880 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -2601,8 +2601,8 @@ void LayoutGrid::prepareChildForPositionedLayout(LayoutBox& child) {
child.containingBlock()->insertPositionedObject(&child);
PaintLayer* childLayer = child.layer();
- childLayer->setStaticInlinePosition(borderAndPaddingStart());
- childLayer->setStaticBlockPosition(borderAndPaddingBefore());
+ childLayer->setStaticInlinePosition(LayoutUnit(borderStart()));
+ childLayer->setStaticBlockPosition(LayoutUnit(borderBefore()));
}
void LayoutGrid::layoutPositionedObjects(bool relayoutChildren,
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css-grid-layout/absolute-positioning-grid-container-parent.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698