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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2722613003: [css-grid] "normal" alignment is "start" for replaced elements (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/core/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 8bb840744a271fc962481aca33a32537d20fafdb..d378055571e227c3a8acd529ba593d916df18764 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -1381,7 +1381,10 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
void updateFromStyle() override;
- virtual ItemPosition selfAlignmentNormalBehavior() const {
+ virtual ItemPosition selfAlignmentNormalBehavior(
+ const LayoutBox* child = nullptr) const {
+ if (child && child->isLayoutReplaced())
jfernandez 2017/03/01 12:46:49 I think this logic is grid specific, so it should
Manuel Rego 2017/03/01 17:57:07 Yeah, good point, it's grid layout specific so I'v
+ return ItemPositionStart;
return ItemPositionStretch;
}

Powered by Google App Engine
This is Rietveld 408576698