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

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

Issue 2052243003: [css-flexbox] Fix handling of borders/padding for abspos items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/css3/flexbox/border-and-padding-abspos.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/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index bb3cc3f80f4304244cbad146151cff70c69bf2ee..c278009f3d03f5ce51fe4cc9f5032c8fe3651b5a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -1395,16 +1395,14 @@ LayoutUnit LayoutFlexibleBox::staticCrossAxisPositionForPositionedChild(const La
LayoutUnit LayoutFlexibleBox::staticInlinePositionForPositionedChild(const LayoutBox& child)
{
- LayoutUnit staticInlineOffset = flowAwareBorderStart() + flowAwarePaddingStart();
- return staticInlineOffset + (isColumnFlow() ?
+ return startOffsetForContent() + (isColumnFlow() ?
staticCrossAxisPositionForPositionedChild(child) :
staticMainAxisPositionForPositionedChild(child));
}
LayoutUnit LayoutFlexibleBox::staticBlockPositionForPositionedChild(const LayoutBox& child)
{
- LayoutUnit staticBlockOffset = flowAwareBorderBefore() + flowAwarePaddingBefore();
- return staticBlockOffset + (isColumnFlow() ?
+ return borderAndPaddingBefore() + (isColumnFlow() ?
staticMainAxisPositionForPositionedChild(child) :
staticCrossAxisPositionForPositionedChild(child));
}
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/flexbox/border-and-padding-abspos.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698