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

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

Issue 2455093002: [css-align] Don't resolve 'auto' values for computed style. (Closed)
Patch Set: Patch for landing. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index a7da0f04a8fe7ce16767db5c30c3b6f38f9eb0f0..5d1a4dc1e628d2173c4aa40fc9da67f865e5281d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2883,15 +2883,14 @@ bool LayoutBox::HasStretchedLogicalWidth() const {
// Flexbox Items, which obviously should have a container.
return false;
}
- const ComputedStyle* parent_style = IsAnonymous() ? cb->Style() : nullptr;
if (cb->IsHorizontalWritingMode() != IsHorizontalWritingMode())
return style
.ResolvedAlignSelf(cb->SelfAlignmentNormalBehavior(this),
- parent_style)
+ cb->Style())
.GetPosition() == kItemPositionStretch;
return style
.ResolvedJustifySelf(cb->SelfAlignmentNormalBehavior(this),
- parent_style)
+ cb->Style())
.GetPosition() == kItemPositionStretch;
}

Powered by Google App Engine
This is Rietveld 408576698